API tokens are tied to specific project
within Telemetry Pipeline, which means 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.
- 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:
Replace
TOKENwith the value of the API token you copied in the previous step.