exec
The moon exec (or moon x, or moonx) command is a low-level command for executing tasks in the
action pipeline. It provides fine-grained control over how tasks are selected and executed, through
command line options, making it ideal for custom workflows and advanced use cases.
The moon check, moon ci, and moon run commands are all built on
top of moon exec, so be sure to check those out for more user-friendly abstractions!
# Run `lint` in project `app`
$ moon exec app:lint
$ moonx app:lint
# Run `dev` in project `client` and `server`
$ moon exec client:dev server:dev
$ moonx client:dev server:dev
# Run `test` in all projects
$ moon exec :test
$ moonx :test
# Run `test` in all projects with tag `frontend`
$ moon exec '#frontend:test'
$ moonx '#frontend:test'
# Run `format` in the default project
$ moon exec format
$ moonx format
# Run `build` in projects matching the query
$ moon exec :build --query "language=javascript && projectLayer=library"
Arguments
...<target>- Targets or project relative tasks to run.[-- <args>]- Additional arguments to pass to the underlying command.