Skip to main content

Commands

42space <command> [options]

42space --help lists commands by task and 42space <command> --help shows a command's options with examples. A mistyped command gets the closest match suggested.

Tools​

add​

42space add TOOL [options]
TOOLAdds
name@versiona built-in recipe (node, go, nvim) or, with --url, any download
npm:<package>a global npm package
uv:<package>a Python CLI tool installed with uv
python@X.Ya Python interpreter installed with uv
vscode:<publisher.name>a VS Code extension
repo:<path>a git repo in goinfre, with its secret files
OptionApplies toMeaning
--no-syncallonly record it; install on the next sync
--url URLdownloadsarchive or binary URL; its version becomes a template
--binarydownloadsthe URL is a single executable
--strip Ndownloadsleading archive path components to drop (default 1)
--bin PATHdownloadsexecutable inside the archive (repeatable)
--sha256 HASHdownloadsexpected checksum
--prefer-system CONSTRAINTdownloadsskip the install if the system has e.g. >=22
--pre-release / --stableVS Coderelease channel
--profile NAMEVS Codetarget profile (repeatable; Default is the default profile)
--secret PATHreposalso sync this git-ignored file (repeatable)

remove​

42space remove TOOL [--profile NAME] [--secret PATH]

TOOL is a tool name, npm:<pkg>, uv:<pkg>, vscode:<publisher.name> or repo:<name>. --profile only takes an extension out of that profile; --secret only stops syncing that secret file. Installed files stay until 42space gc; repo clones always stay.

upgrade​

42space upgrade [TOOL ...] [--to VERSION]

Without arguments, upgrades every catalog tool (node stays on its major line) and every package set. --to sets an exact version for one tool.

rollback​

42space rollback TOOL

Returns a downloaded tool to its previous version, which is kept on disk. Rolling back twice returns to where you were.

status, vscode, repos​

  • 42space status: machine, goinfre, manifest state, HOME usage, remote, unpushed changes, and the state of every tool.
  • 42space vscode [list|profiles]: extensions with version, channel, profiles and state; or the profiles VS Code knows.
  • 42space repos: synced repos and whether they and their secrets are in place.

This machine​

CommandOptionsDoes
sync--dry-run, -v, --quiet, --autoinstall or repair everything on this machine
doctordiagnose problems and conflicts
gc--dry-rundelete unused versions and downloads
quota--top Nshow what fills HOME
relocate PATH--class cache|data, --accept-loss, --dropmove a HOME directory to goinfre

Learn what changed​

CommandOptionsDoes
scanlook for untracked changes
review--yes, --listdecide what to do with each finding
journal [show|clear]-n Nshow or clear recorded install commands
recipe new NAME--version V, --bin PATHcreate a script recipe
recipe approve NAME--yesreview and approve a script, then install
recipe show NAME / recipe listinspect script recipes

Environment​

CommandDoes
env set KEY=VALUEmanage a variable (values may use {home}, {cache}, …)
env unset KEYstop managing a variable
env listlist managed variables and PATH entries
path add DIR / path remove DIR / path listmanage PATH entries

Setup and sharing​

CommandDoes
initcreate the environment repo and goinfre layout
enable / disableinstall or remove shell integration (data is kept)
shell install|uninstall|statusmanage the rc block (--dry-run to preview)
migratemigrate from 42space v1 and install shell integration (--yes, --dry-run)
remote set URLset the environment repo's git remote
remote show / remote statusthe remote; or unpushed commits and uncommitted files
remote push / remote pullshare or fetch your setup
remote auto-commit [on|off]commit every change automatically (default on)
remote auto-push [on|off]push after every change (default off)
loghistory of the environment repo (-n N, -p)

Exit codes​

CodeMeaning
0success
1error
2invalid command line
10sync finished with failures
20sync deferred tools because there was no network
130cancelled (Ctrl-C or Ctrl-D)