Skip to main content

Transformer Lab CLI

Project description

Transformer Lab CLI

Main Screenshot

Job Monitor Screenshot

Install

uv tool install transformerlab-cli

Usage

 Usage: lab [OPTIONS] COMMAND [ARGS]...

 Transformer Lab CLI

╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --format        TEXT  Output format: pretty or json [default: pretty]        │
│ --help                Show this message and exit.                            │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ───────────────────────────────────────────────────────────────────╮
│ version              Display the CLI version.                                │
│ config               View or set configuration values.                       │
│ status               Check the status of the server.                         │
│ login                Log in to Transformer Lab.                              │
│ logout               Log out from Transformer Lab.                           │
│ whoami               Show the current logged-in user and team.               │
│ task                 Task management commands.                               │
│ job                  Job management commands.                                │
│ notes                Experiment notes commands.                              │
│ provider             Compute provider management commands.                   │
│ server               Server installation and configuration commands.         │
│ dataset              Dataset management commands.                            │
│ model                Model management commands.                              │
│ experiment           Experiment management commands.                         │
│ install-agent-skill  Install the AI agent skill for `lab`.                   │
╰──────────────────────────────────────────────────────────────────────────────╯

Command Reference

For a full list of all commands with detailed options and example usage, see COMMANDS.md.

Claude Code Skill

Want Claude Code (or other AI coding agents) to manage Transformer Lab for you? Install the skill:

lab install-agent-skill

This is a thin wrapper around the underlying installer:

npx skills add transformerlab/transformerlab-app --skill transformerlab-cli

This teaches your AI agent how to use the lab CLI to check job status, stream logs, download artifacts, queue tasks, manage providers, and more. See .agents/skills/transformerlab-cli/ for the full skill definition.

Development

Run (DEV)

uv run src/transformerlab_cli/main.py

Build Locally

Option A — Global install (simple)

uv tool install . --force --reinstall

This installs lab into ~/.local/bin/ so it's available from any shell.

Option B — Editable install into an active venv (recommended for iterative dev)

# Activate the venv you want lab installed into, e.g.
source ~/.transformerlab/envs/general-uv/bin/activate

# From the cli/ directory:
uv pip install -e .

lab will live at <venv>/bin/lab and only resolve while that venv is active. Code changes take effect without reinstalling.

⚠️ Gotcha: if a cli/.venv directory exists, uv pip install targets it instead of your active $VIRTUAL_ENV, and which lab will come up empty. Either delete it (rm -rf cli/.venv) or force the target explicitly: uv pip install -e . --python "$VIRTUAL_ENV/bin/python".

Debug the Job Monitor

Install editable into your active venv (see Option B above), then:

uv run textual run --dev src/transformerlab_cli/commands/job_monitor/job_monitor.py

and then in another window:

textual console -x SYSTEM -x EVENT -x INFO

Run Textual in Browser

uv run textual serve src/transformerlab_cli/commands/job_monitor/job_monitor.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

transformerlab_cli-0.0.62.tar.gz (104.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

transformerlab_cli-0.0.62-py3-none-any.whl (125.5 kB view details)

Uploaded Python 3

File details

Details for the file transformerlab_cli-0.0.62.tar.gz.

File metadata

  • Download URL: transformerlab_cli-0.0.62.tar.gz
  • Upload date:
  • Size: 104.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for transformerlab_cli-0.0.62.tar.gz
Algorithm Hash digest
SHA256 7cedb6e330dfdca9a91924fb21bb26821b1e7c1c856938ae90e4072682082b08
MD5 a0e5df0f4cd7f0f779c6468a99923787
BLAKE2b-256 af34a395dae7609b2302255e09840f15dd0bdb077105959dcfaf7e54333117cc

See more details on using hashes here.

File details

Details for the file transformerlab_cli-0.0.62-py3-none-any.whl.

File metadata

File hashes

Hashes for transformerlab_cli-0.0.62-py3-none-any.whl
Algorithm Hash digest
SHA256 2ff2fc2dc899c09fcf4a985407b28d86ea1f579bdf7a8601aefaed976774d3b3
MD5 f4bb76326e5ea608dcb85f242a15f648
BLAKE2b-256 8068c1365f46a9851940b42c92aebc9f2b543773d1aea8b17a70f67a57a465ed

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page