relio-cli
Command-line tool for the Relio platform.
Installation
npm install -g relio-cli
Commands
relio login
relio whoami
relio auth test
relio logout
relio profiles list
relio profiles use <name>
relio login
-s, --server <url>: Relio server URL (defaults to RELIO_SERVER_URL or http://localhost:3000)
--profile <name>: Profile name to store credentials under (default: default)
--client-name <name>: Name shown on the approval screen
--token-name <name>: Name for the created workspace API key
--expires-in <seconds>: Device code expiry (60 to 900)
--no-open: Skip opening the browser automatically
relio whoami
Reads the current profile (or --profile) and prints identity/auth info from the API.
relio auth test
Validates that the current profile API key is accepted by the server.
relio logout
Removes credentials for the active profile (or --profile / --all).
relio profiles
relio profiles list: list all saved profiles
relio profiles use <name>: set active profile
Credentials are stored at:
~/.config/relio/config.json
SDK
For the TypeScript SDK (client, server, webhooks), see the @relio/sdk package:
import { createRelioClient } from "@relio/sdk/client";
import { createRelioServerClient, verifyRelioWebhookRequest } from "@relio/sdk/server";