Complete reference for all Sniffly command-line interface commands.
sniffly init Start the analytics dashboard
sniffly config Manage configuration
sniffly version Show version information
sniffly help Show help and usage examples
Start the Sniffly analytics dashboard server.
sniffly init [OPTIONS]Options:
--port INTEGER- Port to run server on (default: 8081)--host STRING- Host to run server on (default: localhost)--no-browser- Don't open browser automatically--clear-cache- Clear cached data
Examples:
sniffly init # Start with defaults
sniffly init --port 9000 # Use custom port
sniffly init --no-browser # Don't open browserManage configuration settings. This is a command group with subcommands:
Display current configuration values and their sources.
sniffly config show [OPTIONS]Options:
--json- Output in JSON format
Example output:
Current configuration:
auto_browser: True (default)
port: 8090 (from config file)
cache_max_projects: 5 (from environment)
Set a configuration value.
sniffly config set KEY VALUEExamples:
sniffly config set port 8090
sniffly config set auto_browser false
sniffly config set cache_max_projects 10Remove a custom configuration value (revert to default).
sniffly config unset KEYExample:
sniffly config unset portShow the current version of Sniffly.
sniffly versionShow detailed help and usage examples.
sniffly help| Key | Type | Default | Description |
|---|---|---|---|
port |
int | 8081 | Server port |
host |
str | 127.0.0.1 | Server host |
auto_browser |
bool | true | Auto-open browser |
cache_max_projects |
int | 5 | Max projects in memory |
cache_max_mb_per_project |
int | 500 | Max MB per project |
messages_initial_load |
int | 500 | Initial messages to load |
max_date_range_days |
int | 30 | Max days for date range |
enable_memory_monitor |
bool | false | Show memory usage |
enable_background_processing |
bool | true | Process stats in background |
cache_warm_on_startup |
int | 3 | Projects to preload |
All configuration keys can be set via environment variables:
# Examples
export PORT=9000
export AUTO_BROWSER=false
export CACHE_MAX_PROJECTS=10
# Or inline
PORT=9000 sniffly initMapping:
port→PORThost→HOSTauto_browser→AUTO_BROWSERcache_max_projects→CACHE_MAX_PROJECTScache_max_mb_per_project→CACHE_MAX_MB_PER_PROJECT- etc. (uppercase with underscores)
Settings are loaded in priority order:
- Command-line arguments
- Environment variables
- Config file (
~/.sniffly/config.json) - Built-in defaults
0- Success1- General error2- Invalid command or arguments
- Configuration:
~/.sniffly/config.json - Claude logs:
~/.claude/projects/(auto-detected) - Cache:
~/.sniffly/cache/