Skip to main content

Manifest format

Each managed tool is one TOML file in ~/.config/42space/tools.d/. Commands write them for you, but hand edits are fine: run 42space sync afterwards.

Common fields​

FieldTypeMeaning
namestringunique name: lowercase letters, digits, ., _, -
strategystringhow it is installed (see below)
versionstringversion, for downloads and scripts
kindstringinformational: cli, runtime, packages, repos
requireslistother tools that must be installed first
prefer_systemstringskip the install when the system has e.g. >=22
when.archstring or listonly install on these architectures
metatablewritten by 42space (when added, previous version); ignored for change detection

Strings can use placeholders that expand per machine: {home}, {user}, {goinfre}, {root}, {cache}, {tools}, {bin}, plus {name}, {version} and {arch} for the tool itself. Literal /goinfre/ paths are rejected so the manifest stays portable.

Strategies​

archive and binary​

A release archive, or a single executable.

name = "nvim"
version = "0.11.5"
strategy = "archive"

[source]
url = "https://github.com/neovim/neovim/releases/download/v{version}/nvim-linux-{arch}.tar.gz"
strip = 1
arch_map = { aarch64 = "arm64" }
sha256 = { x86_64 = "…" }
# checksums_url = "…/SHASUMS256.txt" # verify against an upstream list
# rename = "tool" # binary: file name of the executable

[expose]
bin = ["bin/nvim"] # or: bin_dirs = ["bin"]

[verify]
run = ["{prefix}/bin/nvim", "--version"]
expect = "v{version}"

npm-global, uv-tool, vscode-ext​

Package sets: a packages list. Unpinned packages resolve to the version in 42space.lock.

name = "npm-globals"
strategy = "npm-global"
packages = ["typescript", "@nestjs/cli@10"]
requires = ["node"]

vscode-ext also takes per-extension options:

[package_options."ms-python.python"]
pre_release = true
profiles = ["Python", "Default"]

uv-python​

name = "python"
strategy = "uv-python"
versions = ["3.11", "3.12"]

script​

name = "mytool"
version = "1.2"
strategy = "script"
script = "scripts/mytool.sh" # must be scripts/<name>.sh

[expose]
bin_dirs = ["bin"]

See Script recipes.

git-repos​

name = "repos"
strategy = "git-repos"

[repos.myproject]
remote = "git@github.com:you/myproject.git"
path = "{goinfre}/myproject"
secrets = [".env", "certs/dev.pem"]

Secret paths are relative to the repo and may not leave it.

Contribute only environment, PATH and links.

name = "dotfiles"
strategy = "link"

[links]
"~/.vscode/extensions" = "{tools}/vscode-extensions"

expose​

KeyMeaning
binexecutables to link into the single PATH directory
bin_dirsdirectories whose executables are all linked
pathextra PATH entries
envenvironment variables
lazyshell functions that source a script on first call (name = "{prefix}/load.sh")

The lock file​

~/.config/42space/42space.lock records the exact version of every unpinned package, per package set. It is committed with the rest of the repo. 42space upgrade clears it for a set so the next sync installs the newest versions.