Skip to main content

CACHES_CLEAR_EXAMPLES

Constant CACHES_CLEAR_EXAMPLES 

Source
pub const CACHES_CLEAR_EXAMPLES: &str = "\
EXAMPLES:
  devp caches clear npm           One manager, after confirming
  devp caches clear cargo         Both cargo rows: the registry cache and its sources
  devp caches clear npm,uv,pip    Just these three — a one-time whitelist
  devp caches clear all --except npm,uv
                                  Everything but these — a one-time blacklist
  devp caches clear all --dry-run Everything that would go, and nothing touched
  devp caches clear all --over-cap
                                  Only the ones past their cache_max_gb
  devp caches clear all --unused  Only the ones no registered repository uses
  devp caches clear all --yes     No prompt, for a script
  devp caches clear go --json --yes
                                  Machine-readable (`--json` requires `--yes`)
  devp caches clear docker --include-volumes
                                  Also pick unused volumes by name (terminal only)

Exit code 1 if any cache could not be cleared; the rows are printed either way.
Exit code 2 for `maven`, which is reported but never cleared.";