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
Search
# 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.
Room Booking
Indico's room booking has no public REST API; these commands use the JSON
endpoints behind the "Rooms" web app (/rooms/api/...), which accept the same
token. Times are naive and local to the Indico server (Europe/Zurich at CERN).
# Free rooms within 300 m of building 865 for the next hour, nearest first
indico-cli find-rooms --near 865 --start now --duration 60
# Near a room or a point, larger radius, at least 12 seats, booked rooms too
indico-cli find-rooms --near 40/S2-C01 --radius 500 --capacity 12 --start 2026-09-08T14:00 --end 2026-09-08T15:30 --all
indico-cli find-rooms --near 46.2569,6.0605 --radius 200
# Book it (the reason is mandatory at CERN)
indico-cli book-room --room 556 --start now --duration 60 --reason "WP2 status meeting"
# Weekly series on Thursdays until the end of the year
indico-cli book-room --room 865/1-D17 --start 2026-09-10T15:00 --duration 60 --reason "WP2 status" --repeat weekly --until 2026-12-31
# Your upcoming bookings, and cancelling one
indico-cli my-bookings
indico-cli cancel-booking --booking-id 693824
find-rooms anchors on coordinates (lat,lon), a building number or a room
name; rooms carry the coordinates of their building, so results are ranked by
building distance. With --start only rooms free for the slot are listed
(--all adds the booked ones). book-room checks the slot first and creates
a pre-booking automatically when the room requires the owner's confirmation.
| Parameter | Command | Description |
|---|---|---|
--near, --radius |
find-rooms |
Anchor and radius in metres (default 300) |
--start, --duration, --end, --timezone |
find-rooms, book-room |
The slot; now is floored to 5 minutes; times are read in --timezone (default Europe/Zurich, env INDICO_TIMEZONE) |
--capacity, --text, --all, --limit |
find-rooms (--limit also my-bookings) |
Filters and output size |
--room, --reason |
book-room |
Room id or name; booking reason |
--repeat, --until, --interval, --weekdays |
book-room |
Daily/weekly/monthly series |
--prebook |
book-room |
Force a pre-booking |
--booking-id, --date |
cancel-booking |
Booking, or one occurrence of a recurring one |
--json |
find-rooms, book-room, my-bookings |
Machine-readable output |
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. |
find-rooms |
Find rooms near a building, room or coordinates, ranked by distance, optionally only those free for a slot. |
book-room |
Book (or pre-book) a room for a slot or a daily/weekly/monthly series. |
my-bookings |
List your upcoming room bookings. |
cancel-booking |
Cancel a booking, or one occurrence of a recurring one. |
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
Through the CERN plugin marketplace (recommended; updates arrive with each new plugin version):
claude plugin marketplace add https://gitlab.cern.ch/cern-agent-skills/cern-agent-skills-marketplace.git
claude plugin install indico-cli@cern-agent-skills
Or directly from this repository:
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.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| indico_cli-0.7.0.tar.gz | 146.1 kB | Without provenance | Details for indico_cli-0.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| indico_cli-0.7.0-py3-none-any.whl | Python 3 | none | any | Details for indico_cli-0.7.0-py3-none-any.whl |
Total release size: 204.2 kB
Release files / indico_cli-0.7.0.tar.gz
| Download URL | indico_cli-0.7.0.tar.gz |
|---|---|
| Size | 146.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c0949afc635a8e86f8454c0f316bdfde5536e7d1aca20071857732d66084260
|
|
BLAKE2b-256 checksum How to use checksums |
adc74124b11eeceb4f13d6735cf9156b28d67ddc77f682c9365562106b0079c2
|
| 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.7.0-py3-none-any.whl
| Download URL | indico_cli-0.7.0-py3-none-any.whl |
|---|---|
| Size | 58.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
295ea6bd90c20600dddcb3ea8168373f157181a2e8ab155f8a37b981de17ba67
|
|
BLAKE2b-256 checksum How to use checksums |
4c3e4ccc72bc3afd5e3fa37c866dc9771b415d9417e727e06bebcdb2bedff6ce
|
| 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.7.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.