The command-line interface for Pydantic Logfire.
Actively maintained. Last release 9 days ago. A safe choice.
pip install logfire-cliLogfire CLI
The Rust command-line interface for Pydantic Logfire. Sign in, query your traces and logs, manage projects and tokens, and connect your coding agent to Logfire from the terminal.
This package installs the native CLI, not the Python instrumentation SDK. Install an application SDK separately to send telemetry; see the Logfire documentation.
Install
Try it with uv:
uvx logfire-cli --help
Install it as an isolated command-line tool:
uv tool install logfire-cli
logfire-cli --help
Or use pipx install logfire-cli. In an activated virtual environment, you can
also run python -m pip install logfire-cli.
This standalone package owns only logfire-cli. In Logfire 6, the Python
logfire package owns logfire and installs the same native CLI alongside
the Python SDK, without either wheel claiming the other's command.
If an older logfire-cli installation provided logfire, use logfire-cli
after upgrading the standalone package.
Python 3.9 or newer is required for the launcher. Wheels include the matching prebuilt binary for macOS (ARM64 and x86-64), Windows (ARM64, x86, and x86-64), GNU/Linux (ARM64, ARMv7, x86, x86-64, PowerPC 64 LE, RISC-V 64, and IBM Z), and musl Linux (ARM64, ARMv6, ARMv7, x86, and x86-64). You do not need Rust installed. GNU/Linux requires glibc 2.17 or newer, except RISC-V 64, which requires glibc 2.31. The musl wheels support compatible Alpine Linux versions.
New to Logfire
From your application's directory, create an account, organization, and first project in one guided flow:
logfire-cli --region us signup --org acme --project my-app
logfire-cli --org acme project current
Replace acme and my-app with the real names you want. Use --region eu for
the EU region. Browser OAuth credentials go to the operating system credential
store; the project SDK credential stays under .logfire/ in your application.
Then add instrumentation with an installed coding agent:
logfire-cli --org acme wizard
Use an existing account
Use your real organization name in place of , and instead of if your data is in the EU region: