Skip to main content

indico-cli

Command line interface for interacting with Indico event management systems.

Installation

# Run directly with uvx (recommended)
uvx indico-cli --help

# Or install with pip
pip install indico-cli

Configuration

Set environment variables:

export INDICO_BASE_URL="https://indico.cern.ch"
export INDICO_API_TOKEN="indp_..."  # Bearer token from Indico preferences

Or use the configure command to save credentials:

indico-cli configure --base-url https://indico.cern.ch --token indp_...

Saved credentials live in $XDG_CONFIG_HOME/indico-cli/config.json (or ~/.config/indico-cli/config.json when XDG_CONFIG_HOME is unset), written with owner-only permissions (0600). Inspect or reset them with indico-cli config show, indico-cli config path, and indico-cli config clear.

API tokens can be generated at <your-indico-url>/user/preferences/api. Required scopes: read:legacy_api, write:legacy_api (for create operations), read:user (optional).

Usage

# Full-text search across all content types
indico-cli search-by-term --term "machine learning"

# Full-text search with date range
indico-cli search-by-term --term "Smith" --type contribution --from-date 2025-01-01 --to-date 2025-03-31

# Search events in a category
indico-cli search-events --category-id 4648 --from-date 2025-01-01

# Browse categories
indico-cli search-categories --category-id 0

Event Details

# Get event info with contributions and sessions
indico-cli event-details --event-id 137346 --contributions --sessions

# List contributions/talks
indico-cli contributions --event-id 137346 --subcontributions

Files

# List and download all event files
indico-cli files --event-id 137346

# List files without downloading
indico-cli files --event-id 137346 --no-download

# Download a single attachment
indico-cli download --url "https://indico.cern.ch/event/.../file.pdf"

The files command covers every file source attached to an event:

  • Event materials — legacy event.material[] entries.
  • Event folder attachments — generic files uploaded directly to the event page (not under any contribution). Typical for short meetings like the LHC morning meeting, where a single slide deck is attached to the event itself.
  • Contribution attachments — files attached to individual contributions/talks.

Create Events

# Create a simple meeting
indico-cli create-event --title "Team Meeting" --category-id 4648 --type meeting \
  --start 2025-06-15T09:00:00 --end 2025-06-15T10:00:00

# Create event with full agenda from JSON file (sessions, talks and breaks
# are scheduled back to back from --start; see the skill docs for the format)
indico-cli create-event-with-agenda --title "Workshop" --category-id 4648 \
  --type meeting --start 2025-06-15T09:00:00 --end 2025-06-15T17:00:00 \
  --agenda-file agenda.json

# Add an area to an existing event: session -> scheduled block -> nested talk
indico-cli create-session --event-id 137346 --title "Part 3" --color 2      # -> Session ID
indico-cli add-timetable-entry --event-id 137346 --type session_block \
  --object-id <session-id> --start 2025-06-15T14:00:00 --duration 60          # -> Session block ID
indico-cli create-contribution --event-id 137346 --title "TE talk" --duration 20  # -> Contribution ID
indico-cli add-timetable-entry --event-id 137346 --type contribution \
  --object-id <contribution-id> --start 2025-06-15T14:00:00 --session-block-id <block-id>
indico-cli add-break --event-id 137346 --title "Coffee" --start 2025-06-15T14:20:00 --duration 20

Upload Attachments

Upload a local file as an attachment to a contribution (talk) or to the event itself. Exactly one target must be given: --contrib-id, --contrib-title, or --event-level. Requires management/write permissions on the event.

# Upload slides to a talk, resolving the contribution by its title
indico-cli upload-attachment --event-id 1692909 \
  --contrib-title "Beam dynamics overview" \
  --file ./slides.pdf --folder "Slides"

# Upload to a contribution by its database id (not the friendly/local id)
indico-cli upload-attachment --event-id 1692909 --contrib-id 7136334 \
  --file ./slides.pdf

# Attach a file to the event page itself, marked protected
indico-cli upload-attachment --event-id 1692909 --event-level \
  --file ./minutes.pdf --protection protected

# Upsert: replace a same-named attachment in place, or add it if none exists
indico-cli upload-attachment --event-id 1692909 --contrib-id 7136334 \
  --file ./slides.pdf --replace
Parameter Required Description
--event-id Yes Event ID
--contrib-id One of three Contribution database id (not the friendly/local id)
--contrib-title One of three Resolve the contribution by title within the event
--event-level One of three Attach to the event itself
--file Yes Local file to upload (must exist)
--folder No Folder title; reused if it exists, otherwise created. Omit for Indico's default folder
--protection No inheriting (default) or protected
--replace No Upsert by filename: replace a same-named attachment in place, or add it if none exists

--replace performs an upsert keyed on the filename. If an attachment with the same filename already exists on the target (restricted to --folder when one is given), its file is replaced in place — the attachment keeps its identity and its download URL stays the same. If no such attachment exists, it falls back to a normal upload (adds a new one). If more than one attachment matches the filename, the command errors and asks you to narrow the target with --folder. The command output reports Action: replaced or Action: added accordingly.

The attachment title is set server-side to the uploaded filename (the files-upload form has no title or description field), so pick a descriptive filename. After uploading, the command reports the file's download URL; a successful upload may still print (uploaded; not yet visible in the export API) because the export API does not always surface freshly added contribution attachments.

Minutes

