Skip to main content
Install plivo, sign in through your browser with plivo login, and confirm which account the CLI will use with plivo auth whoami.

Install

The one-line installer detects your OS and architecture, downloads the matching release binary, verifies its SHA-256 checksum, and places it in a user-owned directory on your PATH: no sudo.
Without Homebrew, or on WSL, use the install script:
To build from source (Go 1.26 or later): git clone https://github.com/plivo/plivo-cli && cd plivo-cli && go build -o plivo . Then log in. If a coding agent will drive the CLI, also install the Plivo skills. Verify a release. Binaries for macOS, Linux and Windows (amd64 and arm64), SHA256SUMS and its signature are on the GitHub releases page. The checksums are signed with cosign in keyless mode; install.sh, install.ps1 and plivo upgrade verify that signature when cosign is installed. To check by hand:
Verified OK means the checksums were signed by that Plivo identity. Pin both the identity and the issuer: without them any valid Sigstore signature would pass.

Log in with a browser

plivo login is the only way to sign in. It opens the Plivo Console in your browser, where you sign in and approve access, so your password never touches the CLI. The CLI saves a named profile in ~/.plivo/config.toml. From v1.4.0, no account key is stored on your machine. The login gives the CLI a 30-day sign-in, kept in your OS credential store (Keychain on macOS, Credential Manager on Windows, Secret Service on Linux), and every command runs on it. Only when no credential store is available is the sign-in written into ~/.plivo/config.toml, readable by you alone. After 30 days, every profile on that sign-in stops until you run plivo login again.
  • Several organizations: if you belong to more than one, the approval page lists them and you tick the ones this machine may use. Switch between them with plivo org use, with no new login. To add or remove an organization, log in again.
  • Logging in again replaces the sign-in and ends the previous one on Plivo’s side (best effort; the command says whether it was ended).
  • Profiles from v1.3.3 or earlier hold an auth token and keep using it. Logging in as that organization again, or plivo org use for it, converts the profile: the token is deleted after the new sign-in is saved, and one line says so. Other profiles are not touched.
  • Not available on the sign-in yet (v1.4.0): voice streams forward with its signature check (see Forward calls), the regional plivo agents generate command, the agent token commands and regional API bases. Each refuses with an error code and a hint. voice streams test, simulate and readiness run, but send unsigned requests.
  • Your role must be able to view API credentials. A member whose role can’t is refused with AUTH_FORBIDDEN when signing in to or selecting that organization (v1.4.0).
Browser can’t reach the terminal? In a container, WSL, a VM or over SSH, the page the browser opens after you approve may fail to load. Copy the full URL from the address bar and paste it into the terminal. The CLI accepts only the URL of this login.

Skills offer inside a coding agent

Run plivo login inside Claude Code, Cursor or Codex, and after sign-in it offers to install the Plivo skills where that agent reads them. --yes installs them without asking; --quiet skips the offer. See Offer after login.

Run in CI and from agents

There is no headless login, and PLIVO_AUTH_ID and PLIVO_AUTH_TOKEN are not read from the environment. There is no environment variable, flag or paste route for an account key. For a CI runner, a container or a coding agent, a person must run plivo login in the environment that will run commands; later commands use that saved profile and its credential store. Copying config.toml alone does not copy a sign-in stored in the OS keychain, so use a persistent runner with access to the same profile and credential store, then confirm with plivo auth whoami. From v1.4.0 the sign-in lasts 30 days, so a person must log in again on that machine at least every 30 days. A command run after it expires or is ended fails with AUTH_EXPIRED (exit 2).
A saved profile grants access to your account. For automated use, select the intended account, use subaccounts to separate resources where appropriate, and protect the machine that holds the profile.
Useful settings in scripts (see Telemetry for what the last one turns off):

Switch between accounts

A profile is a saved login. Keep one profile per account or subaccount and switch between them. Logging in to a different organization saves a second profile, named after it, instead of replacing the first. The CLI picks credentials from the --profile flag, then the active profile. Use --profile to run one command under another profile without switching:

Switch between organizations

Requires Plivo CLI v1.4.0 or later. One plivo login can approve several organizations. These commands switch between them without opening the browser:
  • org use makes one request as the organization before changing anything. If it is refused, for example your role can’t view API credentials or the organization requires single sign-on, the profile and any token it held stay as they were.
  • If the organization already has a profile that holds a token, org use moves it to the sign-in and deletes the token.
  • To add an organization that isn’t in org list, run plivo login again and tick it.

Log out

plivo logout [profile] removes a saved profile and deletes any token it holds from the credential store. If the active profile was logged out, no profile is active until you run plivo auth use <name> or log in again. From v1.4.0, logging out the last profile also ends the 30-day sign-in on Plivo’s side (best effort; the command says whether it was ended). Logging out one of several profiles leaves the sign-in the others use.

Upgrade

plivo upgrade fetches the latest release, verifies the binary against the release’s SHA256SUMS (and, when cosign is installed, the signature on those checksums), then atomically replaces the running executable. With -o json it prints one summary on stdout and progress on stderr. A binary installed by Homebrew (it lives in a Homebrew Cellar) is refused, with a pointer to brew upgrade plivo, so the two don’t fight over the same file. A binary from the install script works with plivo upgrade, even in a Homebrew bin folder.
On a terminal, the CLI prints a one-line hint on stderr when a newer version is available, at most once every 24 hours. Set PLIVO_NO_UPDATE_CHECK=1 to silence it. From v1.4.0, login, upgrade and skill install print a Plivo logo banner. It shows only on an interactive terminal at least 56 columns wide, never in CI, with --quiet, or with PLIVO_NO_BANNER set.
Downgrading below v1.4.0: an older CLI treats a profile on the 30-day sign-in as logged out, and when it rewrites config.toml it drops the sign-in’s entry, which leaves the sign-in orphaned in your keychain. Run plivo login again after a downgrade.

Shell autocompletion

plivo completion <shell> generates a completion script so commands, subcommands and flags tab-complete. Run plivo completion <shell> --help for shell-specific notes.