CLI Commands
Complete reference for every command available in the BugSpark CLI.
Global Options
These flags work with any command:
| Flag | Description |
|---|---|
--api-url <url> | Override the API URL for this command |
-V, --version | Show the CLI version |
-h, --help | Show help for any command |
bugspark login
Authenticate the CLI with a Personal Access Token.
bugspark loginWhat it does:
- Prompts for your API URL (or uses the default)
- Opens your browser to the PAT creation page
- Asks you to paste your
bsk_pat_...token - Verifies the token against the API
- Saves credentials to
~/.bugspark/config.json
Example:
$ bugspark login
? BugSpark API URL: https://bugspark-api.onrender.com/api/v1
Opening browser to create a token...
? Paste your token: bsk_pat_a1b2c3d4...
✓ Logged in as Jane Doe (jane@example.com)bugspark logout
Remove stored credentials.
bugspark logoutDeletes ~/.bugspark/config.json and clears your session.
bugspark whoami
Check who you're logged in as.
bugspark whoamiExample output:
Name: Jane Doe
Email: jane@example.com
API: https://bugspark-api.onrender.com/api/v1bugspark init
Interactive project setup wizard.
bugspark initWhat it does:
- Fetches your projects from the API
- Shows a list to select from, or lets you create a new one
- Displays the widget installation snippet with your real API key
This is the fastest way to get a project's widget code without opening the dashboard.
bugspark projects
Manage BugSpark projects.
bugspark projects list
List all your projects.
bugspark projects listExample output:
Projects (2 total):
─────────────────────────────────────────────────────────────
My Web App
ID: a1b2c3d4-e5f6-...
Key: bsk_pub_abc...
Created: 2025-12-01
Mobile App
ID: f7e8d9c0-b1a2-...
Key: bsk_pub_def...
Created: 2026-01-15
─────────────────────────────────────────────────────────────bugspark projects create
Create a new project.
bugspark projects createPrompts for:
- Project name — e.g. "Staging Environment"
- Domain (optional) — e.g.
staging.myapp.com
Example:
$ bugspark projects create
? Project name: Staging Environment
? Domain (optional): staging.myapp.com
✓ Project created!
ID: new-uuid-here
Key: bsk_pub_new_key...bugspark projects delete
Delete a project by its ID.
bugspark projects deletePrompts for the project ID and asks for confirmation before deleting.
Destructive action
Deleting a project removes all bug reports associated with it. This action cannot be undone.
bugspark reports
Manage bug reports.
bugspark reports list
List recent bug reports for a specific project.
bugspark reports listPrompts for a project ID (you can copy this from bugspark projects list).
Example output:
Reports for project a1b2c3d4 (3 total):
─────────────────────────────────────────────────────────────
#1 Button not working
Severity: high | Status: open
Created: 2026-02-01
#2 Layout broken on mobile
Severity: medium | Status: in_progress
Created: 2026-02-03
#3 Typo in footer
Severity: low | Status: resolved
Created: 2026-02-05
─────────────────────────────────────────────────────────────bugspark reports view
View a single report with full details.
bugspark reports viewPrompts for the report ID. Shows:
- Title, description, severity, status
- Reporter info and category
- Console logs, network logs, and metadata
- User action timeline
bugspark reports update
Update a report's status or severity.
bugspark reports updatePrompts for:
- Report ID
- New status —
open,in_progress,resolved,dismissed - New severity —
low,medium,high,critical
Both are optional; leave blank to skip.
Common Workflows
Set up a brand-new project
bugspark login # one-time setup
bugspark projects create # create the project
bugspark init # get the widget snippetTriage bugs from the terminal
bugspark reports list # see what's new
bugspark reports view # inspect a specific report
bugspark reports update # change status / severityUse in CI/CD
You can use the CLI in automated pipelines by setting the token via config:
# In your CI script
mkdir -p ~/.bugspark
echo '{"apiUrl":"https://bugspark-api.onrender.com/api/v1","token":"bsk_pat_YOUR_TOKEN"}' > ~/.bugspark/config.json
chmod 600 ~/.bugspark/config.json
# Now CLI commands work non-interactively
bugspark projects list
bugspark reports listCI/CD Security
Store your PAT as a secret environment variable in your CI provider (e.g. GitHub Actions secret). Never commit tokens to your repository.
Next Steps
- CLI Authentication — How PATs work
- API Reference — Use the REST API directly
- Widget Configuration — Customize the widget