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.9

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.9
File
logfire_cli-0.1.9-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details
logfire_cli-0.1.9-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
logfire_cli-0.1.9-py3-none-win32.whl Python 3 none Windows x86-32 Details
logfire_cli-0.1.9-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details
logfire_cli-0.1.9-py3-none-musllinux_1_2_i686.whl Python 3 none Linux musl 1.2+ x86-32 Details
logfire_cli-0.1.9-py3-none-musllinux_1_2_armv7l.whl Python 3 none Linux musl 1.2+ ARMv7l Details
logfire_cli-0.1.9-py3-none-musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64 Details
logfire_cli-0.1.9-py3-none-manylinux_2_31_riscv64.whl Python 3 none Linux glibc 2.31+ RISC-V 64 Details
logfire_cli-0.1.9-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.9-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl Python 3 none Linux glibc 2.17+ IBM System/390x Details
logfire_cli-0.1.9-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl Python 3 none Linux glibc 2.17+ PowerPC 64-le Details
logfire_cli-0.1.9-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl Python 3 none Linux glibc 2.17+ x86-32 Details
logfire_cli-0.1.9-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl Python 3 none Linux glibc 2.17+ ARMv7l Details
logfire_cli-0.1.9-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details
logfire_cli-0.1.9-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details
logfire_cli-0.1.9-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details
logfire_cli-0.1.9-py3-none-linux_armv6l.whl Python 3 none linux armv6l Details

Total release size: 56.1 MB

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

Download URL logfire_cli-0.1.9-py3-none-win_arm64.whl
Size 2.8 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
e3ffc14b960f1c6f070b907d7393dbe5577fb8859fee92261d66088ab75079c4
BLAKE2b-256 checksum
How to use checksums
3eea38fc8023c5ce1b44d1b9f17f153cb472c67c37750537bf8a921a77bf8dbd
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.9-py3-none-win_amd64.whl

Download URL logfire_cli-0.1.9-py3-none-win_amd64.whl
Size 2.9 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
3b8e7a462d00a1a74a3790dbbbbc5547436b7008f2762d46302c24ac3aaae075
BLAKE2b-256 checksum
How to use checksums
8628a7484565079825910169a01611a93135bdd5e0623b10e7ba86831a8335e4
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.9-py3-none-win32.whl

Download URL logfire_cli-0.1.9-py3-none-win32.whl
Size 2.7 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
987485dcbb6409577a1fe9e81aec04c243b3849b2bcf4edf5d5a66384d181d29
BLAKE2b-256 checksum
How to use checksums
fc727c633cf36d0af0b7522110d5c44f454d4706f0d975248dea68032ba46332
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.9-py3-none-musllinux_1_2_x86_64.whl

Download URL logfire_cli-0.1.9-py3-none-musllinux_1_2_x86_64.whl
Size 3.7 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
1bd631b4d5b08765fb6468578ba3ad787290fdf2a989bb098858c8128cdc992f
BLAKE2b-256 checksum
How to use checksums
49f9ca8f12e80fb3c9d9815620c57f286bcf8a99cb95f10a4ca862c2153af15e
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.9-py3-none-musllinux_1_2_i686.whl

Download URL logfire_cli-0.1.9-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
af0e0f406c3a738603983ab8934e8297332bf13542679c7beb4b06fac7f7885f
BLAKE2b-256 checksum
How to use checksums
04d6c929e2e9329702c821d700e956e9dda3f66e8d08adfb873e3819772238be
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.9-py3-none-musllinux_1_2_armv7l.whl

Download URL logfire_cli-0.1.9-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
f2397e70b3c488ceef5db29ed22a79d41a43c1c754e2028f5367451c5468927f
BLAKE2b-256 checksum
How to use checksums
6b480e7922fbe0e692b8d9b13b3b55fa585c1fc36f8c549984ab4bf625dc7c4f
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.9-py3-none-musllinux_1_2_aarch64.whl

