CLI Usage
Commands
openslaq login
Authenticate with your OpenSlaq workspace.
openslaq login [--api-url <url>]| Flag | Description |
|---|---|
--api-url | API URL for self-hosted instances (default: https://api.openslaq.com) |
openslaq bot
Manage bots in your workspace.
# List all botsopenslaq bot list
# Create a new botopenslaq bot create <name> [--description <desc>]
# Delete a botopenslaq bot delete <bot-id>
# Rotate a bot's tokenopenslaq bot rotate-token <bot-id>openslaq api-key
Manage API keys.
# List API keysopenslaq api-key list
# Create a new API keyopenslaq api-key create <name> [--scopes <scope1,scope2>]
# Revoke an API keyopenslaq api-key revoke <key-id>openslaq workspace
View workspace information.
# Show current workspace infoopenslaq workspace info
# List workspace membersopenslaq workspace membersopenslaq channel
Manage channels.
# List channelsopenslaq channel list
# Send a message to a channelopenslaq channel send <channel-id> "Hello from the CLI!"Global flags
| Flag | Description |
|---|---|
--help, -h | Show help for a command |
--version, -v | Show CLI version |
--api-url | Override the API URL |
--token | Use a specific API token (instead of stored credentials) |
--json | Output in JSON format |