Getting Started¶
This tutorial walks you through installing tlm-cli, creating your configuration file, and running your first commands
against a ToloMEO Manager instance. By the end you will have a working tlm-cli installation that talks to your
instance.
It does not cover provisioning a device or the Python library; see the links at the end.
Prerequisites¶
- Python 3.11 or newer
- Credentials for a ToloMEO Manager instance (username and password)
Step 1 — Install the CLI¶
1.1 Install with uv (Recommended for Development)¶
Clone the repository and install the workspace, which includes the tlm-cloud-sdk and tlm-cloud-cli packages in
editable mode:
git clone git@gitlab.com:DAVEEmbeddedSystems/public/tolomeo-public-projects/tools/tlm-cli.git
cd tlm-cli
uv sync
Verify the installation:
1.2 Install with pip¶
Install the tlm-cloud-cli package, which provides the tlm-cli command, directly from the ToloMEO package registry:
pip install tlm-cloud-cli --extra-index-url https://gitlab.com/api/v4/projects/81184835/packages/pypi/simple
Verify the installation:
Step 2 — Create the configuration file¶
tlm-cli reads its configuration from a .config.toml file. Create it at ~/.config/tlm-cli/.config.toml and fill in
your instance details:
[application]
instance = "your-instance.example.com" # hostname only, no https://
[auth]
username = "you@example.com"
password = "your-password"
Restrict the file permissions so your credentials are not readable by other users:
The CLI searches for the config file in this order:
- Current working directory (
./) ~/.config/tlm-cli//etc/tlm-cli/
See Configuration File for the full set of options.
Step 3 — Explore what the CLI can do¶
tlm-cli is split into sub-applications. Run any command with --help to see its options:
Try listing manufacturing devices:
Try listing fleet devices:
Both tlm-cli pms devices list and tlm-cli fm devices list use an interactive paginated display — results are
shown 25 at a time. Press Enter to advance to the next page, D to toggle the detail view, and Esc or
Q to quit.
Next Steps¶
- Provisioning Your First Device — an end-to-end walkthrough
- How-to Guides — task-specific instructions
- CLI Commands — every command, argument, and option