@relayplane/cli
v1.1.1
Published
RelayPlane CLI - Command-line interface for workflow management and cloud integration
Maintainers
Readme
@relayplane/cli
Command-line interface for RelayPlane - AI model routing, cost estimation, and diagnostics.
Install
npm install -g @relayplane/cliOr use npx:
npx @relayplane/cli <command>Commands
relay login # Authenticate with RelayPlane Cloud (device OAuth)
relay logout # Clear credentials and disconnect
relay status # Show CLI status and cloud connection
relay workflows # List all workflows in current project
relay sync # Sync local workflows with RelayPlane Cloud
relay dashboard # Open the cloud dashboard in browserQuick Start
1. Login to RelayPlane Cloud
relay loginThis opens a browser for device authentication. Once authorized, your CLI is connected to RelayPlane Cloud.
2. Check status
relay statusShows your connection status, authenticated user, and project info.
3. Sync workflows
relay syncDiscovers local workflow files and syncs them with the cloud for monitoring and analytics.
4. View dashboard
relay dashboardOpens the RelayPlane dashboard in your browser to view runs, costs, and analytics.
Configuration
The CLI stores configuration at ~/.relayplane/:
config.json- User preferences and settingscredentials.json- Authentication tokens (keep private!)
Environment Variables
| Variable | Description |
|----------|-------------|
| RELAY_API_HOST | API host (default: https://api.relayplane.com) |
| RELAY_TELEMETRY | Enable/disable telemetry (true/false) |
Programmatic Usage
import { getConfig, saveConfig } from '@relayplane/cli';
// Read current config
const config = await getConfig();
console.log(config.apiHost);
// Update config
await saveConfig({ ...config, telemetry: false });Related Packages
- @relayplane/proxy - Intelligent AI model routing proxy
- @relayplane/sdk - SDK for workflow execution
Links
- Website: https://relayplane.com
- Documentation: https://relayplane.com/docs
- GitHub: https://github.com/RelayPlane/cli
- npm: https://www.npmjs.com/package/@relayplane/cli
License
MIT
