CLI
Manage feedback, projects, and ratings from the terminal with the SeggWat CLI.
Overview
The SeggWat CLI lets you manage feedback, projects, and ratings directly from your terminal. It's ideal for:
- Quick triage: Review and update feedback without opening the dashboard
- Automation: Script feedback workflows in CI/CD pipelines or cron jobs
- Bulk operations: Filter, search, and export feedback with JSON output
- Developer workflows: Pipe feedback data into other tools like
jq,fzf, or custom scripts
Installation
Supported platforms: Linux (x86_64, ARM64), macOS (Apple Silicon)
Verify the installation:
Authentication
The CLI supports two authentication methods: OAuth login (interactive) and API key (non-interactive).
OAuth Login (recommended for local use)
This opens your browser to authenticate with your SeggWat account. Tokens are cached in ~/.config/seggwat/tokens.json and refreshed automatically.
# Check who you're logged in as
# Log out and clear cached tokens
API Key (recommended for CI/CD and scripts)
Create an API token
In the SeggWat Dashboard, go to Settings > API Tokens and click Create New Token.
Set the environment variable
Or pass it directly:
Never commit API keys to version control. Use environment variables or a secrets manager.
Quick Start
# Log in
# List your projects
# View feedback for a project
# Create a bug report
# Update feedback status
# Check rating statistics
Commands
Projects
| Command | Alias | Description |
|---|---|---|
seggwat project list |
p ls |
List all projects |
seggwat project get <id> |
p get |
Get project details |
seggwat project summary <id> |
p summary |
Project overview with stats |
# List all projects
# Get details for a specific project
# Get a summary with feedback and rating stats
Feedback
| Command | Alias | Description |
|---|---|---|
seggwat feedback list <project-id> |
fb ls |
List feedback (with filters) |
seggwat feedback get <project-id> <feedback-id> |
fb get |
Get a single item |
seggwat feedback create <project-id> |
fb create |
Create new feedback |
seggwat feedback update <project-id> <feedback-id> |
fb update |
Update feedback |
seggwat feedback delete <project-id> <feedback-id> |
fb rm |
Delete/archive feedback |
seggwat feedback stats <project-id> |
fb stats |
Show feedback statistics |
List with filters:
# Filter by status
# Filter by type
# Search message content
# Pagination
Available statuses: new, active, assigned, hold, closed, resolved
Available types: bug, feature, praise, question, improvement, other
Create and update:
# Create feedback
# Update status and add resolution note
# Change feedback type
Ratings
| Command | Alias | Description |
|---|---|---|
seggwat rating list <project-id> |
r ls |
List ratings (with filters) |
seggwat rating get <project-id> <rating-id> |
r get |
Get a single rating |
seggwat rating delete <project-id> <rating-id> |
r rm |
Delete/archive a rating |
seggwat rating stats <project-id> |
r stats |
Aggregated statistics |
# List all ratings
# Filter by type
# Filter by page path
# Get stats for different rating types
Rating types: helpful (thumbs up/down), star (1-5), nps (0-10)
JSON Output
Add --json to any command for machine-readable output. This is useful for scripting and piping into other tools.
# Pretty-print feedback as JSON
|
# Count open bugs
|
# Export all feedback to a file
# Get project IDs for scripting
| Shell Completions
Generate tab completions for your shell:
Global Options
These flags work with any command:
| Flag | Env Variable | Description |
|---|---|---|
--api-url <url> |
SEGGWAT_API_URL |
API base URL (default: https://seggwat.com) |
--api-key <key> |
SEGGWAT_API_KEY |
API key for authentication |
--json |
Output as JSON instead of tables | |
-v, --verbose |
Enable debug logging |
Self-Hosted Setup
If you're running a self-hosted SeggWat instance:
# Point CLI to your instance
# Login requires Zitadel domain and client ID
Or set them as environment variables:
