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 login

Authorise the CLI. Without --key this opens a browser.

Usage
sendport login [--key <key>] [--profile <name>]
FlagTypeDescription
--key <key>stringSkip the browser and store this key directly. Useful over SSH and in CI.
--profile <name>stringStore under a named profile instead of default.
$sendport whoami

Show the active profile, key prefix, account and connected numbers.

Usage
sendport whoami [--json]
FlagTypeDescription
--jsonbooleanMachine-readable output.
$sendport logout

Remove the stored credential. This does not revoke the key server-side.

Usage
sendport logout [--profile <name>] [--all]
FlagTypeDescription
--allbooleanRemove 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.