### Install Logfire SDK Source: https://logfire.pydantic.dev/docs Commands to install the Logfire SDK using different Python package managers. ```bash pip install logfire ``` ```bash uv add logfire ``` ```bash conda install -c conda-forge logfire ``` -------------------------------- ### Verify Logfire CLI Source: https://logfire.pydantic.dev/docs Check the CLI installation and help menu. ```bash logfire -h ``` -------------------------------- ### Initialize and Log with Python Source: https://logfire.pydantic.dev/docs Basic usage of the Logfire SDK to configure and send an info-level log message. ```python import logfire logfire.configure() logfire.info('Hello, {name}!', name='world') ``` -------------------------------- ### Set Logfire Project Source: https://logfire.pydantic.dev/docs Configure the active project for the current directory. ```bash logfire projects use ``` -------------------------------- ### Authenticate Logfire CLI Source: https://logfire.pydantic.dev/docs Authenticate the local environment with Logfire. ```bash logfire auth ``` -------------------------------- ### Configure Logfire Token Source: https://logfire.pydantic.dev/docs Set the environment variable for the write token to enable data transmission. ```bash export LOGFIRE_TOKEN= ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.