Authentication
To use the SitePack CLI, you need to authenticate with your SitePack account. This is done using the login command.
Logging In
Run the following command in your terminal:
sitepack login
This will open your default web browser and prompt you to sign in to your SitePack account. Once signed in, the CLI will be authorized to perform actions on your behalf.
Preview of the Login Process
- Terminal Output
$ sitepack login
? Select the account you want to use: sitepack.dev
✔ Authentication successful. Welcome, [username]!
Logging Out
If you need to remove the authentication credentials from your local machine, you can use the logout command:
sitepack logout