mix nbpr.cache (NBPR v0.2.1)

Copy Markdown View Source

Introspect and garbage-collect the extracted-artefact cache that mix nbpr.fetch/mix nbpr.build populate under $NERVES_ARTIFACTS_DIR/nbpr/ (defaulting to ~/.local/share/nerves/nbpr/).

mix nbpr.cache list
mix nbpr.cache info <dir>
mix nbpr.cache clean [--keep-latest] [--dry-run] [--yes]

Subcommands

  • list — one line per cached artefact: directory name, package version, and target system.
  • info <dir> — the full (package, version, system, system_version, build_opts) tuple a cache entry corresponds to, read from its manifest.json. <dir> is the directory name as printed by list.
  • clean — remove cached artefacts. By default removes all of them; with --keep-latest it keeps the most-recently-modified entry per package and removes the rest. Prompts before deleting unless --yes is given; --dry-run prints what would be removed without deleting.