Skip to main content

Logfire 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 acme, and eu instead of us if your data is in the EU region:

logfire-cli --region us --org acme auth
logfire-cli --org acme mcp projects

Complete sign-in and approve access in your browser. OAuth credentials are stored in the OS credential store, scoped to the Logfire origin and organization.

Choose a project from the list, then query its data through the hosted Model Context Protocol (MCP) server:

logfire-cli --org acme mcp query run 'SELECT message FROM records LIMIT 20' --project my-app

For scripts, make the target explicit and request non-interactive JSON output:

logfire-cli --org acme --no-input --output json mcp projects

Connect a local project

From your application's directory, create or choose a project interactively:

logfire-cli --org acme init

To connect an exact existing project without a picker:

logfire-cli --org acme init use --name my-app --permission send
logfire-cli project current

OAuth remains in the OS credential store; the SDK token stays with the local project. Keep credential files out of version control.

To create additional read or write tokens for that project:

logfire-cli --org acme token read
logfire-cli --org acme token write

Each command creates a new token and prints the secret once to standard output. Store it securely; do not paste it into logs, issues, or chat. These commands do not replace the project's saved SDK write token.

Run Python with automatic instrumentation

The CLI selects the active project interpreter and delegates instrumentation to the Logfire Python SDK installed in that environment:

logfire-cli run app.py
logfire-cli run -m uvicorn main:app
logfire-cli run pytest tests/

Use --python .venv/bin/python when interpreter discovery is ambiguous. Run logfire help run for selection rules and passthrough behavior.

Set up instrumentation with a coding agent

With a supported coding agent installed, run this from your application's directory:

logfire-cli --region us --org acme wizard

The CLI detects installed agents and hands off the Logfire setup instructions bundled with this release. The agent can change your project to add instrumentation, using its normal permission and approval controls. It receives the selected target and project identity, but it does not inherit the CLI's LOGFIRE_API_KEY, LOGFIRE_TOKEN, or LOGFIRE_MCP_TOKEN.

If you already know the exact project and setup task, pass them explicitly:

logfire-cli --region us --org acme wizard --project api --task instrumentation

Use bare wizard when you want the CLI and agent to discover the task from the current directory.

To inspect the instructions without launching an agent:

logfire-cli --region us --org acme wizard --print-prompt

Help and updates

logfire-cli help
logfire-cli help mcp
logfire-cli help wizard
uv tool upgrade logfire-cli

Use the upgrade command for a uv tool install installation; otherwise upgrade with the package manager you used to install it.

See the Logfire documentation for application instrumentation and platform guides. Logfire CLI is licensed under the MIT license.

Metadata

Release files for logfire-cli 0.1.10

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

Built distributions (wheels)

Table of built distributions (wheels) for logfire-cli 0.1.10
File
logfire_cli-0.1.10-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details
logfire_cli-0.1.10-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
logfire_cli-0.1.10-py3-none-win32.whl Python 3 none Windows x86-32 Details
logfire_cli-0.1.10-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details
logfire_cli-0.1.10-py3-none-musllinux_1_2_i686.whl Python 3 none Linux musl 1.2+ x86-32 Details
logfire_cli-0.1.10-py3-none-musllinux_1_2_armv7l.whl Python 3 none Linux musl 1.2+ ARMv7l Details
logfire_cli-0.1.10-py3-none-musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64 Details
logfire_cli-0.1.10-py3-none-manylinux_2_31_riscv64.whl Python 3 none Linux glibc 2.31+ RISC-V 64 Details
logfire_cli-0.1.10-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details
logfire_cli-0.1.10-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl Python 3 none Linux glibc 2.17+ IBM System/390x Details
logfire_cli-0.1.10-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl Python 3 none Linux glibc 2.17+ PowerPC 64-le Details
logfire_cli-0.1.10-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl Python 3 none Linux glibc 2.17+ x86-32 Details
logfire_cli-0.1.10-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl Python 3 none Linux glibc 2.17+ ARMv7l Details
logfire_cli-0.1.10-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details
logfire_cli-0.1.10-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details
logfire_cli-0.1.10-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details
logfire_cli-0.1.10-py3-none-linux_armv6l.whl Python 3 none linux armv6l Details

