Back to Mise

`mise generate install-script`

docs/cli/generate/install-script.md

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

mise generate install-script

Generate a script to download+execute mise

This is designed to be used in a project where contributors may not have mise installed.

Renamed from mise generate bootstrap, which read as a form of mise bootstrap (machine setup). The old name still works but is deprecated and will be removed in mise 2027.9.0.

Flags

  • -l --localize — Keep mise data and cache in a project-local directory (.mise by default)

    Use --localized-dir to choose its location. This isolates mise state; it is not an OS sandbox for commands the generated script runs.

  • -V --version <VERSION> — Specify mise version to fetch

  • -w --write [WRITE] — Write the script to a file and make it executable instead of printing it to stdout

  • --localized-dir <LOCALIZED_DIR> — Directory to put localized data into

    Default: .mise

  • --windows — Also write a Windows launcher, <WRITE>.cmd

    Windows cannot execute the #!/usr/bin/env bash script, so a contributor who clones the project on Windows has nothing to run without this.

    Generated on every host, not only on Windows: the file is committed, and whoever runs it on Windows is not the person who generated it. Requires --write, since stdout cannot carry two files.

  • -h --help — Print help

Examples

Download mise to .mise if it is not already installed.

mise generate install-script --write ./bin/mise
./bin/mise install

Write bin/mise.cmd as a launcher for contributors who clone the project on Windows.

mise generate install-script --write ./bin/mise --windows
.\bin\mise.cmd install
<!-- generated reference navigation -->