Skip to content

tracel-ai/tracel-cli

Repository files navigation

Tracel CLI

Current Crates.io Version Minimum Supported Rust Version Test Status license


Description

The Tracel CLI (tracel) is the command-line tool for interacting with Tracel Console, the centralized platform for experiment tracking, model sharing, and deployment for Burn users.

This CLI works in conjunction with the Tracel SDK to provide a seamless workflow for:

  • Running training jobs locally or remotely
  • Managing experiments and tracking metrics
  • Packaging and deploying models
  • Integrating with compute providers
  • Managing project configurations

Installation

Install from crates.io

cargo install tracel-cli

Build from source

git clone https://github.com/tracel-ai/tracel-cli.git
cd tracel-cli
cargo install --path crates/tracel-cli

After installation, the tracel command will be available in your terminal.

Prerequisites

  1. Tracel Account: Create an account at console.tracel.ai
  2. Rust: Version 1.87.0 or higher
  3. Tracel SDK: Add the SDK to your Burn project

Commands

tracel train

Run your project locally. This is a thin alias for cargo run: every argument after -- is forwarded to your binary, so tracel train -- <args> is equivalent to cargo run -- <args>. stdin/stdout/stderr are inherited and the binary's exit code is propagated.

# Equivalent to `cargo run`
tracel train

# Equivalent to `cargo run -- train mnist --epochs 100`
tracel train -- train mnist --epochs 100

tracel package

Package your project for deployment on remote compute providers.

tracel package

This creates a deployable artifact containing your code, dependencies, and configurations.

tracel login

Authenticate with the Console platform.

tracel login

tracel init

Initialize or reinitialize a Tracel project in the current directory.

# Interactive initialization
tracel init

tracel unlink

Unlink the current directory from Tracel project.

tracel unlink

tracel me

Display information about the currently authenticated user.

tracel me

tracel project

Display information about the current project.

tracel project

Project Structure

The Tracel CLI is organized as a Cargo workspace:

tracel-cli/
├── crates/
│   └── tracel-cli/ 
└── xtask/                       # Build utilities

Development

Running from source

cargo run --bin tracel-- --help

Running tests

cargo test

Development mode

For testing against a local Console instance:

tracel --dev login

This connects to http://localhost:9001 and uses separate development credentials.

Contribution

Contributions are welcome! Please feel free to:

  • Report issues or bugs
  • Request new features
  • Submit pull requests
  • Improve documentation

License

Licensed under either of:

at your option.

Links

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

10 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages