@skooly/cli
v0.1.0
Published
CLI for Skooly URL shortener - create short links, view analytics, manage URLs
Maintainers
Readme
@skooly/cli
Command-line interface for Skooly URL shortener.
Installation
npm install -g @skooly/cliRequirements
- Node.js 18+
- Skooly VIP account (API keys require VIP plan)
- API key from https://skoo.ly/tools/developers
Usage
Authentication
# First, create an API key at https://skoo.ly/tools/developers
# Log in (requires username, password, AND API key)
skooly login
# Check current user
skooly whoami
# Log out
skooly logoutURL Management
# Create a short link
skooly shorten https://example.com/long-url
# Create with custom code
skooly shorten https://example.com -c mycode
# List your links
skooly list
skooly list --page 2 --limit 20
# View analytics
skooly analytics mycode
# Delete a link
skooly delete mycode
skooly delete mycode --force # Skip confirmationOutput Formats
# Human-readable tables (default)
skooly list
# JSON output (for scripting)
skooly list --json
skooly analytics mycode --jsonCommands
| Command | Alias | Description |
|---------|-------|-------------|
| login | - | Log in and create API key |
| logout | - | Clear local credentials |
| whoami | - | Show current user info |
| shorten <url> | - | Create short link |
| list | ls | List your links |
| analytics <code> | stats | View link analytics |
| delete <code> | rm | Delete a link |
Configuration
Credentials are stored in:
- Windows:
%APPDATA%\skooly-nodejs\Config\config.json - macOS:
~/Library/Preferences/skooly-nodejs/config.json - Linux:
~/.config/skooly-nodejs/config.json
API Key Scopes
When you log in, an API key is created with full scope (read + write).
You can create read-only keys at https://skoo.ly/settings/api-keys
License
MIT
