Authenticate in Pipeline CLI
To use Pipeline CLI, you must generate an API token to authenticate with Telemetry Pipeline, and then set that token in Pipeline CLI.
API tokens are tied to specific projects within Telemetry Pipeline, so only one API token can be active in your Pipeline CLI session. To switch between projects, you must switch tokens accordingly.
Generate an API token
Follow these steps to generate an API token in Telemetry Pipeline:
- Sign in to the Telemetry Pipeline web interface (opens in a new tab).
- Open the project where you want to create a fleet.
- In the navigation menu, select Settings.
- In the Generate API key section, enter a name for your new API key, and then click Generate.
- If you have multiple projects in Telemetry Pipeline, repeat these steps for each project.
Set or switch an API token
Only one API token can be active in your Pipeline CLI session. Each API token is tied to a specific project, which means that setting an API token determines which project is active. If you have multiple Telemetry Pipeline projects, follow these steps to switch between them.
-
Copy the value of the API token you generated for that project.
-
Run the following command in Pipeline CLI:
calyptia config set_token TOKEN
Replace
TOKEN
with the value of the API token you copied in the previous step.