Skip to content

CLI Reference

threading init

Initialize and harden a project.

threading init [PATH]
Option Description
--no-profile Skip profiling
--no-optimize Scan only
--gpu Force GPU optimization
--cpu-only Disable GPU

threading run

Execute locally.

threading run [OPTIONS]
Option Description
--params FILE Override parameters
--dry-run Preview execution
--benchmark Compare to original

threading deploy

Deploy to cloud.

threading deploy --target TARGET
Target Description
gcp-a100 Google Cloud, A100 GPUs
gcp-v100 Google Cloud, V100 GPUs
aws-p4d AWS, A100 GPUs
aws-p3 AWS, V100 GPUs
Option Description
--nodes N Number of nodes
--ephemeral Terminate after job
--persist Keep cluster running

threading ld

Load dataset.

threading ld <URI>

Supported: s3://, gs://, az://, file://


threading start

Start job execution.

threading start [OPTIONS]
Option Description
--sweep PARAM=VALUES Parameter sweep
--max-workers N Concurrent workers

threading stop

Stop jobs.

threading stop [OPTIONS]
Option Description
--force Immediate termination
--teardown Terminate cluster

threading status

Check status.

threading status

threading logs

View logs.

threading logs [JOB_ID] [-f] [--tail N]

threading runs

Manage runs.

threading runs list
threading runs show RUN_ID
threading runs diff RUN1 RUN2

Environment variables

Variable Description
THREADING_API_KEY API key
THREADING_CONFIG Config path
THREADING_LOG_LEVEL Log verbosity