Total release size: 56.6 MB

Release files / logfire_cli-0.1.10-py3-none-win_arm64.whl

Download URL logfire_cli-0.1.10-py3-none-win_arm64.whl
Size 2.8 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
3e26b809d253a1f04ba2a78db0e2edf25629053d44044b1c07f458efe6809b08
BLAKE2b-256 checksum
How to use checksums
05c4664384772f50a40d73da97eb27e20e34a36a1361a85a5b490776a9ca89fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / logfire_cli-0.1.10-py3-none-win_amd64.whl

Download URL logfire_cli-0.1.10-py3-none-win_amd64.whl
Size 2.9 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
959ea864efb26a4c5d9e6d7b5cebae53002f0f463efee5a7c7256990372f7bcc
BLAKE2b-256 checksum
How to use checksums
a90f75da677cbdf2b650f3857606cc687830daaf64d331dacbcfd2e497029935
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / logfire_cli-0.1.10-py3-none-win32.whl

Download URL logfire_cli-0.1.10-py3-none-win32.whl
Size 2.7 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
6d001eb5167c31793008f1f1ddaaf15ec9abe606106e2697ce287b577746467e
BLAKE2b-256 checksum
How to use checksums
5d367c0cdaca821b53ae87a0877e9d560f4e82481c1a598d81e8280da2a55b3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / logfire_cli-0.1.10-py3-none-musllinux_1_2_x86_64.whl

Download URL logfire_cli-0.1.10-py3-none-musllinux_1_2_x86_64.whl
Size 3.8 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
2cf20b635665c14867a95f2646f4f39116b31d4d6618a7dfd9d561b592a181e5
BLAKE2b-256 checksum
How to use checksums
78e078739bdfa935d7da6df7b7b55d2efd0c29cdb6ecff97b6a74dfb7e76d622
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / logfire_cli-0.1.10-py3-none-musllinux_1_2_i686.whl

Download URL logfire_cli-0.1.10-py3-none-musllinux_1_2_i686.whl
Size 3.5 MB
Tags Linux musl 1.2+ x86-32 Python 3
SHA-256 checksum
How to use checksums
32adc0e61c2fea0b2a9faf8eb25cfefb564aa0140c26b7c06754d2efcae029b4
BLAKE2b-256 checksum
How to use checksums
be0eaf3fb14548702a6672e3cbc76dc22962f617189119a3882b845159bf5036
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / logfire_cli-0.1.10-py3-none-musllinux_1_2_armv7l.whl

Download URL logfire_cli-0.1.10-py3-none-musllinux_1_2_armv7l.whl
Size 3.3 MB
Tags Linux musl 1.2+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
c6a192e47ba8caec42743c166fbed60e753d7f28a8e65c2b5354281576b50d99
BLAKE2b-256 checksum
How to use checksums
071575563922488b2f8c347c46e0203bfcc258fc0e5420bef00863af2c6e9c0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / logfire_cli-0.1.10-py3-none-musllinux_1_2_aarch64.whl

Download URL logfire_cli-0.1.10-py3-none-musllinux_1_2_aarch64.whl
Size 3.6 MB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
ea67349d81c9661720003e98a94097e00b9a7d4dcca6229c2ad6ce3cd194f8ab
BLAKE2b-256 checksum
How to use checksums
6a2eec986581eb0f679b1fbc894147f5c55e36fe21992f1f9158de820bcae8f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / logfire_cli-0.1.10-py3-none-manylinux_2_31_riscv64.whl

Download URL logfire_cli-0.1.10-py3-none-manylinux_2_31_riscv64.whl
Size 3.4 MB
Tags Linux glibc 2.31+ RISC-V 64 Python 3
SHA-256 checksum
How to use checksums
737785aa9ae54a4231a0efbd4b8a14fc86f4ec4d9ea38e897be15638d31379f0
BLAKE2b-256 checksum
How to use checksums
caa3bb70971a0684164a49431b73d1bd2c20deb654ab81b856dbe6d402f8fc07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / logfire_cli-0.1.10-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL logfire_cli-0.1.10-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 3.7 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
8cb274f43b2f9aa2280ed563912975a213446f255804a82fbe8ffe4d5a5669f9
BLAKE2b-256 checksum
How to use checksums
afa782a1e19d22172ac1238155d0eaa98a1361add40e43a44d3b3d08c9b5d4b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / logfire_cli-0.1.10-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl

