Skip to main content

Authentication

You need to authenticate to Probely to get a valid authorization token, which is required to run Probely CLI commands.

Step 1: Obtain the authorization token

Follow these steps to obtain the authorization token:

  1. Go to the Probely app and authenticate.
  2. Generate an API Key, which is your authorization token. Learn how in this Help Center article on How to generate an API Key.
  3. Save the generated API Key in a safe place.
warning

Treat the authorization token as a password since it allows access to information in your account and possible manipulation (depending on the role associated with the API Key).

Step 2: Use the authorization token

You have different ways of using the authorization token (API Key) to run your CLI commands.

Make the authorization token available to all your CLI commands through a configuration file as follows:

  1. Create the file ~/.probely/config.
  2. Set the file content with:
    File ~/.probely/config
    [AUTH]
    api_key = <YOUR_API_KEY>
    Put your authentication token (API Key) where you see <YOUR_API_KEY>.
  3. Save the file.
  4. Run a CLI command, for example, to list the targets in your account:
    CLI command
    probely targets get