CLI
LyftData includes a native CLI for running components, administering the control plane, and collecting diagnostics in headless or restricted environments.
The examples below follow the current source command shape. Run the installed binary’s recursive help before scripting them; planning-only command hierarchies are not part of this reference.
Connect to a server
Section titled “Connect to a server”The CLI targets an HTTPS server by default. Pass a URL explicitly:
lyftdata --url https://server-host:3000/ server health --jsonOr set it once per shell:
- Linux/macOS:
export LYFTDATA_URL=https://server-host:3000/ - Windows PowerShell:
$env:LYFTDATA_URL = "https://server-host:3000/"
Then authenticate:
lyftdata login adminFor non-interactive password delivery, use stdin or a protected file:
lyftdata login automation-user --password-stdinlyftdata login automation-user --password-file /run/secrets/lyftdata-passwordDo not place a password directly in process arguments. Install a trusted server certificate for production automation; see Networking and TLS.
Use profiles
Section titled “Use profiles”--profile <name> selects a saved CLI profile. Profiles keep authentication
and server selection separate when one workstation manages several
installations:
lyftdata --profile production workers list --jsonlyftdata --profile staging deployments list --jsonKeep profile caches and their operating-system account private. A profile is not a substitute for least-privilege server roles.
Common commands
Section titled “Common commands”Always discover the installed surface from recursive help:
lyftdata --helplyftdata workers --helplyftdata workers list --helpUseful read-only commands include:
lyftdata --versionlyftdata server health --jsonlyftdata workers list --jsonlyftdata deployments list --jsonlyftdata credentials list --jsonlyftdata contexts list --json--json writes machine-readable output on commands that support it. Do not
assume every older command supports JSON; check its help before scripting.
For diagnostics:
lyftdata doctor --jsonlyftdata doctor --offline --bundle ./lyftdata-support.zipdoctor combines remote checks with local inventory unless --offline is
used. Review bundles for sensitive logs before sharing them.
Work with credentials
Section titled “Work with credentials”The shipped credentials group can inspect credentials, allowed workers, job
bindings, activation sessions, and runtime metadata:
lyftdata credentials list --tenant default --jsonlyftdata credentials get <credential-id> --jsonlyftdata credentials allowed-workers-list <credential-id> --jsonlyftdata credentials bindings-list <credential-id> --jsonlyftdata credentials job-runtime <job-id> <credential-id> --jsonlyftdata credentials activation-get <activation-id> --jsonSome activation-completion commands accept token material. Use stdin or protected-file flags when the installed help provides them; never pass tokens in command-line arguments. The UI remains the preferred path for interactive OAuth consent. See OAuth credentials.
Mutations and automation
Section titled “Mutations and automation”Read the exact command help before any mutation. Confirmation support differs
between command families in current releases. If a command offers --yes, use
it only after a separate inspection or change-approval step.
For scripts:
- pin the LyftData release used by the automation;
- pass
--urlor--profileexplicitly; - prefer
--jsonfor supported read operations; - keep stdout for command results and redirect diagnostic stderr separately;
- stop on a non-zero exit status; and
- test role, tenant, edition, and failure cases against the candidate release.
The CLI uses the product API; it does not turn runtime HTTP inputs or outputs into control-plane commands. See Product API for that boundary.
External worker hosts
Section titled “External worker hosts”For dedicated worker hosts, use the worker-only binary:
lyftdata-worker --help- Windows service management:
lyftdata-worker service install --help
See Workers and your OS-specific worker guide for full setup steps.