Skip to content

CLI Installation

The OpenSlaq CLI lets you manage bots, API keys, and workspace configuration from your terminal.

Install

Terminal window
curl -fsSL https://openslaq.com/install.sh | sh

Verify

Terminal window
openslaq --version

Authentication

Log in to your workspace:

Terminal window
openslaq login

This opens your browser to complete the OAuth flow. Your credentials are stored locally at ~/.openslaq/credentials.json.

To log in to a self-hosted instance:

Terminal window
openslaq login --api-url https://api.your-instance.com

Shell completions

Generate shell completions for your shell:

Terminal window
# bash
openslaq completions bash >> ~/.bashrc
# zsh
openslaq completions zsh >> ~/.zshrc
# fish
openslaq completions fish > ~/.config/fish/completions/openslaq.fish