Skip to main content
All CollectionsAPI
How to run CLI commands without logging in
How to run CLI commands without logging in

How to bypass the `appcenter login` CLI command

Jihye E avatar
Written by Jihye E
Updated over a week ago

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:

  1. Create aFull Access API token beforehand (here are instructions on how to do so, see steps 1-5),

  2. 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_TOKENenvironment variable with your API token. This will work without having to append the --token switch to each CLI command.

Did this answer your question?