Skip to main content

Authentication

To use the SitePack CLI, you need to authenticate with your SitePack account. This ensures you have the necessary permissions to manage apps, themes, and organizations.

Logging In

Run the following command in your terminal to start the authentication process:

sitepack login

This will open your default web browser and prompt you to sign in to your SitePack account. Once authorized, the CLI will store a secure token locally.

Preview of the Login Process

$ sitepack login
? Select the account you want to use: sitepack.dev
✔ Authentication successful. Welcome, [username]!

Checking Authentication Status

To check which account you are currently logged in with, use the whoami command:

sitepack whoami

This will display your username and the currently active organization.

Logging Out

If you need to remove the authentication credentials from your local machine, use the logout command:

sitepack logout

After logging out, you will need to run sitepack login again to perform any actions that require authentication.