50% OFF all plans!View Pricing →

CLI Commands

Complete reference for all Synoppy CLI commands and options.

Core Commands

synoppyStart interactive AI coding session
synoppy loginAuthenticate with Synoppy via browser
synoppy logoutSign out and clear credentials
synoppy whoamiShow current logged in user
synoppy statusShow account status, credits, and subscription
synoppy helpShow help and available commands

AI Commands

synoppy ask <question>Ask a quick question without entering interactive mode
synoppy fix <file>Analyze and fix issues in a file
Flags: -a, --apply
synoppy explain <file>Explain what a file or code does
Flags: -l, --lines <range>
synoppy review <file>Perform a code review on a file
Flags: -f, --focus <area>
synoppy generate <desc>Generate code from a description
Flags: -o, --output <file>

Git Integration

synoppy commitGenerate AI-powered commit messages
Flags: -a, --all, --dry-run
synoppy diffExplain code changes with AI
Flags: -s, --staged, -b, --branch

Code Quality

synoppy testRun tests with AI-assisted debugging
Flags: -w, --watch, --fix
synoppy docs <file>Generate documentation for code
Flags: -f, --format <type>
synoppy audit <path>Perform a security audit on code
Flags: -s, --severity <level>
synoppy optimize <file>Suggest performance optimizations
Flags: -f, --focus <area>
synoppy refactor <file>Suggest code refactorings
Flags: -t, --type <type>
synoppy debug <file>Debug a file or analyze an error
Flags: -e, --error <msg>

Team & CI/CD

synoppy hooksManage git hooks and CI/CD integration
Flags: --install, --ci <provider>
synoppy hooks-setupInteractive hooks setup wizard
synoppy team <action>Team management and collaboration

Examples

Start a new session

bash
synoppy

Start with an initial prompt

bash
synoppy "Add authentication to my Express app"

Quick question

bash
synoppy ask "What is the difference between let and const?"

Fix issues in a file

bash
synoppy fix src/utils.ts --apply

Generate commit message

bash
synoppy commit --all

Security audit

bash
synoppy audit ./src --severity high

Next: Slash Commands

Learn about interactive commands available during a session.

Slash Commands