Authenticate Your Environment

Last edit: Feb 19, 2020


Make sure you remember your Partner Portal account email and password — you will need them to authenticate your environments.

Now, you have to specify which Instance will be which environment. For example, you set up one Instance for staging, and another one for production. This information is stored in a config file.

Regardless of what your Instance is called, after you specify it as staging, you can refer to it as staging in all commands where applicable, and you won't have to use the Instance name or the URL of the Instance again.

To add your environment to the config file, run the env add command, and authenticate with your Partner Portal credentials.


Run all commands discussed in this tutorial in the project root directory (one level above the app directory).

pos-cli env add [environment] --email [your email] --url [your Instance URL]


You can copy this command pre-filled with your email and Instance URL from your Instance page on the Partner Portal.


pos-cli env add staging --email --url

A message "Environment [your Instance URL] as staging has been added successfully." is displayed.

Next step: Deploy or Sync


We are always happy to help with any questions you may have.