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 first ran install, or --mise-bin. It must be owned by root and writable only by root, as must every directory above it.
Installing again changes only what it is given and keeps the rest of the pin, including its signers, so sudo mise bootstrap pull install --self-update turns on self-update alone. --no-env, --no-user and --no-self-update clear a value. A different --repo or --ref also discards the checkout and the run state, so the new ref starts from its head. Different --env or --user values apply the current commit again.
Flags
--repo <GIT_URL>— The repository to apply: an HTTPS or SSH URL, or a local pathRequired the first time; installing again keeps the pinned one.
--ref <REF>— The branch to follow, or a full ref such asrefs/tags/livemainthe first time; installing again keeps the pinned one.--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. Required the first time; installing again keeps the pinned copy.-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. Installing again keeps the pinned ones.
--no-env— Clear the pinned environments, so the host's own miserc chooses--interval <DURATION>— How often to fetch, such as30mor1h(at least one minute)30mthe first time; installing again keeps the pinned one.--mise-bin <PATH>— The mise executable the service runsThe first time, the one that runs
install; installing again keeps the pinned 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. Installing again keeps the pinned one.--no-user— Clear the pinned account, so root acts for itself--self-update— Keep the mise executable at the newest releaseRuns the bootstrap with
--self-update, which installs the newest eligible signed mise release (seeself_update.minimum_release_age) over the executable the service runs, then applies the commit with it. Runs with no new commit also check for a new release every--self-update-interval, and apply the current commit again with a mise they installed. A failed update fails the run, which is retried like a failed apply. Installing again keeps it on.--no-self-update— Stop updating the mise executable--self-update-interval <DURATION>— How often--self-updatechecks for a new release without a new commitSuch as
12hor7d;1dwhen self-update is turned on, and installing again keeps the pinned one. When a run installs a new release, it applies the current commit again with it.0updates mise only with an apply: of a new commit, or withpull run --force.--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 10mTurn on self-update and keep the rest of the pin
sudo mise bootstrap pull install --self-update