Download URL logfire_cli-0.1.10-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl
Size 3.5 MB
Tags Linux glibc 2.17+ IBM System/390x Python 3
SHA-256 checksum
How to use checksums
536c9788db3fd771cfd8d4dd33914ed81f838054c3f9fa4348df4e42b8ec9276
BLAKE2b-256 checksum
How to use checksums
80676879696fb6f42f58c8c4a20c3152442b3273b40bdd2a1db57a4e742c34b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / logfire_cli-0.1.10-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl

Download URL logfire_cli-0.1.10-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Size 3.7 MB
Tags Linux glibc 2.17+ PowerPC 64-le Python 3
SHA-256 checksum
How to use checksums
9a85853044f845006dd395902a597d178d2103b7acf4a1f6b8735703fd26b1b6
BLAKE2b-256 checksum
How to use checksums
276600c827529fbf9947b30cff2ca1bd53066dc4b2ac66b9fff9217081920d48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / logfire_cli-0.1.10-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl

Download URL logfire_cli-0.1.10-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
Size 3.7 MB
Tags Linux glibc 2.17+ x86-32 Python 3
SHA-256 checksum
How to use checksums
33c4a64218b966aa7b6fdb681e2d0b99999b1147f9c79eb760bc1727f485f2a6
BLAKE2b-256 checksum
How to use checksums
66fe1fdebb1a68d635da4cdc52396ac6f3702b26b173e0b564b112a791cffa99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / logfire_cli-0.1.10-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl

Download URL logfire_cli-0.1.10-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Size 3.3 MB
Tags Linux glibc 2.17+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
ef7c84619b515759dfd522c536e774f2dbd5f9e21c3af668d79a23499d811cc0
BLAKE2b-256 checksum
How to use checksums
71879a802b70f86c0f85f467881054ad228e5fae43c1cb4465dbf1704daba324
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / logfire_cli-0.1.10-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL logfire_cli-0.1.10-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 3.6 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
e0361096da3277fa280fb3082255ba873c832512066b6c6ebb20dcc4b0629366
BLAKE2b-256 checksum
How to use checksums
65fa7274ec7c4e1fb6eec2ff3b695c58f261434c653517aaae024421f5057f5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / logfire_cli-0.1.10-py3-none-macosx_11_0_arm64.whl

Download URL logfire_cli-0.1.10-py3-none-macosx_11_0_arm64.whl
Size 2.8 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
61222da0341c48c1366aff79666a090a74e35d8ccfb7eef021a5922e05edff34
BLAKE2b-256 checksum
How to use checksums
838433e50d181260a3b0b7cd2d8640081e573080aad8ab1158c3ca7e893db6ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / logfire_cli-0.1.10-py3-none-macosx_10_12_x86_64.whl

Download URL logfire_cli-0.1.10-py3-none-macosx_10_12_x86_64.whl
Size 3.0 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
0f6ce969f41986227ab2d25f01138897610b229f7001d24dc494c6892b12b67d
BLAKE2b-256 checksum
How to use checksums
c883f8386550d470fe684ffc3671cf0af4d4ab24f108186781acc411c2998f6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / logfire_cli-0.1.10-py3-none-linux_armv6l.whl

Download URL logfire_cli-0.1.10-py3-none-linux_armv6l.whl
Size 3.4 MB
Tags Python 3 linux armv6l
SHA-256 checksum
How to use checksums
4f1a57a4a99837a6a3c3e3156a821c921835a6390ade438b42db81168353cda8
BLAKE2b-256 checksum
How to use checksums
72f6696474507b795e28bab69850f0b43be82608189ea605e8a5a8ea0a35da1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.1.10 This release

17 release files

0.1.9

17 release files

0.1.8

17 release files

0.1.7

17 release files

0.1.6

17 release files

0.1.5

17 release files

0.1.4

5 release files

0.1.3

5 release files

0.1.2

5 release files

0.1.1

5 release files

0.1.0

4 release files

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