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

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

Total release size: 57.2 MB

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

Download URL logfire_cli-0.1.11-py3-none-win_arm64.whl
Size 2.8 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
8317369ac6ec5579a491a96211d1d7d2d96fb4879aef67f179c06939e31c2ad0
BLAKE2b-256 checksum
How to use checksums
e6a655f474ac5a8971f94999c3fbc0869edb5ab7c3b7e5388cfff9313638a2bc
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.11-py3-none-win_amd64.whl

Download URL logfire_cli-0.1.11-py3-none-win_amd64.whl
Size 3.0 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
2d1c6d0014989c3d5e9e65568de540e8a847594a21c0f4734eb9157a989b0cd6
BLAKE2b-256 checksum
How to use checksums
d0b8550b90b7e702238f06cb0aae037b0e856183a03c45b5c5257ad24c80d00c
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.11-py3-none-win32.whl

Download URL logfire_cli-0.1.11-py3-none-win32.whl
Size 2.7 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
6641334d974be47a9ce7a88fead68dc59a2ed4bc7ffb571dda9808cccb5b86b9
BLAKE2b-256 checksum
How to use checksums
a193771ce3ac9a02742b717e0f11c1a603f37e81fc74f7994cc05ef736d863d5
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.11-py3-none-musllinux_1_2_x86_64.whl

Download URL logfire_cli-0.1.11-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
71d0b7809039e6357ac199b9c4ccaaabd0802c6ceaad5e728cb6753d0dfff904
BLAKE2b-256 checksum
How to use checksums
4b391c142beab1325b195919630cbc5ecb4d4f729db38794cf3b14b192ef3950
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.11-py3-none-musllinux_1_2_i686.whl

Download URL logfire_cli-0.1.11-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
79f04873e4cb429389b7aca9f1b78d504ad3f2dd07d1594c2a5dfded3681046d
BLAKE2b-256 checksum
How to use checksums
88061bff8e8195c0ed44be8afe48794edf0f62a4c4f2dfb3866e0c3a531e1dfc
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.11-py3-none-musllinux_1_2_armv7l.whl

Download URL logfire_cli-0.1.11-py3-none-musllinux_1_2_armv7l.whl
Size 3.4 MB
Tags Linux musl 1.2+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
f53eb3cd36819a7831e5872f5666f112730f7b32879bdaf71be18fda20f1dc1e
BLAKE2b-256 checksum
How to use checksums
d876ec9e01d80e2cdb81dad048cf10769c4cb3f6d8653d1a032e39d6936b9cbd
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.11-py3-none-musllinux_1_2_aarch64.whl

Download URL logfire_cli-0.1.11-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
8b5e638ceb2bcb9b314f09f79673167906a4c2c947087784a013599f26863f08
BLAKE2b-256 checksum
How to use checksums
bc7aca64e2bf362c850f8a6710db696f7d4e45080b5c6de75665d9ec35c75c70
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.11-py3-none-manylinux_2_31_riscv64.whl

Download URL logfire_cli-0.1.11-py3-none-manylinux_2_31_riscv64.whl
Size 3.5 MB
Tags Linux glibc 2.31+ RISC-V 64 Python 3
SHA-256 checksum
How to use checksums
43104c07c2097ab7cb1929e146e8fd58fe43e2b59071f47b69c1d7b626b104ab
BLAKE2b-256 checksum
How to use checksums
7cacbbd3cdb48c89ec321c7aa18e6f2f29f3066d4016e284750fef611022fbce
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.11-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL logfire_cli-0.1.11-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
935a7f6e8714d384cf8226d7d801a88336b84f8264fa9476cdc3c1f68e702a11
BLAKE2b-256 checksum
How to use checksums
b842f6b42fbc22b1983b9c61b9acd57755bc58213b4cced0cd4198b50340d98e
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.11-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl

Download URL logfire_cli-0.1.11-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
a28f47436e7d17e2e9df7ae10d3901c739beae02b0023f2076eb4e4c69274f81
BLAKE2b-256 checksum
How to use checksums
062041599f3b1669e04dc2efbb44b7058e353cd29d5caf8f82093b768f773542
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.11-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl

Download URL logfire_cli-0.1.11-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Size 3.8 MB
Tags Linux glibc 2.17+ PowerPC 64-le Python 3
SHA-256 checksum
How to use checksums
d900e456e0061bcf2bfa6b6d0741d6937a11ea10b22fcf319db682aeb0b3653b
BLAKE2b-256 checksum
How to use checksums
b590f2e12c273a52adf139ea858e60010651e24d28a7df76f37f6d1af8e7a147
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.11-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl

Download URL logfire_cli-0.1.11-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
7443e7a698d326b73f68ca8670bfe0e33887eb8e3cd17eb457fa7f41258daab4
BLAKE2b-256 checksum
How to use checksums
b314e058b4821a9d1f984d6d992bd5ec222b61522cd1c9a25eb611e024cbd291
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.11-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl

Download URL logfire_cli-0.1.11-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
d2a2e9cc74b372fb7d6d6d8d0c70ab6da9bfc973f4831e832dce8c4d8499452c
BLAKE2b-256 checksum
How to use checksums
b83bc470919f5bdb3354284de749dae90c08778f3fdb0946cf5259cbf69b2eeb
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.11-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL logfire_cli-0.1.11-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
e39dae80c573e8ed64d8b49b35029e0280078e2d9edb4701d6c072e974373b2b
BLAKE2b-256 checksum
How to use checksums
ae60a63efc129d38d2990416c00cbc41cc4e99562ed59ed6a30f09a2b333173f
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.11-py3-none-macosx_11_0_arm64.whl

Download URL logfire_cli-0.1.11-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
f30c4724fbd35f02f752bf84ce0e3d0389cf3c6f970ed356dab2071cdff04f8f
BLAKE2b-256 checksum
How to use checksums
76dd391800559f2f492dabb091744aa1c3a9c8b82913845e167730745af6993a
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.11-py3-none-macosx_10_12_x86_64.whl

Download URL logfire_cli-0.1.11-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
f225b689bee4cb258d8282c50364782a7f1734dca6c849353f64c15108fec3e3
BLAKE2b-256 checksum
How to use checksums
64b7c4d02abfda6b43b68c0eb1cc69afeccc9bca9c982f7c13ceb8bdd40e09d0
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.11-py3-none-linux_armv6l.whl

Download URL logfire_cli-0.1.11-py3-none-linux_armv6l.whl
Size 3.4 MB
Tags Python 3 linux armv6l
SHA-256 checksum
How to use checksums
cbd27a53771d00f9ee2faad6673e7eff25e8997e63d91e93f9ae6afab611d4a2
BLAKE2b-256 checksum
How to use checksums
b83361915c6540a028134c5be41b83cd12308b6c7907ba5b994a8ad2ea842995
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.11 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