logfire-cli 0.1.5__py3-none-win_arm64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,14 @@
1
+ """Run the native Logfire CLI installed in this wheel."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import os
6
+ import sys
7
+ from pathlib import Path
8
+
9
+
10
+ def main() -> None:
11
+ """Replace this process with the bundled, provenance-verified CLI."""
12
+ binary = Path(__file__).with_name("bin") / ("logfire.exe" if os.name == "nt" else "logfire")
13
+ os.environ["LOGFIRE_CLI_DISTRIBUTION"] = "pypi"
14
+ os.execv(binary, [str(binary), *sys.argv[1:]])
Binary file
@@ -0,0 +1,181 @@
1
+ Metadata-Version: 2.4
2
+ Name: logfire-cli
3
+ Version: 0.1.5
4
+ Summary: The command-line interface for Pydantic Logfire.
5
+ Home-page: https://pydantic.dev/logfire
6
+ Project-URL: Documentation, https://pydantic.dev/docs/logfire/
7
+ Project-URL: Source, https://github.com/pydantic/logfire-cli
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Requires-Python: >=3.9
11
+ Description-Content-Type: text/markdown; charset=UTF-8
12
+
13
+ # Logfire CLI
14
+
15
+ The Rust command-line interface for [Pydantic Logfire](https://pydantic.dev/logfire).
16
+ Sign in, query your traces and logs, manage projects and tokens, and connect your
17
+ coding agent to Logfire from the terminal.
18
+
19
+ This package installs the native CLI, not the Python instrumentation SDK.
20
+ Install an application SDK separately to send telemetry; see the
21
+ [Logfire documentation](https://pydantic.dev/docs/logfire/).
22
+
23
+ ## Install
24
+
25
+ Try it with [uv](https://docs.astral.sh/uv/):
26
+
27
+ ```bash
28
+ uvx logfire-cli --help
29
+ ```
30
+
31
+ Install it as an isolated command-line tool:
32
+
33
+ ```bash
34
+ uv tool install logfire-cli
35
+ logfire --help
36
+ ```
37
+
38
+ Or use `pipx install logfire-cli`. In an activated virtual environment, you can
39
+ also run `python -m pip install logfire-cli`.
40
+
41
+ The package provides both `logfire` and `logfire-cli`. If another package already
42
+ provides a `logfire` command, use `logfire-cli` or `uvx logfire-cli` to select this
43
+ CLI explicitly.
44
+
45
+ Python 3.9 or newer is required for the launcher. Wheels include the matching
46
+ prebuilt binary for macOS (ARM64 and x86-64), Windows (ARM64, x86, and x86-64),
47
+ GNU/Linux (ARM64, ARMv7, x86, x86-64, PowerPC 64 LE, RISC-V 64, and IBM Z), and
48
+ musl Linux (ARM64, ARMv6, ARMv7, x86, and x86-64). You do not need Rust installed.
49
+ GNU/Linux requires glibc 2.17 or newer, except RISC-V 64, which requires glibc
50
+ 2.31. The musl wheels support compatible Alpine Linux versions.
51
+
52
+ ## New to Logfire
53
+
54
+ From your application's directory, create an account, organization, and first
55
+ project in one guided flow:
56
+
57
+ ```bash
58
+ logfire --region us signup --org acme --project my-app
59
+ logfire --org acme project current
60
+ ```
61
+
62
+ Replace `acme` and `my-app` with the real names you want. Use `--region eu` for
63
+ the EU region. Browser OAuth credentials go to the operating system credential
64
+ store; the project SDK credential stays under `.logfire/` in your application.
65
+
66
+ Then add instrumentation with an installed coding agent:
67
+
68
+ ```bash
69
+ logfire --org acme setup
70
+ ```
71
+
72
+ ## Use an existing account
73
+
74
+ Use your real organization name in place of `acme`, and `eu` instead of `us` if
75
+ your data is in the EU region:
76
+
77
+ ```bash
78
+ logfire --region us --org acme auth
79
+ logfire --org acme mcp projects
80
+ ```
81
+
82
+ Complete sign-in and approve access in your browser. OAuth credentials are stored
83
+ in the OS credential store, scoped to the Logfire origin and organization.
84
+
85
+ Choose a project from the list, then query its data through the hosted Model
86
+ Context Protocol (MCP) server:
87
+
88
+ ```bash
89
+ logfire --org acme mcp query run 'SELECT message FROM records LIMIT 20' --project my-app
90
+ ```
91
+
92
+ For scripts, make the target explicit and request non-interactive JSON output:
93
+
94
+ ```bash
95
+ logfire --org acme --no-input --output json mcp projects
96
+ ```
97
+
98
+ ## Connect a local project
99
+
100
+ From your application's directory, create or choose a project interactively:
101
+
102
+ ```bash
103
+ logfire --org acme init
104
+ ```
105
+
106
+ To connect an exact existing project without a picker:
107
+
108
+ ```bash
109
+ logfire --org acme init use --name my-app --permission send
110
+ logfire project current
111
+ ```
112
+
113
+ OAuth remains in the OS credential store; the SDK token stays with the local
114
+ project. Keep credential files out of version control.
115
+
116
+ To create additional read or write tokens for that project:
117
+
118
+ ```bash
119
+ logfire --org acme token read
120
+ logfire --org acme token write
121
+ ```
122
+
123
+ Each command creates a new token and prints the secret once to standard output.
124
+ Store it securely; do not paste it into logs, issues, or chat. These commands do
125
+ not replace the project's saved SDK write token.
126
+
127
+ ## Run Python with automatic instrumentation
128
+
129
+ The CLI selects the active project interpreter and delegates instrumentation to
130
+ the Logfire Python SDK installed in that environment:
131
+
132
+ ```bash
133
+ logfire run app.py
134
+ logfire run -m uvicorn main:app
135
+ logfire run pytest tests/
136
+ ```
137
+
138
+ Use `--python .venv/bin/python` when interpreter discovery is ambiguous. Run
139
+ `logfire help run` for selection rules and passthrough behavior.
140
+
141
+ ## Set up instrumentation with a coding agent
142
+
143
+ With Codex or Claude Code installed, run this from your application's directory:
144
+
145
+ ```bash
146
+ logfire --region us --org acme setup
147
+ ```
148
+
149
+ The CLI detects installed agents and hands off the Logfire setup instructions
150
+ bundled with this release. The agent can change your project to add
151
+ instrumentation, using its normal permission and approval controls.
152
+
153
+ If you already know the exact project and setup task, pass them explicitly:
154
+
155
+ ```bash
156
+ logfire --region us --org acme setup --project api --task instrumentation
157
+ ```
158
+
159
+ Use bare `setup` when you want the CLI and agent to discover the task from the
160
+ current directory.
161
+
162
+ To inspect the instructions without launching an agent:
163
+
164
+ ```bash
165
+ logfire --region us --org acme setup --print-prompt
166
+ ```
167
+
168
+ ## Help and updates
169
+
170
+ ```bash
171
+ logfire help
172
+ logfire help mcp
173
+ logfire help setup
174
+ uv tool upgrade logfire-cli
175
+ ```
176
+
177
+ Use the upgrade command for a `uv tool install` installation; otherwise upgrade
178
+ with the package manager you used to install it.
179
+
180
+ See the [Logfire documentation](https://pydantic.dev/docs/logfire/) for application
181
+ instrumentation and platform guides. Logfire CLI is licensed under the MIT license.
@@ -0,0 +1,7 @@
1
+ logfire_cli-0.1.5.dist-info/METADATA,sha256=xhJdwqJfBqYGLjcQZWxECT9ZKvpkTnT7TJdb85cKbFc,5483
2
+ logfire_cli-0.1.5.dist-info/WHEEL,sha256=MGJLJc0uLFPIUy-PfJs8Y3JzyvslwGl5FF9n2f_HgT0,105
3
+ logfire_cli-0.1.5.dist-info/entry_points.txt,sha256=3BUySf0XhtZmjkshAhg2Xby6yow-Q19XgB7vsYhhMPo,76
4
+ logfire_cli-0.1.5.dist-info/licenses/LICENSE,sha256=A1UHuKHnh6FsfxOPCSVXowqO6cyc726E0RVG7juaRc0,1099
5
+ logfire_cli/__init__.py,sha256=oDBQ41SBhqtNJzcF71x82-NJXk53lgg58Q4_dqzvdpA,437
6
+ logfire_cli/bin/logfire.exe,sha256=NUl-Tftg93qLuWU96G5z4Td6Q4yL17qbJITjk5lHGzQ,5380608
7
+ logfire_cli-0.1.5.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: logfire-cli release tooling
3
+ Root-Is-Purelib: false
4
+ Tag: py3-none-win_arm64
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ logfire = logfire_cli:main
3
+ logfire-cli = logfire_cli:main
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2023 - present Pydantic Services inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.