Skip to main content

TrainLoop command-line interface

Project description

TrainLoop CLI

The TrainLoop CLI is a lightweight command‑line tool for managing data collection, evaluation, and studio workflows in your TrainLoop projects.


🔧 Installation

You can install the latest released version from PyPI:

pip install trainloop-cli

# then run it via trainloop
trainloop --help

Or via pipx/uvx (recommended):

pipx run trainloop-cli --help
uvx run trainloop-cli --help

Or, if you’re developing locally from your monorepo root:

poetry install
poetry run trainloop --help

🚀 Quickstart

Initialize a new evaluation workspace:

trainloop init

Run an evaluation using your configured LLM judge:

trainloop eval

Launch the interactive “studio” UI in your browser:

trainloop studio
# then open http://localhost:8080

📖 Commands

Command Description trainloop init - Scaffold a new TrainLoop evaluation directory trainloop eval - Run evaluations/tests against your prompts & responses trainloop studio - Start the web‑based studio for interactive data collection trainloop --help - Show global flags and help for all commands

For full details on each command and its flags:

trainloop <command> --help
# Or via pipx/uvx
pipx run trainloop-cli <command> --help
uvx run trainloop-cli <command> --help

🤝 Contributing

  1. Fork the repo
  2. Create a feature branch: git checkout -b feat/my‑awesome‑feature
  3. Install dev‑deps: poetry install
  4. Run tests: poetry run pytest
  5. Submit a pull request

📄 License

MIT © 2025 TrainLoop

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

trainloop_cli-0.3.11.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

trainloop_cli-0.3.11-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file trainloop_cli-0.3.11.tar.gz.

File metadata

  • Download URL: trainloop_cli-0.3.11.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.2 Darwin/24.2.0

File hashes

Hashes for trainloop_cli-0.3.11.tar.gz
Algorithm Hash digest
SHA256 c66a2d2958fa5128bed8b77d799d8909c8999094a6cbd7b42986d129758a8220
MD5 0fc38c6cc4c3e6cb20005731e85110eb
BLAKE2b-256 e09e6bc0680665f5d8a0e0f43410d34b96a5345dd2e9540410544b73d77f8786

See more details on using hashes here.

File details

Details for the file trainloop_cli-0.3.11-py3-none-any.whl.

File metadata

  • Download URL: trainloop_cli-0.3.11-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.2 Darwin/24.2.0

File hashes

Hashes for trainloop_cli-0.3.11-py3-none-any.whl
Algorithm Hash digest
SHA256 1c9b583d013a844a07f2527b293fa878a87c352ebb6d00f87e1fc1f4a1e1a038
MD5 4dca36691c2c409e753b6422bed558d5
BLAKE2b-256 768efaff5bf0606a88078144dcd7dca9a2f36dafb3af5ac889154f7abba9525d

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