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
logfire-cli project current

OAuth remains in OS-protected storage; 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-cli 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.21

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

Total release size: 60.2 MB

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

Download URL logfire_cli-0.1.21-py3-none-win_arm64.whl
Size 3.1 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
368e33550ba7c49eca5e2c51c375896d9fc243b7fabf25f9b69ed2ebc19430b0
BLAKE2b-256 checksum
How to use checksums
7ded1f9849088b0c7d66c0b3f551af8350a6beb63c3c56d05b71456b250e952b
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.21-py3-none-win_amd64.whl

Download URL logfire_cli-0.1.21-py3-none-win_amd64.whl
Size 3.3 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
075298cc144214a0186cc5fdca65008e14485a22b19afdab77e12e087ab0ec5a
BLAKE2b-256 checksum
How to use checksums
8c2cd7d51ea163c9dd138a5007c88c2247731c41339236986a56b7e83c97749b
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.21-py3-none-win32.whl

Download URL logfire_cli-0.1.21-py3-none-win32.whl
Size 3.1 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
d12e11bf5dd398a0885b606b17d307c02cca30b72ad093eb98719f0e0932f681
BLAKE2b-256 checksum
How to use checksums
237f19efe3c1e2e76ec53882bb4510578f3847545bf7df42211771336796944b
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.21-py3-none-musllinux_1_2_x86_64.whl

Download URL logfire_cli-0.1.21-py3-none-musllinux_1_2_x86_64.whl
Size 3.9 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
73c002fe15db31c4ed1ac928b09ce1fd0346d0718a09a20d3bd8bf3ba5fd63b4
BLAKE2b-256 checksum
How to use checksums
81f8c723928b3af0828a1ebdfc59f114ac2d6977dfdce7e80a0745f93406435d
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.21-py3-none-musllinux_1_2_i686.whl

Download URL logfire_cli-0.1.21-py3-none-musllinux_1_2_i686.whl
Size 3.6 MB
Tags Linux musl 1.2+ x86-32 Python 3
SHA-256 checksum
How to use checksums
2bdc4b11eb56f6a6cabc9b1393d6b437f50937d50b950eb5f2281e5a9b9b8df4
BLAKE2b-256 checksum
How to use checksums
a01a34bdfead105d0dff674bbeb0125ceefd646d10b2658471f831df5bdcab58
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.21-py3-none-musllinux_1_2_armv7l.whl

Download URL logfire_cli-0.1.21-py3-none-musllinux_1_2_armv7l.whl
Size 3.5 MB
Tags Linux musl 1.2+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
8e80f7dfe743e8d3f1145fbfe78219a125c31c335c57aeab3043fc519e040a83
BLAKE2b-256 checksum
How to use checksums
d2ca536d56333818a73a830f0c46564f2c8c62b329c45f5c8286f585b60ade17
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.21-py3-none-musllinux_1_2_aarch64.whl

Download URL logfire_cli-0.1.21-py3-none-musllinux_1_2_aarch64.whl
Size 3.7 MB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
5664ff4e7d88ee5328eb39920e780b456f13c880f1760261e54aa325194190c8
BLAKE2b-256 checksum
How to use checksums
0e693130bfeab136aed0281151fd3be5bb53f690c0fe40aee8d8fab93e6e87c2
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.21-py3-none-manylinux_2_31_riscv64.whl

Download URL logfire_cli-0.1.21-py3-none-manylinux_2_31_riscv64.whl
Size 3.6 MB
Tags Linux glibc 2.31+ RISC-V 64 Python 3
SHA-256 checksum
How to use checksums
61a7efcae7e6b683ef3e473915ac96b915ba664a64e88a6c2ab4f74dea2bb890
BLAKE2b-256 checksum
How to use checksums
0b1e881b37c192cfdcf14e36fe041c9be1a8189ba995c7aabfd8c8d35d35c41c
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.21-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL logfire_cli-0.1.21-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 3.8 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
7fc4047c2659c0acd9e15ff9d424c454038a6a1995c08c90175cbaddb39b3d29
BLAKE2b-256 checksum
How to use checksums
23bb6410eb138e6296497f1d6df3f78963683bb363c465ac77be751774410a36
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.21-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl

