To use App Center's CLI commands, typically you have to runappcenter login
, and paste the authentication token that appears in the pop-up browser into the command line.
There are two ways to use App Center's CLI commands without logging in:
Using the `--token` parameter:
Create a
Full Access
API token beforehand (here are instructions on how to do so, see steps 1-5),Add the
--token
switch to the CLI command you are running.
For example, run appcenter apps list --token {API-token}
to get a list of your configured applications.
Setting your `APPCENTER_ACCESS_TOKEN` environment variable:
You can set the APPCENTER_ACCESS_TOKEN
environment variable with your API token. This will work without having to append the --token
switch to each CLI command.