The TensorSync CLI provides a powerful command-line interface for synchronizing tensors, managing checkpoints, and monitoring your ML pipelines.
Installation
macOS / Linux
# Install via Homebrew (macOS)brew install tensorsync/tap/tensorsync
# Or use the install script (Linux/macOS)curl-sSL https://tensorsync.xyz/install.sh | bash# Verify installationtensorsync--version# Output: TensorSync CLI v2.4.1
Windows
# Install via Scoopscoop bucket add tensorsync https://github.com/tensorsync/scoop-bucket
scoop install tensorsync
# Or download the installer# https://tensorsync.xyz/downloads/tensorsync-windows-amd64.msi
Docker
docker pull tensorsync/cli:latest
docker run --rm tensorsync/cli --version
Authentication
Before using TensorSync, authenticate with your API key:
# Interactive logintensorsync auth login
# Or provide API key directlytensorsync auth login --tokentsk_your_api_key_here# Check authentication statustensorsync auth status
💡 Tip: Store your API key in ~/.tensorsync/config.json for persistent authentication across sessions.
Core Commands
tensorsync sync
Synchronize tensors between local and remote repositories
Usage
tensorsync sync --repo<repository> [options]
Flags
--repo, -rRepository name (required)
--watch, -wWatch for changes and sync automatically
# Pull latest versiontensorsync pull --modelllama-3-70b# Pull specific version in PyTorch formattensorsync pull --modelvision-transformer-base--versionv3.2.1--formatpytorch# Pull to custom directorytensorsync pull --modelbert-large--output/data/models
tensorsync telemetry
Stream real-time metrics from training jobs
Usage
tensorsync telemetry --job<job-id> [options]
Flags
--job, -jJob ID (required)
--metricsComma-separated list of metrics (default: all)
# Stream all metricstensorsync telemetry --jobtraining-job-42# Stream specific metrics in JSONtensorsync telemetry --jobtraining-job-42--metricsloss,grad_norm,gpu_util--formatjson# Save to filetensorsync telemetry --jobtraining-job-42--formatcsv > metrics.csv
Configuration
Config File Location
TensorSync CLI looks for configuration in the following order: