Back to Mise

`mise generate task-stubs`

docs/cli/generate/task-stubs.md

2026.8.121.1 KB
Original Source
<!-- @generated by usage-cli from usage spec -->

mise generate task-stubs

Generates shims to run mise tasks

By default, this will build shims like ./bin/<task>. These can be paired with mise generate install-script so contributors to a project can execute mise tasks without installing mise into their system. When a parent and nested task both exist, the parent stub is written to <parent>/_default.

Flags

  • -d --dir <DIR> — Directory to create task stubs inside of

    Default: bin

  • -m --mise-bin <MISE_BIN> — Path to a mise bin to use when running the task stub.

    Use --mise-bin=./bin/mise to use a mise bin generated from mise generate install-script

    Default: mise

  • -h --help — Print help

Examples:

$ mise tasks add test -- echo 'running tests'
$ mise generate task-stubs
$ ./bin/test
running tests