Skip to main content
Version: 1.5.x

Authentication

Before you can use the Engagespot CLI, you need to authenticate it with your Engagespot account.

A CLI Token created from Engagespot Console is required to authenticate the CLI. CLI Token can be used in two ways.

1. Using a config.json file

A config.json file can be created in Engagespot CLI configuration directory depending on the OS.

  • MacOS and Linux - ~/.config/engagespot/config.json
  • Windows - %LOCALAPPDATA%\engagespot\config.json

The config.json file should have a token key like this.

{
"token": "CLI TOKEN"
}

2. Using the --token or -t flag

You can also authenticate by passing the CLI token to each call using the --token or -t flag.

engagespot COMMAND --token = "YOUR_CLI_TOKEN"