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

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

Total release size: 57.3 MB

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

Download URL logfire_cli-0.1.12-py3-none-win_arm64.whl
Size 2.8 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
790857ddf328da7586088fc86bdb7a5bc2fdc1764602e723f8515f5bae55a263
BLAKE2b-256 checksum
How to use checksums
2cf6069497045b9d80f19f7adac91c8ca4ac86356302bcc0174ac60dacaf606a
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.12-py3-none-win_amd64.whl

Download URL logfire_cli-0.1.12-py3-none-win_amd64.whl
Size 3.0 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
5bf0598ac2789aed1418a48cb1fead0b22b02d026f2863d7017be40e72b1e0a2
BLAKE2b-256 checksum
How to use checksums
c385845133b3b9d83d14e50553ee8827295a959bc3920bf5502a324a2276f412
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.12-py3-none-win32.whl

Download URL logfire_cli-0.1.12-py3-none-win32.whl
Size 2.8 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
2fe9b84f0909f1fdb531b0dc47a83b83e36f85bc27741131877ff97e50f42662
BLAKE2b-256 checksum
How to use checksums
92e31e2573f76e3fe7c65a64a1e6a68c3b9094ac0c8619eb62829d6e77ed8263
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.12-py3-none-musllinux_1_2_x86_64.whl

Download URL logfire_cli-0.1.12-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
f7f386f3e3b5dd1168d40bc9c942ba3082c32d4b93a1dbfc8eaed89f40a0fb84
BLAKE2b-256 checksum
How to use checksums
4701485e88b618c06dbb9a027296a3b72ef62d589ea8121d7f8f83f398ed7ff3
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.12-py3-none-musllinux_1_2_i686.whl

Download URL logfire_cli-0.1.12-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
ab8341e37b60dd16d6bb8ac8c8188a9a7f4898bd3662da7eee6df51950f2c5b0
BLAKE2b-256 checksum
How to use checksums
51e7cabc66a0deb81a11b932fe1f2437ee8787c00127b8dd5dd02d159e211efd
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.12-py3-none-musllinux_1_2_armv7l.whl

Download URL logfire_cli-0.1.12-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
a9e0aa07f37a56602a0fb33ffac3f4b6dabad001dc9384f8ee1189e8e86d5614
BLAKE2b-256 checksum
How to use checksums
300436dae1123f9f3cc68fbfd372db9d6c8f74d7357c13605f0752526b358352
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.12-py3-none-musllinux_1_2_aarch64.whl

Download URL logfire_cli-0.1.12-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
175e6c314fd5b4a21798300c0a98c506ff14cba616a09a613ad96d3f15a9df06
BLAKE2b-256 checksum
How to use checksums
1daaf4ff0309412eaed9ca1877e1a4617bfeb669bee081838c1bf5ba1d8a2cc9
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.12-py3-none-manylinux_2_31_riscv64.whl

Download URL logfire_cli-0.1.12-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
7eb15011eb2a968ff03606e0b71ef93235b50e971718216fcbf4d92f88faec9d
BLAKE2b-256 checksum
How to use checksums
8d7cc7191bd1cb4aaf3ad757c62a22ff9089cefedb3fd06db543831e4848efd3
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.12-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL logfire_cli-0.1.12-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
e7787cbe1ab0752bd02e7d25a83a5b1c0d92b2788e39b062e0049b16ad213618
BLAKE2b-256 checksum
How to use checksums
ae7b71f660b3a53ad835bf2fbfc81d64c3a9bb434452764fe03147e3139b7861
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.12-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl

Download URL logfire_cli-0.1.12-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
35d19ed2badc580dcc91a94a25ab79a39154c06badb29f56ddd6987e8e91211a
BLAKE2b-256 checksum
How to use checksums
c7027031a6f8d6e9e0ba96f01a906fad27a30661c7a8484993cca241626bbc75
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.12-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl

Download URL logfire_cli-0.1.12-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
3167e99ba8b1494d3a8f4537e14ace6e359dc9484d34487e9c7d72fdc360e8e6
BLAKE2b-256 checksum
How to use checksums
c690747ccf4cfb4f0a7534b6fd8302412afb2bc2199cb13879ad27a217597357
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.12-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl

Download URL logfire_cli-0.1.12-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
cb2c4162864148591fdc0a74f17e4d63f403703560bf88eebc0fffe6bd9e66d0
BLAKE2b-256 checksum
How to use checksums
d010d2a07e02c30e4a30d38b761d1f8450901547c0119988402d5d66e3719de7
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.12-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl

Download URL logfire_cli-0.1.12-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
7a30012ad81eb9692c17efcb8f4e5e7c4fe344f24fc3b8fed0303c0d7fae235c
BLAKE2b-256 checksum
How to use checksums
f8d93d565b83d24dd3c18edacd9d0deac89fb2adcdd0f5bda4b4aee1044f0fda
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.12-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL logfire_cli-0.1.12-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
62e14db46b36e2b5ce4e7b3075052558ea00c408beaeb2052485f80e0824a40b
BLAKE2b-256 checksum
How to use checksums
377a0e9750c8d2c2d67d13bd83a6f67c76e32a6dc847ace8edff511703819450
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.12-py3-none-macosx_11_0_arm64.whl

Download URL logfire_cli-0.1.12-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
ff57b6e0d9cdc564b621d90369d8fc6a951827deb8d8a0acab5007b4a35a5bca
BLAKE2b-256 checksum
How to use checksums
d5128bb12ee472dddd1af672cb299a44fc20822e515f31e184a8525c98f6d68e
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.12-py3-none-macosx_10_12_x86_64.whl

Download URL logfire_cli-0.1.12-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
0f3c3a6fe42ad2325201576868914eeef7f87f92dd6587a9f0584842fd58749f
BLAKE2b-256 checksum
How to use checksums
83b6aa7e97be92dae22e5bf3314a4bba8c11d0009797ff09bff6834785e6eaff
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.12-py3-none-linux_armv6l.whl

Download URL logfire_cli-0.1.12-py3-none-linux_armv6l.whl
Size 3.4 MB
Tags Python 3 linux armv6l
SHA-256 checksum
How to use checksums
95037c80493c2d3a051211fb726a42efa110be4e0f1a8ecfb97d77db6c88629e
BLAKE2b-256 checksum
How to use checksums
c7b3765b09fc578ab62c7f807a69bcbc40c101c9e0c44e7a00b7465e63c22dd7
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.12 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