Administration
scc stats
Section titled “scc stats”View and export usage statistics.
scc stats [OPTIONS]scc stats export [OPTIONS]scc stats aggregate [OPTIONS] FILES...Options (main command):
| Option | Description |
|---|---|
-d, --days N | Filter to last N days |
Subcommands:
stats export
Section titled “stats export”Export statistics as JSON.
| Option | Description |
|---|---|
--json, -j | Output as JSON |
--raw, -r | Export raw event data |
-d, --days N | Filter to last N days |
-o, --output PATH | Output file path |
stats aggregate
Section titled “stats aggregate”Aggregate multiple stats files (for team leads).
| Option | Description |
|---|---|
-o, --output PATH | Output file path |
FILES... | Stats files to aggregate |
Examples:
# View all-time statisticsscc stats
# View last 7 daysscc stats --days 7# Export as JSONscc stats export --json
# Export last 30 days to filescc stats export --days 30 --output stats.json
# Export raw eventsscc stats export --raw --output events.json# Aggregate team statsscc stats aggregate team1.json team2.json --output combined.jsonscc support bundle
Section titled “scc support bundle”Generate a diagnostic bundle for troubleshooting.
scc support bundle [OPTIONS]Options:
| Option | Description |
|---|---|
-o, --output PATH | Output path for the bundle zip file |
--json | Output manifest as JSON instead of creating zip |
--pretty | Pretty-print JSON output (implies --json) |
--no-redact-paths | Don’t redact home directory paths |
What’s included:
- System information (platform, Python version)
- CLI configuration (secrets automatically redacted)
- Doctor output (health check results)
- Diagnostic information
Examples:
# Generate support bundlescc support bundle
# Save to specific locationscc support bundle --output ~/Desktop/scc-support.zip# Output manifest as JSON (no zip)scc support bundle --json
# Pretty-print JSONscc support bundle --prettyscc prune
Section titled “scc prune”Remove stopped SCC containers.
scc prune [OPTIONS]Options:
| Option | Description |
|---|---|
-y, --yes | Skip confirmation prompt |
--dry-run | Preview what would be removed |
Examples:
# Show stopped containers and confirm removalscc prune# Preview what would be removedscc prune --dry-run
# Remove without confirmation (CI/scripts)scc prune --yesscc reset
Section titled “scc reset”Unified maintenance hub for cache, sessions, contexts, and configuration.
scc reset [OPTIONS]Selection Options:
| Option | Risk | Description |
|---|---|---|
--cache | Safe | Clear cache files (~/.cache/scc/) |
--contexts | Low | Clear work context associations |
--exceptions | Medium | Reset all policy exceptions |
--exceptions-expired | Safe | Only cleanup expired exceptions |
--containers | Low | Prune stopped Docker containers |
--sessions | Low | Prune old sessions (keeps newest 20 per team) |
--sessions-all | Medium | Delete entire session history |
--config | Medium | Reset configuration (requires re-setup) |
--all | High | Factory reset - removes all SCC data |
Execution Options:
| Option | Description |
|---|---|
--plan | Fast preview - show what would change |
-n, --dry-run | Execute without writing (validates permissions) |
-y, --yes | Skip confirmation prompts |
--force | Required with --yes for factory reset |
--no-backup | Skip backup creation |
--continue-on-error | Don’t stop on first failure (for CI) |
--json | Machine-readable output |
--non-interactive | Fail if prompt needed |
Examples:
# Clear cache and contexts (quick cleanup)scc reset --cache --contexts
# Cleanup expired exceptions onlyscc reset --exceptions-expired
# Prune old sessions (safe defaults: 30d, keep 20)scc reset --sessions# Open interactive maintenance menuscc reset
# Preview what factory reset would doscc reset --all --plan# Non-interactive cache clearscc reset --cache --yes
# Factory reset in CI (requires --force with --yes)scc reset --all --yes --force
# JSON output for automationscc reset --sessions --jsonscc completion
Section titled “scc completion”Generate shell tab-completion scripts.
scc completion SHELLSupported Shells: bash, zsh, fish
Installation:
Add to ~/.bashrc:
eval "$(scc completion bash)"Add to ~/.zshrc:
eval "$(scc completion zsh)"Run once:
scc completion fish > ~/.config/fish/completions/scc.fishFile Locations
Section titled “File Locations”| File | Purpose |
|---|---|
~/.config/scc/stats/ | Usage statistics storage |
~/.config/scc/config.json | User configuration |
~/.cache/scc/ | Cached data (safe to delete) |
Run scc config paths to see all locations with sizes and permissions.