Command line

Fine-tune from your terminal

The Foundry CLI lets you upload datasets, launch jobs, tail logs, and chat with models — perfect for scripting and CI.

Common commands

auth

foundry login

Authenticate and store a scoped API key locally.

data

foundry data push

Upload a CSV or JSONL dataset for training.

train

foundry train

Launch a fine-tune job against a base model.

logs

foundry logs -f

Tail live training logs with loss and ETA.

chat

foundry chat

Open an interactive chat with a named model.

ci

foundry deploy

Promote a model destination from a pipeline.

Great for automation

  • -Non-interactive mode for CI
  • -JSON output for scripting
  • -Env-var configuration
  • -Exit codes you can branch on
  • -Works with GitHub Actions

Automate your retrains

Wire the CLI into CI to re-fine-tune on every data change.

Browse examples