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

Workspace and editor commands

Transfer files, review guest changes, and connect editors.

push

Copy a local directory into the running VM at /workspace. Defaults to the host path recorded when the instance was created with iso up.

iso push [NAME] [FLAGS]
Flag Description
NAME Instance name (required if multiple instances exist)
--dir <dir> Local directory to push (defaults to the workspace host path)
--force Overwrite guest changes without confirmation
--exclude-git Deprecated, no effect: a push never sends .git
iso push
iso push my-project --dir ./src --force

pull

Copy the VM’s /workspace to a local directory. Defaults to the host path recorded when the instance was created with iso up.

iso pull [NAME] [FLAGS]
Flag Description
NAME Instance name (required if multiple instances exist)
--dir <dir> Local directory to pull into (defaults to the workspace host path)
--force In direct mode, allow replacing existing local files (never execution-sensitive paths)
--exclude-git Deprecated, no effect: a pull never installs .git
--review Pull into a host-side stage and print it for review instead of writing the local directory
--stat When reviewing, print only the summary, not text diffs
--apply Apply the reviewed stage named by --stage-id to the directory it was created for
--stage-id <id> Required with --apply: the id printed at review; any other stage is refused
--approve-sensitive <PATH> With --apply --stage-id, approve one execution-sensitive entry shown at review (repeatable; exact path, no globs)
--discard Delete the current stage

With workspace.pull.mode = "stage" (configuration), a plain iso pull behaves like --review. See staged pulls. Under an enforcing workspace.pull.apply policy with an approval guard, --apply re-renders the stage on the host terminal and applies it only after you type its stage ID; --force does not waive this, and without a terminal (or with --output json) it fails with approval_required before writing anything. Direct pulls and --dir naming another directory are refused. See policy.md.

iso pull
iso pull my-project --dir ./local-copy --force
iso pull my-project --review
iso pull my-project --apply --stage-id 1a2b3c4d5e6f7a8b

diff

Stage the guest workspace and print what iso pull --apply would change: added, modified and type-changed paths, then text diffs. Equivalent to iso pull --review.

iso diff [NAME] [--dir <dir>] [--stat]

code / zed

Ensure an environment for a project directory exists and is running, then open it in VS Code (iso code) or Zed (iso zed) over the managed iso-<name> SSH alias.

iso code [DIR] [--guest-path PATH] [--no-launch] [--editor-security MODE] [--editor-allow CAP]... [up options]
iso zed  [DIR] [--guest-path PATH] [--no-launch] [--editor-security MODE] [--editor-allow CAP]... [up options]

The project lifecycle is exactly iso up’s: the same project affinity, create/restart/reuse decision, devcontainer discovery and translation, and restart-only option checks. Every iso up option except --dry-run/--json is accepted. The command then refreshes the pinned SSH alias and launches only the named editor; it never falls back to another one. By default the editor is a new, sandboxed instance that iso supervises: the command stays in the foreground until you quit the editor, the instance stops, or you press Ctrl-C.

Flag Description
DIR Project directory (default: current directory)
--guest-path <path> Absolute guest path to open (default: /workspace). Refused when it is a directory in your home folder and no DIR is given. --project is the older spelling and is still accepted
--no-launch Prepare the instance and SSH alias without starting the editor
--editor-security <sandboxed|unsafe> Local editor class (default: config editor.security, else sandboxed). See editor security
--editor-allow <clipboard|internet> Widen the sandboxed editor; repeatable, adds to editor.allow. Refused with --editor-security unsafe
iso code .
iso zed ~/code/project
iso code . --guest-path /workspace/frontend
iso zed . --no-launch --output json

If the editor cannot be found, the command fails with EDITOR_NOT_FOUND in machine mode; if it is found but fails to start or exits unsuccessfully, EDITOR_LAUNCH_FAILED. Both name the instance and the lifecycle step that already ran. See editor integration.

editor

Open an editor (VS Code or Zed) connected to an already-running guest VM over SSH remote. To create or start the project’s instance first, use iso code / iso zed.

iso editor [NAME] [--guest-path PATH] [--editor code|zed] [--editor-security MODE] [--editor-allow CAP]... [--clean]
Flag Description
NAME Instance name (required if multiple instances exist)
--guest-path <path> Absolute guest path to open in the editor (default: /workspace). --project is the older spelling and is still accepted
--editor <code|zed> Editor to launch. Omitted: try VS Code first, then Zed.
--editor-security <sandboxed|unsafe> Local editor class (default: config editor.security, else sandboxed). See editor security
--editor-allow <clipboard|internet> Widen the sandboxed editor; repeatable, adds to editor.allow. Refused with --editor-security unsafe
--clean Remove the SSH config entry for this instance and exit
iso editor
iso editor my-project --guest-path /workspace/subdir
iso editor my-project --editor zed
iso editor my-project --clean

ssh-config

Install a iso-<name> alias into ~/.ssh/config so plain ssh, scp, and rsync reach the guest without remembering its host, port, user, or key. This is the same SSH config block iso editor writes, but without launching an editor.

iso ssh-config [NAME] [--clean]
Flag Description
NAME Instance name (required if multiple instances exist)
--clean Remove the SSH config entry for this instance and exit
iso ssh-config
iso ssh-config my-project
ssh iso-my-project
scp ./file iso-my-project:/workspace/
rsync -az ./dir/ iso-my-project:/workspace/dir/
iso ssh-config my-project --clean

The alias is created only when you run iso ssh-config (or iso editor). The lifecycle keeps it tidy: iso destroy removes the block, iso stop leaves it in place, and iso start refreshes an already-installed block so it stays valid across a restart, since the guest address can change.

The block pins each guest’s host key: it sets StrictHostKeyChecking yes with the instance’s own known_hosts and HostKeyAlias <machine>.iso, plus ForwardAgent no and IdentityAgent none, and a changed key is refused. Pins recorded by older builds under the .iso alias no longer match and the instance is refused until you re-enroll it (iso restore <name> --reprovision) or recreate it.

Use ssh-config for ad-hoc copies of arbitrary paths. To sync the tracked workspace directory in bulk, use push / pull instead.

With the global --output json, prints one iso.machine/v1 document instead; see machine-interface.md.

Was this page helpful?