Indico calls the note attached to an event (or to a session, contribution or subcontribution) its minutes. There is no public REST API for it, so these commands drive the same JSON endpoint the web UI uses (/event/<id>[/<object>]/api/note).

# Read the minutes of an event
indico-cli get-minutes --event-id 1644357

# Publish minutes from an HTML file
indico-cli set-minutes --event-id 1644357 --file ./minutes.html

# Publish a markdown file and let Indico render it
indico-cli set-minutes --event-id 1644357 --file ./minutes.md --render-mode markdown

# Minutes of one talk rather than the whole event
indico-cli set-minutes --event-id 1644357 --contrib-id 7233956 --source "<p>Discussion notes</p>"

# Remove the minutes
indico-cli delete-minutes --event-id 1644357
Parameter Command Description
--event-id all Event ID
--session-id all Target the minutes of a session instead of the event
--contrib-id all Target the minutes of a contribution (database id)
--subcontrib-id all Target a subcontribution (requires --contrib-id)
--source set-minutes Minutes source, inline (exclusive with --file)
--file set-minutes Read the minutes source from a file (exclusive with --source)
--render-mode set-minutes html (default), markdown or plain_text
--revision-id set-minutes Revision being replaced; omit to reuse the current one
--json get-minutes Print the raw note revision as JSON
--source-only get-minutes Print only the source, for piping

Indico refuses to overwrite existing minutes unless the request states which revision it replaces, answering 418 The note has been modified in the meantime otherwise. set-minutes reads the current revision id first and sends it, so updating takes a single command. Pass --revision-id explicitly to get optimistic locking instead: the update then fails if someone edited the minutes after you read them.

All Commands

Command Description
configure Save Indico base URL and API token, and verify the connection.
config show Show the saved base URL and a masked token, plus the config file path.
config path Print the path to the config file.
config clear Delete the saved configuration (use --yes to skip the prompt).
user-info Show the current user's name, email, and admin status.
search-events List events in a category, with optional date range and public-only filter.
search-by-term Full-text search across categories, events, contributions, attachments, and notes.
search-categories Browse sub-categories of a given category.
event-details Show event metadata, optionally with contributions and sessions.
contributions List contributions (and optionally subcontributions) of an event.
files List and download all files attached to an event — event-level materials, event-page folder attachments, and contribution attachments.
download Download a single attachment by its URL.
create-event Create a new event (lecture, meeting, or conference).
create-session Create a session inside an event.
create-contribution Create a contribution inside an event, optionally in a given session.
add-timetable-entry Schedule a contribution (optionally nested in a session block) or a new session block at an exact time.
add-break Create and schedule a break (coffee, lunch, discussion), top-level or inside a session block.
delete-timetable-entry Remove an entry from the event timetable.
create-event-with-agenda Create an event and build its timetable from a JSON agenda file: sessions become coloured blocks with nested talks, breaks become breaks, everything on a running clock.
upload-attachment Upload a local file as an attachment to a contribution (by database id or title) or the event itself; folder reused/created by title, attachment title set to the filename.
get-minutes Show the minutes (note) of an event, session, contribution or subcontribution.
set-minutes Create or replace minutes from a string or a file, rendered as HTML, markdown or plain text.
delete-minutes Delete the minutes of an event or one of its objects.

Run indico-cli --help for the same list, or indico-cli <command> --help for command-specific options.

Claude Code Skill

A Claude Code skill is included for AI-assisted Indico workflows. It provides a single consolidated skill covering all CLI commands: searching events, browsing categories, creating events/sessions/contributions, managing timetables, downloading files, and configuring credentials.

The skill also includes guidance for multi-step workflows such as:

  • Recovering from missing or deleted events by searching for alternatives
  • Chaining search, download, and content extraction to answer questions from slides
  • Paginating through large categories (works around the 10-event display limit)

Install the skill

npx skills add https://gitlab.cern.ch/cern-agent-skills/indico-cli.git

Once installed, Claude Code will automatically use the skill whenever you ask about Indico events, conferences, meetings, or agendas. You can also invoke it directly with /indico-skill.

Documentation

Metadata

Release files for indico-cli 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for indico-cli 0.6.0
File Size Uploaded Provenance Actions
indico_cli-0.6.0.tar.gz 87.8 kB Without provenance Details for indico_cli-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for indico-cli 0.6.0
File Interpreter ABI Platform Actions
indico_cli-0.6.0-py3-none-any.whl Python 3 none any Details for indico_cli-0.6.0-py3-none-any.whl

Total release size: 133.0 kB

Release files / indico_cli-0.6.0.tar.gz

Download URL indico_cli-0.6.0.tar.gz
Size 87.8 kB
Tags Source
SHA-256 checksum
How to use checksums
07e52fe356f391cf6a248e9911457173bf17eddaaccaa8e34ff1144b402ccd0e
BLAKE2b-256 checksum
How to use checksums
3ca995525f10a9a2149737fccde7edcd4c8984bfdc536c7528bc406e16434c96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Release files / indico_cli-0.6.0-py3-none-any.whl

Download URL indico_cli-0.6.0-py3-none-any.whl
Size 45.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
10f960c9eeec32ae34327d7b2b237d4f43050bea76ac922bb5f163e43ec927dc
BLAKE2b-256 checksum
How to use checksums
4e27816664de4c93f19d0468fcd7ff49b6ad41733812f538a424cbd449a87366
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Security for indico-cli 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page