Download URL logfire_cli-0.1.9-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
f13573217d4f038f3f10419860d06f3419be1dfc3c5d8a67646337c539e7c811
BLAKE2b-256 checksum
How to use checksums
4791f6b5e83b18ce4c2acc026cfc4bc53806918f3e921770207ef527890459e8
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.9-py3-none-manylinux_2_31_riscv64.whl

Download URL logfire_cli-0.1.9-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
8d364c60bd149fd6919cd6bb5e2fee71c6e2b5bbbb150613ae099a0d5ca13f9c
BLAKE2b-256 checksum
How to use checksums
7cc700754619445b687bbbc036c07931eea3e568299c999b68ae4c22cee61b66
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.9-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL logfire_cli-0.1.9-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
5698eb7cb214c02acec3a43876f3ea516a310b456a176c41f41ba241e2bb88c7
BLAKE2b-256 checksum
How to use checksums
77a5e358860fd5ead83ec342b6897b55f8c0eb68d3eb213a406950231385428b
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.9-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl

Download URL logfire_cli-0.1.9-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl
Size 3.4 MB
Tags Linux glibc 2.17+ IBM System/390x Python 3
SHA-256 checksum
How to use checksums
d5c3ee5791c2e8c2362299ba6b05d5cda1873e49629259371785baee49427260
BLAKE2b-256 checksum
How to use checksums
9beab806ee8daaa2d4898238ff07dd4fc36dda4a91e5a99b7d54dcb16fb323bb
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.9-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl

Download URL logfire_cli-0.1.9-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
31b17e0e9e27183da161c8dbdfe39359581a4bddc53438ba05cb33781beaa377
BLAKE2b-256 checksum
How to use checksums
328e9902dbfb26cb25dc72c1e6f8ba7e4d99e09a988fc98e71157af5ee931405
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.9-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl

Download URL logfire_cli-0.1.9-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
Size 3.6 MB
Tags Linux glibc 2.17+ x86-32 Python 3
SHA-256 checksum
How to use checksums
ecb197e3a828417eaae57949df0034816316c7e77725e65573a5c42f703f9f2a
BLAKE2b-256 checksum
How to use checksums
b3835bc9f83056a901d95092e1584b1982889838338f188460e422bbb28c5300
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.9-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl

Download URL logfire_cli-0.1.9-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
53b241fbd03eff68740cdef961e077161d8a4ced4be112717bec15c08b26d11b
BLAKE2b-256 checksum
How to use checksums
3b9b59025d177d5cf840a5af1c0878c0389f7eeedf664450f4539e2ae1617329
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.9-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL logfire_cli-0.1.9-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 3.5 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
03a94704d94a9cd33a00d6f8da5f887ba50f2f421ba3a49358fbd3152169c74d
BLAKE2b-256 checksum
How to use checksums
2ff198fc4a49a40c54542fc49843e505bf87e9324287808f8f0fd6e9c751b7ea
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.9-py3-none-macosx_11_0_arm64.whl

Download URL logfire_cli-0.1.9-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
d8331f3bb8de3675b0a016274e04a957622d9aa1442575895d1cbf00efdc3546
BLAKE2b-256 checksum
How to use checksums
c0446336659a36375353d561e82a6f7a3e395fa472687732959b448f0357be6d
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.9-py3-none-macosx_10_12_x86_64.whl

Download URL logfire_cli-0.1.9-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
60ec26db4055cf2524042a58f6d084770e3a34f2590522b787f6a94635c73e73
BLAKE2b-256 checksum
How to use checksums
ec6355c29d0b7739fdf773f99dd06456fa0672895fd977c2f2c864ebe2cfdbf3
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.9-py3-none-linux_armv6l.whl

Download URL logfire_cli-0.1.9-py3-none-linux_armv6l.whl
Size 3.3 MB
Tags Python 3 linux armv6l
SHA-256 checksum
How to use checksums
27836e63fa4c8cff545a2718e2308285e574568731a13fa1061e264ab0b564c7
BLAKE2b-256 checksum
How to use checksums
1392be90171aa379a0fdaea1ddeafdda9598e4a004ce7ed8fb722f23e39d5995
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.9 This release

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