Skip to main content

Command-line interface for TheFluxTrain APIs

Project description

thefluxtrain-cli

Command-line interface for TheFluxTrain APIs.

Install

pip install thefluxtrain-cli
# or
uv tool install thefluxtrain-cli

Commands

tft login      # Device-code sign-in via thefluxtrain.com
tft logout     # Clear local credentials and manifest cache
tft sync       # Fetch latest manifest YAML from the API
tft whoami     # Show logged-in user and API key id
tft commands   # List all API commands from the cached manifest

Quick start

tft login
tft commands
tft whoami

How login works

  1. tft login requests a device code from the API.
  2. Open https://thefluxtrain.com/cli/authorize and sign in if needed.
  3. Enter the code from your terminal and click Authorize CLI.
  4. The CLI stores an API key in ~/.config/thefluxtrain/credentials.json.
  5. The manifest is synced automatically after login.

Manifest sync

The manifest (command list and help text) is fetched from GET /api/v1/cli/manifest and cached at ~/.cache/thefluxtrain/manifest.yaml. It syncs automatically when missing or older than 7 days. Run tft sync to refresh manually.

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

thefluxtrain_cli-0.1.21.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

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

thefluxtrain_cli-0.1.21-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file thefluxtrain_cli-0.1.21.tar.gz.

File metadata

  • Download URL: thefluxtrain_cli-0.1.21.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for thefluxtrain_cli-0.1.21.tar.gz
Algorithm Hash digest
SHA256 911e37a65c67e6105711b7ba9f672b5200699f2a7b5d327dc81de5406b7650ea
MD5 100df79c874ed100e4006c7635c7bcae
BLAKE2b-256 5cad1093377345f5d7647d2b2db15523df314601d64fc5cf6e89b11fc2a64ddf

See more details on using hashes here.

File details

Details for the file thefluxtrain_cli-0.1.21-py3-none-any.whl.

File metadata

  • Download URL: thefluxtrain_cli-0.1.21-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for thefluxtrain_cli-0.1.21-py3-none-any.whl
Algorithm Hash digest
SHA256 7ec200eb50ae9db11e5d529c5cc28bacb02e9ddca90d3b8569d9447465b5e76a
MD5 357cdd30e51adc08f0a62f8424f7c2f8
BLAKE2b-256 ab3791ca364717379a8ae24a212e71ea8d17f5e9495e6244b1c92c8d8a6182ca

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