Skip to content
isolate
Esc
↑↓navigate↵open⌘Jpreview
On this page

CLI maintenance

Update, uninstall, generate completions, and inspect capabilities or configuration.

update

Replace the running isolate binary with a release from github.com/chr33s/iso. Release tags come from main. The updater requires a maintainer signature on the release’s SHA256SUMS (SHA256SUMS.sig), verifies the platform tarball’s SHA-256 against it and, when gh is installed, its repository build-provenance attestation. The updater installs the bundled iso-sandbox, iso-proxy, iso-egress and iso-macos-helper before replacing the host. It installs the Linux desktop images’ iso-cu-mcp and vmlinux-desktop when the release carries them and removes the installed copies when it does not, so neither stays beside a runtime from another release. Each file replacement is atomic; the set of files is not a single transaction. If a later replacement fails, rerun the installer for the same release to restore a matching set. Missing companions are rejected before replacement.

The updater that runs is the installed one. v0.9.0 and earlier do not know the two desktop files, so an update from one of them installs neither and iso setup --profile desktop then fails asking for a reinstall. Run iso update --force once after such an update (or rerun install.sh): the new updater installs them.

No authentication is required. When gh is authenticated against github.com or GITHUB_TOKEN is set, iso update uses it, which helps avoid GitHub API rate limits.

iso update [FLAGS]
Flag Description
--check Report whether a newer release exists. Do not download or install.
--force Reinstall even if the current binary is already at the target version.
--version <VERSION> Install a specific release tag (e.g. v0.3.2 or 0.3.2).
--allow-downgrade Permit installing a release older than the current binary; refused otherwise.
-y, --yes Skip the interactive confirmation prompt.

If isolate is installed in a protected directory (e.g. /usr/local/bin), run with sudo. Dev builds (built from an untagged or dirty tree) refuse to self-update; use install.sh to replace them.

iso update --check
iso update
iso update --yes
iso update --version v0.3.2
iso update --force
iso update --version v0.3.1 --allow-downgrade

See also the updates section of the configuration reference for the background-notification settings.

uninstall

Remove the isolate binary and the companion executables installed beside it (iso-sandbox, iso-macos-helper, iso-proxy, iso-egress, and the Linux desktop images’ iso-cu-mcp and vmlinux-desktop) and, optionally, its data: owned instances are destroyed and <data_dir>/backends/apple-container-v1/ and the update-check state are removed. The configuration file, the secret store (<data_dir>/secrets/) and other files under <data_dir> (default ~/.iso) are kept. Refuses to remove the binary when it lives in a build-output directory (.build/debug/, .build/release/, or .build/<triple>/…) so swift run iso uninstall does not delete your build artifact.

iso uninstall [FLAGS]
Flag Description
-y, --yes Skip interactive confirmation prompts. Removes data unless --keep-data is set.
--keep-data Remove only the binary; preserve <data_dir>/backends/apple-container-v1/ and the update-check state. Conflicts with --purge.
--purge Also destroy owned instances and remove <data_dir>/backends/apple-container-v1/ and the update-check state without prompting; the config and secrets/ are kept. Conflicts with --keep-data. Pairs with --yes for CI.

Without --yes, the command prints a summary (binary path, data directory, instance and image counts) and asks for confirmation. A second prompt asks whether to also remove the data directory unless --keep-data or --purge is set. Non-interactive runs require --yes.

If the binary lives in a protected directory (e.g. /usr/local/bin), run with sudo. A config file outside the data directory is left in place and a note is printed.

iso uninstall                       # interactive: prompts for binary and data
iso uninstall --yes                 # CI: remove binary and data, no prompts
iso uninstall --yes --keep-data     # CI: remove binary only
iso uninstall --yes --purge         # CI: remove binary and data, explicit

completions

Print a static shell completion script for bash, zsh, or fish. Completion covers commands, options, and fixed values only; instance, image, and profile names are not completed (use iso list, iso images, iso profiles). See docs/shell-completion.md for full setup recipes per shell.

iso completions <SHELL>
Argument Description
SHELL Target shell: bash, zsh, or fish. powershell and elvish are no longer provided and fail with an error.
iso completions bash | sudo tee /etc/bash_completion.d/iso > /dev/null
iso completions bash > ~/.local/share/bash-completion/completions/iso
iso completions zsh > ~/.zfunc/_iso
iso completions fish > ~/.config/fish/completions/iso.fish

capabilities

Print the CLI version, the machine-interface versions this build speaks, the backend, the commands that support --output json, and the editor providers. The JSON document also names the audit schemas and --output jsonl selections. It reads no configuration, state or credentials, starts no runtime and checks for no update, so an integration can call it first.

iso capabilities
iso capabilities --output json

validate

Check the configuration file and prerequisites. Prints warnings, then a summary of what was actually checked: Config OK; Config OK (N stored secrets not checked; run with --probe); or Config loads, but N requested checks failed, which exits 1. A github.pat entry that does not resolve, or (with --probe) does not authenticate, is a failed check. A github.pat entry stored with vault: is reported as stored secret, not resolved, counts as not checked (not as a failure), and never unlocks the secret store. With --probe, also exercises each github.pat entry against api.github.com to confirm the token is still live; vault: entries are resolved in one unlock.

iso validate
iso validate --probe
Flag Description
--probe For each github.pat entry, resolve the token and call GET /user on api.github.com to confirm it authenticates. Network-dependent; may trigger a Keychain (or your own cmd: tool’s) prompt, and asks for the secret-store passphrase and Touch ID once when an entry is a vault: reference.

Was this page helpful?