https://suprsend.internal.yourcompany.com/), so the CLI needs to know where to connect. Profiles solve this by storing your custom endpoint URLs and credentials locally, so you don’t have to pass them on every command.
Prerequisites
- Install the SuprSend CLI
- Have your service token ready (from your self-hosted dashboard → Account Settings → Service Tokens)
- Know your deployment’s base URL and management URL
Create a Profile
A profile stores your server’s endpoint URLs and service token under a name you choose:| Flag | Description | Default |
|---|---|---|
--name string | Name for this profile (required) | – |
--service-token string | Service token (required) | – |
--base-url string | Hub API endpoint for your deployment | https://hub.suprsend.com/ |
--mgmnt-url string | Management API endpoint for your deployment | https://management-api.suprsend.com/ |
Switch Between Profiles
Set which profile the CLI should use for all subsequent commands:-w flag:
Manage Profiles
| Command | Description |
|---|---|
profile list | List all configured profiles and see which one is active |
profile add | Add a new profile with connection details |
profile modify | Update a profile’s credentials or endpoints |
profile remove | Delete a profile |
profile use | Switch the active profile |
$HOME/.suprsend.yaml.