Skip to content

CLI Reference

Vivek edited this page Nov 26, 2026 · 1 revision

CLI Reference (aegis)

Every mutating subcommand in aegis (asc-cli) is dry-run by default. Pass --yes (-y) when you are ready to apply changes, and --json whenever you want machine-readable output.


Global Options

Flag Description
--yes, -y Apply a mutating command (without it, fixes preview only)
--json Emit structured JSON output instead of human-readable text
--install-dir <DIR> Override bundled resources/rules directory (also ASC_INSTALL_DIR / AEGIS_INSTALL_DIR)
--data-dir <DIR> Override writable user-data directory (Main.ini, asc.db)
--root <DIR> Isolated sandbox root for simulation/testing (cannot be combined with --install-dir or --data-dir)
--language <LANG> UI language name or code
--verbose, -v Print diagnostic detail on stderr

Exit Codes

  • 0: Success
  • 1: Runtime error (I/O error, invalid manifest, missing file)
  • 2: Usage / argument error
  • 3: Feature not available in this build/platform

Command Tree

Command Subcommands / Key Flags Example
scan --deep, --modules <IDS>, --dry-run aegis scan --deep --json
clean --modules <IDS>, --no-backup, --dry-run aegis clean --dry-run / aegis clean --yes
clean --custom --large, --duplicates, --min-large <SIZE>, --min-duplicate <SIZE>, --root <DIR>, --keep first|oldest|newest, --keep-path <PATH> aegis clean --custom --root ~/Downloads --min-large 100MB --keep newest
optimize --ram, --internet, --disk, --system, --dry-run aegis optimize --disk --dry-run
registry scan [--deep], fix [--no-backup], defrag aegis registry scan --json
privacy scan, clean [--no-backup] aegis privacy scan
startup list, disable <NAME>, enable <NAME> aegis startup list --json
monitor --count <N>, --interval <SECS> aegis monitor --count 5 --interval 1 --json
service install, uninstall, run, console [--max-ticks N] aegis service console --max-ticks 1
tray --headless aegis tray --headless
update check, download aegis update check --json
surfing test <URL> [--rules DIR] aegis surfing test https://example.com --json
gui --page dashboard|scan|results|clean|speed-up|protect|rescue|settings|about aegis gui --page dashboard
report --limit <N> aegis report --limit 20 --json
doctor (no args) aegis doctor

Clone this wiki locally