Before you start
- The CLI is installed. See Install the CLI and log in.
- A SiteGPT account on the Growth plan or above. See Plans and limits.
- Optional: the scopes you want for each profile. See Scope sets for common jobs.
Add a profile
1
Log in with a profile name
--scope conversations:read --scope conversations:write. To save a token you already have, add --token YOUR_API_TOKEN instead.2
Approve access in the browser
Open the URL that the CLI prints. Check the code and select Approve.
3
Check the new profile
yes in the Default column. Logging in always makes the profile the default.Switch the default profile
Commands without--profile use the default profile.
1
Set the default
sitegpt profiles set-default work does the same thing.2
Confirm the account
Use a profile for one command
Add--profile or its short form -p to any command:
SITEGPT_PROFILE for the current shell. --profile takes priority over SITEGPT_PROFILE. When SITEGPT_API_TOKEN is set, the CLI ignores all saved profiles. See Which token and URL the CLI uses.
Delete a profile
1
Delete the local profile
sitegpt profiles remove local-test does the same thing.2
Revoke the token in SiteGPT
Deleting a profile does not revoke its token. Find the token ID, then revoke it:You can also revoke it on the Agents page.
Check that it works
Run:sitegpt profiles show <profile>. Without a name, it shows the active profile.
All profile commands are in the command reference.