rm-cache
rm-cache - Remove target execution cache for a selection of projects.
Description​
Remove target execution cache for a selection of projects. Projects are selected just like the run
command and recursive cache removal across dependencies is supported. By default, dependencies cache is not removed.
Synopsis​
rm-cache [-t / --target <TARGET>] [-p / --projects <PROJECTS>] [-s / --selector <SELECTOR>] [-a / --all ] [--include <INCLUDE>...] [--exclude <EXCLUDE>...] [--tags <TAGS>] [-d / --depth <DEPENDENCIES_DEPTH>] [<DOUBLE>]
Options​
- [-t / --target <TARGET>] : The target name which cache should be invalidated. If the target does not exist for some selected projects, they will be ignored.
- [-p / --projects <PROJECTS>] : A list of project names. Will be parsed as a comma-separated list of project names (for e.g project1,project2,project3).
- [-s / --selector <SELECTOR>] : A named selector to use when selecting projects. It must be declared at the workspace level.
- [-a / --all ] : Select all projects in the workspace.
- [--include <INCLUDE>...] : A pattern to use for including projects. You can pass this option multiple times if you want to use more than one inclusion pattern. Each pattern must be a valid regular expression. If you want to exclude some projects, you can use the --exclude option.
- [--exclude <EXCLUDE>...] : A pattern to use for excluding projects that were selected using the --include option. You can pass this option multiple times if you want to use more than one exclusion pattern. Each pattern must a valid regular expression.
- [--tags <TAGS>] : Tags to use when selecting projects. All projects that have at least one tag corresponding to one of the provided tags will be selected. You can pass multiple tags delimited by commas (for example, tag1,tag2,tag3).
- [-d / --depth <DEPENDENCIES_DEPTH>] : Set a maximum depth of target dependencies which cache should be removed. If not set, dependencies cache will not be removed.
Arguments​
- [<DOUBLE>] : An execution double consisting of an optional project name and a target name. Works the same as for the
run
command.
Subcommands​
No subcommands for this command.