sendport login▾
sendport login
Authenticate the CLI, inspect the active key and manage profiles.
sendport login opens a browser, authorises the CLI against your account and writes a key to ~/.sendport/config.toml with 0600 permissions. On a headless box, paste a key instead.
$
sendport loginAuthorise the CLI. Without --key this opens a browser.
Usage
sendport login [--key <key>] [--profile <name>]| Flag | Type | Description |
|---|---|---|
| --key <key> | string | Skip the browser and store this key directly. Useful over SSH and in CI. |
| --profile <name> | string | Store under a named profile instead of default. |
$
sendport whoamiShow the active profile, key prefix, account and connected numbers.
Usage
sendport whoami [--json]| Flag | Type | Description |
|---|---|---|
| --json | boolean | Machine-readable output. |
$
sendport logoutRemove the stored credential. This does not revoke the key server-side.
Usage
sendport logout [--profile <name>] [--all]| Flag | Type | Description |
|---|---|---|
| --all | boolean | Remove every profile. |
Profiles
Keep test and live keys apart. Every command takes --profile, and SENDPORT_PROFILE sets it for a shell.
~/.sendport/config.toml
default_profile = "test"
[profiles.test]
key = "sp_test_9f2c…"
[profiles.live]
key = "sp_live_4a81…"
number = "+15550100200"In CI, use the environment
SENDPORT_KEY is read before the config file, so CI needs no login step — set the secret and call the command.