Skip to content

Administration

View and export usage statistics.

Terminal window
scc stats [OPTIONS]
scc stats export [OPTIONS]
scc stats aggregate [OPTIONS] FILES...

Options (main command):

OptionDescription
-d, --days NFilter to last N days

Subcommands:

Export statistics as JSON.

OptionDescription
--json, -jOutput as JSON
--raw, -rExport raw event data
-d, --days NFilter to last N days
-o, --output PATHOutput file path

Aggregate multiple stats files (for team leads).

OptionDescription
-o, --output PATHOutput file path
FILES...Stats files to aggregate

Examples:

Terminal window
# View all-time statistics
scc stats
# View last 7 days
scc stats --days 7

Generate a diagnostic bundle for troubleshooting.

Terminal window
scc support bundle [OPTIONS]

Options:

OptionDescription
-o, --output PATHOutput path for the bundle zip file
--jsonOutput manifest as JSON instead of creating zip
--prettyPretty-print JSON output (implies --json)
--no-redact-pathsDon’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:

Terminal window
# Generate support bundle
scc support bundle
# Save to specific location
scc support bundle --output ~/Desktop/scc-support.zip

Remove stopped SCC containers.

Terminal window
scc prune [OPTIONS]

Options:

OptionDescription
-y, --yesSkip confirmation prompt
--dry-runPreview what would be removed

Examples:

Terminal window
# Show stopped containers and confirm removal
scc prune

Unified maintenance hub for cache, sessions, contexts, and configuration.

Terminal window
scc reset [OPTIONS]

Selection Options:

OptionRiskDescription
--cacheSafeClear cache files (~/.cache/scc/)
--contextsLowClear work context associations
--exceptionsMediumReset all policy exceptions
--exceptions-expiredSafeOnly cleanup expired exceptions
--containersLowPrune stopped Docker containers
--sessionsLowPrune old sessions (keeps newest 20 per team)
--sessions-allMediumDelete entire session history
--configMediumReset configuration (requires re-setup)
--allHighFactory reset - removes all SCC data

Execution Options:

OptionDescription
--planFast preview - show what would change
-n, --dry-runExecute without writing (validates permissions)
-y, --yesSkip confirmation prompts
--forceRequired with --yes for factory reset
--no-backupSkip backup creation
--continue-on-errorDon’t stop on first failure (for CI)
--jsonMachine-readable output
--non-interactiveFail if prompt needed

Examples:

Terminal window
# Clear cache and contexts (quick cleanup)
scc reset --cache --contexts
# Cleanup expired exceptions only
scc reset --exceptions-expired
# Prune old sessions (safe defaults: 30d, keep 20)
scc reset --sessions

Generate shell tab-completion scripts.

Terminal window
scc completion SHELL

Supported Shells: bash, zsh, fish

Installation:

Add to ~/.bashrc:

Terminal window
eval "$(scc completion bash)"

FilePurpose
~/.config/scc/stats/Usage statistics storage
~/.config/scc/config.jsonUser configuration
~/.cache/scc/Cached data (safe to delete)

Run scc config paths to see all locations with sizes and permissions.