Download URL logfire_cli-0.1.21-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl
Size 3.6 MB
Tags Linux glibc 2.17+ IBM System/390x Python 3
SHA-256 checksum
How to use checksums
d11405d45a1b1d06f0702b63e88f9777a5088d4f3635aaae2f358346514c6831
BLAKE2b-256 checksum
How to use checksums
6279dfcaf03263fbda8e51b25a4d019e8ed655530d84dfa32c2c8a6228cc46f4
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.21-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl

Download URL logfire_cli-0.1.21-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Size 3.9 MB
Tags Linux glibc 2.17+ PowerPC 64-le Python 3
SHA-256 checksum
How to use checksums
cb11c15a8d5eb3102db3828db8f0efabe9af8595e033514c6935021557f5b12a
BLAKE2b-256 checksum
How to use checksums
3da6be921319ca3eec3bdacf3c518b9ee5f78a67f3cc1b0a0939449c91c8486f
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.21-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl

Download URL logfire_cli-0.1.21-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
Size 3.8 MB
Tags Linux glibc 2.17+ x86-32 Python 3
SHA-256 checksum
How to use checksums
5d908f0368b73ae7134feba0c7e67135803eeffbdf1e41b6ffc72b73c9ffe3a9
BLAKE2b-256 checksum
How to use checksums
9d8de43b6bd373a41822de544e009cc3933e3e4234112bb6827dcd4b918896ad
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.21-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl

Download URL logfire_cli-0.1.21-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Size 3.4 MB
Tags Linux glibc 2.17+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
051b799a9c0eaa71554e45582ae77e19c70d28cc8339a525d16e1cbe10bec259
BLAKE2b-256 checksum
How to use checksums
b72950c12e6c7d23c4e2867ffba9916414826accf83cf83408e8471c9c9fee28
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.21-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL logfire_cli-0.1.21-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 3.7 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
d6a096157f0ae2c56351e0aa1694fe2ddd95aa36a89ddf4095db05763dc53e80
BLAKE2b-256 checksum
How to use checksums
c2f42892b0384aeb2c91939848df0732ca231c2a90bc1a09f746b7f992e7ce28
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.21-py3-none-macosx_11_0_arm64.whl

Download URL logfire_cli-0.1.21-py3-none-macosx_11_0_arm64.whl
Size 3.1 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e9f42e53fba608d87c62edcf2db43c45ea0ea828288b297f962bcf04e8968ce0
BLAKE2b-256 checksum
How to use checksums
4d716b32bdd15c774c58248c4a53268607d30addf2aebe287c202b02f350c836
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.21-py3-none-macosx_10_12_x86_64.whl

Download URL logfire_cli-0.1.21-py3-none-macosx_10_12_x86_64.whl
Size 3.4 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
112cde9e53fd1c75de2a050449e0c66fcd7e4567c606097575ac49c3798b8922
BLAKE2b-256 checksum
How to use checksums
13b8197a51fa83c86753c165b7394957d46bc6966eecff314dcbe717f0008ce1
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.21-py3-none-linux_armv6l.whl

Download URL logfire_cli-0.1.21-py3-none-linux_armv6l.whl
Size 3.5 MB
Tags Python 3 linux armv6l
SHA-256 checksum
How to use checksums
91a9f96147238e9c70e5854fa470666b6f71a9636f22a35e7a7343965cfd14c5
BLAKE2b-256 checksum
How to use checksums
0fd8bed83c8b6d5c8d686e3a22d5a3a4b7df30ace8a9cff2213e3f6c3726f537
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Security for logfire-cli 0.1.21

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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