Skip to main content
The Matter CLI lets you manage your library from the terminal. It works in two modes: CLI mode for scripting and automation (JSON output by default), and an interactive TUI for browsing your library visually.

Install

Authenticate

Log in with your Matter API token:
Your token is stored at ~/.config/matter/config.json. See Authentication for how to generate a token.

Quick examples

Output formats

JSON (default) — structured output for scripting and piping:
Plain text (--plain) — human-readable table output:
Errors go to stderr. Exit code 0 for success, 1 for errors.

Pagination

List commands support cursor-based pagination:

Updating

The CLI updates itself automatically. New releases are downloaded in the background and applied on the next run. To update immediately:

Next steps

Commands

Full reference for every CLI command.

Interactive TUI

Browse your library visually in the terminal.