Usage:
$ vlt cache <command> [flags]Work with vlt cache folders
Subcommands
add
Resolve the referenced package identifiers and ensure they are cached.
$ vlt cache add <package-spec> [<package-spec>...]ls
Show cache entries. If no keys are provided, then a list of available keys will be printed. If one or more keys are provided, then details will be shown for the specified items.
$ vlt cache ls [<key>...]info
Print metadata details for the specified cache key to stderr, and the response body to stdout.
$ vlt cache info <key>clean
Purge expired cache entries. If one or more keys are provided, then only those cache entries will be considered.
$ vlt cache clean [<key>...]delete
Purge items explicitly, whether expired or not. If one or more keys are provided, then only those cache entries will be considered.
$ vlt cache delete <key> [<key>...]delete-before
Purge all cache items from before a given date. Date can be provided in any format that JavaScript can parse.
$ vlt cache delete-before <date>delete-all
Delete the entire cache folder to make vlt slower.
$ vlt cache delete-allExamples
Show cache metadata for a given registry URL:
$ vlt cache ls https://registry.npmjs.org/typescriptAdd a given package specifier to the cache by fetching its resolved value:
$ vlt cache add eslint@latestPrint the cache metadata to stderr, and write the tarball on stdout, redirecting to a file:
$ vlt cache info https://registry.npmjs.org/eslint/-/eslint-9.25.1.tgz > eslint.tgzDelete all entries created before Jan 1, 2025:
$ vlt cache delete-before 2025-01-01