mise bootstrap pull install
- Usage:
mise bootstrap pull install <FLAGS> - Effect: destructive — may delete or irreversibly overwrite
- Source code:
src/cli/bootstrap.rs
Pin a repository and its signers, and install the service that applies it
Run as root. Copies --allowed-signers into the pull directory and writes pull.toml there with the URL, ref, environments and interval; nothing in the repository can change them later. Then writes /Library/LaunchDaemons/dev.mise.bootstrap-pull.plist and loads it, or writes mise-bootstrap-pull.service and .timer to /etc/systemd/system and enables the timer. The first run starts right away.
The service runs the mise executable that runs install, or --mise-bin. It must be owned by root and writable only by root, as must every directory above it.
Installing again replaces the pin. A different --repo or --ref also discards the checkout and the run state, so the new ref starts from its head. Different --env values apply the current commit again.
Flags
--repo <GIT_URL>— The repository to apply: an HTTPS or SSH URL, or a local path--ref <REF>— The branch to follow, or a full ref such asrefs/tags/liveDefault:
main--allowed-signers <FILE>— File of SSH keys allowed to sign applied commitsThe format of Git's
gpg.ssh.allowedSignersFileand ofssh-keygen -Y verify: oneprincipal [options] key-type keyper line.-E --env <ENV>— Config environments for the bootstrap, asMISE_ENVRepeat the flag or separate names with commas. Without it, the host's own miserc chooses.
--interval <DURATION>— How often to fetch, such as30mor1h(at least one minute)Default:
30m--mise-bin <PATH>— The mise executable the service runs (default: this one)--user <NAME>— The account the bootstrap acts for, such as the one that owns HomebrewThe bootstrap still runs as root, but sees this account as
SUDO_USERandMISE_BOOTSTRAP_USER, as if the account had runsudo mise bootstrap, andsudoin a hook or task keeps it. Homebrew packages, per-user macOS preferences, LaunchAgents, dotfiles, shell activation, repositories and tools are applied as the account. Without it, root acts for itself.--self-update— Update the mise executable to the newest release before each applyRuns the bootstrap with
--self-update, which installs the newest signed mise release over the executable the service runs, then applies the commit with it. A failed update fails the apply, which is retried like any other failure.--dir <DIR>— Directory for the pin, state, log and checkoutDefaults to /var/db/mise/bootstrap-pull on macOS and /var/lib/mise/bootstrap-pull on Linux, or
MISE_BOOTSTRAP_PULL_DIR.--no-service— Write the pin, but no service; runmise bootstrap pull runyourself-n --dry-run— Show what would be written without writing it-h --help— Print help
Examples
Apply the main branch of a fleet repository every 30 minutes
sudo mise bootstrap pull install --repo https://github.com/example/fleet.git --allowed-signers ./allowed_signers --env mac-ciFollow a tag instead of a branch
sudo mise bootstrap pull install --repo git@github.com:example/fleet.git --ref refs/tags/live --allowed-signers ./allowed_signers --interval 10m