Peridio CLI
The Peridio CLI is a command-line interface for interacting with Peridio's platform and services. It provides a comprehensive set of tools for managing devices, binaries, deployments, and more.
Installation
Download the latest release from the Peridio CLI releases page.
Getting started
After installation, configure your CLI with your API credentials:
peridio config profiles create
Configuration files
The CLI stores configuration in platform-specific locations:
- macOS:
~/Library/Application Support/peridio/
- Linux:
~/.config/peridio/
- Windows:
%APPDATA%\peridio\
Configuration includes:
config.json
- CLI settings and profilescredentials.json
- API keys and authentication tokens
Usage
peridio [OPTIONS] <COMMAND>
Global options
-a, --api-key <API_KEY>
- API key for authentication (env:PERIDIO_API_KEY
)-b, --base-url <BASE_URL>
- Base URL for the Peridio API (env:PERIDIO_BASE_URL
)-c, --ca-path <CA_PATH>
- Path to CA certificate (env:PERIDIO_CA_PATH
)-p, --profile <PROFILE>
- Configuration profile to use (env:PERIDIO_PROFILE
)-d, --config-directory <CONFIG_DIRECTORY>
- Config directory path (env:PERIDIO_CONFIG_DIRECTORY
)-h, --help
- Print help information-V, --version
- Print version information
Available commands
The Peridio CLI provides commands organized into the following categories:
Device and product management
devices
- Manage devicesproducts
- Manage productscohorts
- Manage device cohorts
Binary and artifact management
artifacts
- Manage artifactsartifact-versions
- Manage artifact versionsbinaries
- Manage binariesbinary-parts
- Manage binary partsbinary-signatures
- Manage binary signaturessigning-keys
- Manage signing keys
Bundle and release management
bundles
- Manage bundlesbundle-overrides
- Manage bundle overridesreleases
- Manage releases
Security and certificates
ca-certificates
- Manage CA certificatesdevice-certificates
- Manage device certificatesx509
- Create X.509 certificates and private keys
Remote access
tunnels
- Manage remote access tunnels
Integration and automation
webhooks
- Manage webhooks
CLI management
config
- Manage CLI configurationusers
- Inspect user identityupgrade
- Upgrade the CLI
Examples
Create a new device
peridio devices create --product-name "MyProduct" --identifier "device-001"
Upload a binary
peridio binaries create --artifact-name "firmware" --path ./firmware.bin
Create a signing key
peridio signing-keys create --name "production-key"
For detailed information about each command, use the --help
flag:
peridio <command> --help