| Crates.io | burn-central-cli |
| lib.rs | burn-central-cli |
| version | 0.3.0 |
| created_at | 2025-12-04 17:23:20.242548+00 |
| updated_at | 2026-01-20 21:08:01.611634+00 |
| description | Burn Central CLI |
| homepage | |
| repository | https://github.com/tracel-ai/burn-central-cli |
| max_upload_size | |
| id | 1966733 |
| size | 174,321 |
The Burn Central CLI (burn) is the command-line tool for interacting with Burn Central, the centralized platform for experiment tracking, model sharing, and deployment for Burn users.
This CLI works in conjunction with the Burn Central SDK to provide a seamless workflow for:
cargo install burn-central-cli
git clone https://github.com/tracel-ai/burn-central-cli.git
cd burn-central-cli
cargo install --path crates/burn-central-cli
After installation, the burn command will be available in your terminal.
Add the SDK to your Cargo.toml:
[dependencies]
burn-central = "0.1.0"
Use the #[register] macro to make your training function discoverable:
use burn_central::{
experiment::ExperimentRun,
macros::register,
runtime::{Args, ArtifactLoader, Model, MultiDevice},
};
#[register(training, name = "mnist")]
pub fn training<B: AutodiffBackend>(
client: &ExperimentRun,
config: Args<YourExperimentConfig>,
MultiDevice(devices): MultiDevice<B>,
loader: ArtifactLoader<ModelArtifact<B>>,
) -> Result<Model<impl ModelArtifact<B::InnerBackend>>, String> {
// Your training logic here...
Ok(Model(model_artifact))
}
See the SDK documentation for complete integration details.
Navigate to your Burn project directory and run:
burn init
This will:
burn login
This opens your browser to authenticate with Burn Central and stores your credentials locally.
burn train
The CLI will:
burn trainRun a training or inference job locally or trigger a remote execution.
# Run with interactive prompts
burn train
# Run a specific function
burn train mnist
# Run with argument overrides
burn train --override epochs=100
burn packagePackage your project for deployment on remote compute providers.
burn package
This creates a deployable artifact containing your code, dependencies, and configurations.
burn loginAuthenticate with the Burn Central platform.
burn login
burn initInitialize or reinitialize a Burn Central project in the current directory.
# Interactive initialization
burn init
burn unlinkUnlink the current directory from Burn Central.
burn unlink
burn meDisplay information about the currently authenticated user.
burn me
burn projectDisplay information about the current project.
burn project
The Burn Central CLI is organized as a Cargo workspace:
burn-central-cli/
├── crates/
│ ├── burn-central-cli/ # Main CLI binary
│ └── burn-central-workspace/ # Core library for project management
└── xtask/ # Build utilities
burn-central-workspaceThe burn-central-workspace crate is a standalone library that provides:
This library can be used independently in other applications. See the workspace README for detailed documentation.
#[register]The CLI works seamlessly with the Burn Central SDK. Here's how they connect:
#[register] macroFor detailed SDK usage, see the SDK README.
cargo run --bin burn -- --help
cargo test
For testing against a local Burn Central instance:
burn --dev train
This connects to http://localhost:9001 and uses separate development credentials.
Contributions are welcome! Please feel free to:
Licensed under either of:
at your option.