Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

The teeup command

All teeup actions after the first run use one command, teeup, which is in bin/teeup. The ./bootstrap script links it to ~/.local/bin/teeup. Most verbs need the name of a capability. Run teeup list to see all capabilities.

Installing and changing things

CommandWhat it does
teeup install <capability>Install and configure a capability and all the items that it requires. Run it again to repair a capability that you broke manually.
teeup install dev-env <lang>Install a language runtime with mise: python, node, java, ruby, rust, or go.
teeup install font <name>Install a Nerd Font and configure every tool to use it. Run teeup install font list to see the known font names.
teeup configure <capability>Configure the capability again.
teeup reset <capability>Restore the configuration files to the teeup version. teeup makes a backup of your files and prints the differences.
teeup updateUpdate the machine: move the checkout to the newest release, upgrade the packages and the mise tools, and run the migrations. Then configure the core and daily tiers again, render the theme, and run your hooks.
teeup update --mainFollow main instead of releases, now and in later updates. teeup update --release follows releases again. See Updates.
teeup update <capability>Upgrade the packages for one capability, or run its own update script if it has one. Then configure the capability again.
teeup remove <capability>Undo what a capability installed. Your configuration files remain. See Removing a capability.
teeup uninstallRemove teeup from the Mac after you confirm. Add --packages to uninstall the packages. Add --identity to remove your git identity. Add --yes to run without prompts. See Uninstall.
teeup theme set <name>Apply a theme to all themed tools. If you do not give a name, teeup shows a picker.
teeup theme listList the themes.
teeup theme currentPrint the current theme, as teeup theme with no verb also does.
teeup launch <app or capability>Start a GUI app, and install its capability first if the app is missing. App names do not need quotes.

Removing a capability

  • teeup remove <capability> runs the remove script of the capability, if it has one, and then uninstalls the casks and packages that its metadata lists. It also removes the links of the tools that it installed through mise, and uninstalls their pinned versions. Finally, teeup forgets the capability, but your configuration files remain.

    A remove script is optional, and thirteen capabilities ship one today:

    • The macos-defaults script restores preferences.
    • The terminal-app script deletes the teeup profiles and restores the default profile.
    • The emacs and keyboard scripts unload their LaunchAgents.
    • The colima script stops its VM.
    • The script of each of the five ai-* capabilities deletes its wrapper.
    • The ai bundle script removes all five leaves.
    • The ca-bundle script deletes its PEM bundle.
    • The emacs and wezterm scripts uninstall their MacPorts ports.

    The command refuses to run if another installed capability requires this one. It also refuses if the capability does not have a remove script, packages, casks, or tools from mise. Seven capabilities have nothing to undo: dev-dirs, package-manager, secrets, ssh, teeup-runtime, theme, and xcode-clt. For these capabilities, teeup remove secrets and similar commands tell you so, and the capability stays marked as installed. If a remove script reports “not applicable on this machine”, teeup reports that status, not a clean removal.

Looking at the machine

CommandWhat it does
teeup statusShow the version, the package manager, the answers file, the installed capabilities, the lazy shims, and the language runtimes.
teeup listShow every capability with its tier and summary.
teeup list --tier coreShow capabilities for one tier: core, daily, or lazy.
teeup doctorCheck the installed items and show how to fix the problems. The command exits 0 when the machine is healthy, 1 when it finds problems, and 2 when it cannot check an item.
teeup doctor <capability>...Check one or more capabilities, for example teeup doctor git starship.
teeup has <capability>Exit 0 when the capability is installed, for use in scripts and menus.
teeup versionPrint the teeup version. On a release, this is the version only, for example 0.3.0-beta. After a release, it also shows the number of commits after the release, the branch and the commit, for example 0.3.0-beta+6 (main, 3c4b7b4).

Settings and secrets

CommandWhat it does
teeup config getShow the answers file, the machine file (if there is one), and every answer, with a mark on the answers that the machine file pins.
teeup config get <KEY>Print one answer, for example TEEUP_THEME.
teeup config set <KEY> <value>Change one answer, and show the command that applies it.
teeup config editOpen the answers file in $VISUAL, then $EDITOR, then vi. teeup prints which one it opens. Set VISUAL= to use $EDITOR. If an edit breaks the file, teeup restores the previous file.
teeup secret set <name>Store a secret in the macOS Keychain. teeup asks for the value but does not echo it.
teeup secret get <name>Print a stored secret.
teeup secret rm <name>Delete a stored secret.

Everything else

CommandWhat it does
teeup menuShow all actions in a keyboard-driven list. See The menu.
teeup migrate legacyRemove the old teeup and the chezmoi configuration on this Mac. See Migrating.
teeup commandsList the capability names, one name per line.
teeup commands --checkLint the capability metadata.
teeup dev new-capability <name>Start a new capability and its test from a skeleton.
teeup dev add-migrationStart a migration script for the machines that are already configured.
teeup dev checkRun the metadata, the menu, the shellcheck, and the test checks. Add a capability name to check only that one.
teeup lazy-run <capability> <command>The command that a lazy shim runs. You will rarely type it, and Tiers explains it.
teeup helpShow the short usage text.

The dev commands build teeup.

Previewing with DRY_RUN

Put DRY_RUN=true before a command. teeup then prints the commands but does not run them, so it does not install, write, or delete anything.

DRY_RUN=true teeup update
DRY_RUN=true teeup remove cursor
DRY_RUN=true teeup migrate legacy

teeup shows skipped commands in this format:

🔍 [DRY-RUN] Would execute: brew update

The ./bootstrap script uses a flag: ./bootstrap --dry-run.

Before you use a command that removes items, such as teeup remove, teeup uninstall, or teeup migrate legacy, do a dry run.