Skip to main content
The SuprSend CLI works with self-hosted and BYOC deployments the same way it does with SuprSend Cloud — all commands for managing workflows, schemas, events, and categories are identical. The only difference is how you authenticate. On SuprSend Cloud, the CLI connects to SuprSend’s default API endpoints automatically. For self-hosted and BYOC deployments, your API endpoints are different (e.g., 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.
Profiles are not workspaces. A profile stores server connection details (custom API endpoint URLs + credentials) for a self-hosted or BYOC deployment. A workspace (-w staging or -w production) selects an environment within a SuprSend instance. They serve different purposes:
  • Profilewhich server to connect to (only needed for self-hosted / BYOC)
  • Workspace flag (-w)which environment on that server (staging, production, etc.)
If you are using SuprSend Cloud (SaaS), you do not need profiles. Use environment variables or command-line flags instead.

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:
suprsend profile add \
  --name production \
  --service-token "your-service-token" \
  --base-url https://hub.your-deployment.com/ \
  --mgmnt-url https://management-api.your-deployment.com/
FlagDescriptionDefault
--name stringName for this profile (required)
--service-token stringService token (required)
--base-url stringHub API endpoint for your deploymenthttps://hub.suprsend.com/
--mgmnt-url stringManagement API endpoint for your deploymenthttps://management-api.suprsend.com/
You can create multiple profiles for different self-hosted deployments:
suprsend profile add --name staging-server \
  --service-token "staging-token" \
  --base-url https://hub.staging.yourcompany.com/ \
  --mgmnt-url https://management-api.staging.yourcompany.com/

suprsend profile add --name production-server \
  --service-token "prod-token" \
  --base-url https://hub.prod.yourcompany.com/ \
  --mgmnt-url https://management-api.prod.yourcompany.com/

Switch Between Profiles

Set which profile the CLI should use for all subsequent commands:
suprsend profile use --name production-server
After this, every CLI command will connect to the production server’s endpoints. To target a specific workspace on that server, combine with the -w flag:
suprsend workflow list -w production

Manage Profiles

suprsend profile list

suprsend profile modify --name production-server --service-token "new-token"

suprsend profile remove --name old-staging-server
CommandDescription
profile listList all configured profiles and see which one is active
profile addAdd a new profile with connection details
profile modifyUpdate a profile’s credentials or endpoints
profile removeDelete a profile
profile useSwitch the active profile
Profiles are stored in your local config file at $HOME/.suprsend.yaml.

Next Steps

Once your CLI is connected, refer to the CLI documentation for all available commands — managing workflows, schemas, events, categories, translations, and syncing assets across workspaces.