<!-- @generated by usage-cli from usage spec -->
# `mise generate task-stubs`

- **Usage:** `mise generate task-stubs [-d --dir <DIR>] [-m --mise-bin <MISE_BIN>]`
- **Effect:** modifies state
- **Source code:** [`src/cli/generate/task_stubs.rs`](https://github.com/jdx/mise/blob/main/src/cli/generate/task_stubs.rs)

Generates shims to run mise tasks

By default, this will build shims like ./bin/&lt;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
```
