Tools
42space add <tool> describes a tool once; every machine installs it.
Built-in recipes
42space add node@22.11.0
42space add go@1.24.0
42space add nvim@0.11.5
Checksums are verified against upstream lists where they exist (node), and pinned on first use otherwise.
Any release archive or binary
42space add mytool@1.2 --url https://example.com/mytool-1.2-linux-x64.tar.gz --bin bin/mytool
42space add jq@1.7.1 --url https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-amd64 --binary --bin jq
The version inside the URL becomes a {version} template, so upgrading only
changes the version. Useful options:
| Option | Meaning |
|---|---|
--bin PATH | executable inside the archive (repeatable; default: everything in bin/) |
--strip N | leading path components to drop from the archive (default 1) |
--binary | the URL is a single executable, not an archive |
--sha256 HASH | expected checksum instead of pinning on first use |
--prefer-system '>=22' | skip the install when the system already has a matching version |
Packages
42space add npm:typescript # global npm packages (needs node)
42space add npm:@nestjs/cli
42space add uv:ruff # Python CLI tools installed with uv
42space add python@3.11 # interpreters, installed with uv
npm packages, uv tools and VS Code extensions are package sets: one
manifest per kind, with exact versions recorded in
~/.config/42space/42space.lock. Every machine installs exactly those
versions until you upgrade.
Removing
42space remove go
42space remove npm:typescript
42space gc # delete versions and downloads nothing uses any more
Versions, upgrades and rollback
42space upgrade # every catalog tool and package set
42space upgrade node # node stays on its major line
42space upgrade go --to 1.24.0 # an exact version
42space rollback go # instant: the previous version is kept on disk
If a new version can't be installed (a failed download, no network, a script waiting for re-approval), the previous install stays on PATH.
Environment variables and PATH
42space env set EDITOR=nvim
42space env set CARGO_HOME={cache}/cargo # per-machine paths
42space path add '{home}/scripts'
42space env list
Values can use {home}, {user}, {goinfre}, {root}, {cache} and
{tools}, which expand to each machine's paths.