CLI Tool
The ClickSpot CLI lets you manage links and migrate from other URL shorteners directly from your terminal.
Installation
macOS and Linux
Run this command in your terminal:
curl -fsSL https://cli.clickspot.io/install.sh | shOr with wget:
wget -qO- https://cli.clickspot.io/install.sh | shAdd to PATH
After installation, add the CLI to your PATH:
export PATH="$PATH:$HOME/.clickspot/bin"Add this line to your shell profile (~/.bashrc, ~/.zshrc, etc.) to make it permanent.
Verify Installation
clickspot --versionAuthentication
Before using the CLI, authenticate with your ClickSpot account using an API key.
Get Your API Key
- Go to app.clickspot.io
- Navigate to Settings → API Keys
- Create a new API key or copy an existing one
Login
clickspot auth login --api-key="YOUR_API_KEY"Check Status
clickspot auth statusLogout
clickspot auth logoutAvailable Commands
| Command | Description |
|---|---|
clickspot auth | Manage authentication (login, logout, status) |
clickspot migrate | Import links from other URL shorteners |
clickspot upgrade | Check for and install CLI updates |