Skip to content
uapkg
Explore uapkg
Account

uapkg Docs

Installation

Setup installs uapkg for your user account. When it finishes, open a new terminal and run uapkg --version to check your installation.

Windows

Download the Windows installer, run uapkg-init.exe, and follow the prompts.

macOS and Linux

Run this command in your terminal.

curl --proto '=https' --tlsv1.2 -sSfL https://sh.uapkg.dev | sh

On Alpine Linux or another x64 musl system, select the musl build explicitly.

curl --proto '=https' --tlsv1.2 -sSfL https://sh.uapkg.dev | sh -s -- --platform linux-x64-musl

Install options

Choose the defaults, customize the installation, or cancel at the prompt. The default executable directory is ~/.uapkg/bin (%USERPROFILE%\.uapkg\bin on Windows). A custom executable directory leaves your configuration profile in its existing location.

Option Effect
--yes Accept the displayed defaults without prompting. Use this in unattended installs.
--install-dir <directory> Place the launcher in this directory. Quote paths containing spaces.
--cli-version <selector> Select the global default CLI, for example an exact published version or latest. Project pins still apply inside projects.
--no-modify-path Leave persistent PATH configuration to you.
--adopt Allow setup to take ownership of a verified, manually installed standalone launcher in the selected directory.

Pass options directly to the Windows executable or after sh -s -- on Unix. For example:

.\uapkg-init.exe --yes --install-dir "$HOME\My Tools\bin" --no-modify-path
curl --proto '=https' --tlsv1.2 -sSfL https://sh.uapkg.dev | sh -s -- --yes --install-dir "$HOME/My Tools/bin" --no-modify-path

For an older manual installation, use the version from its original release archive. Pass --adopt --adopt-version <exact-launcher-version> with its existing executable directory. Setup checks the installed binary against the signed release for that exact version before taking ownership. A manual binary matching the setup release needs only --adopt.

Repair and updates

Run uapkg launcher repair to restore a managed installation. If the launcher is missing, run setup again for the same installation directory. Reinstallation uses your existing settings unless you choose a different directory, CLI selector, or PATH setting. If a download or verification fails, resolve the reported error and run setup again.

If setup reports that the installed executable has changed, use a freshly downloaded installer to run launcher repair --install-dir <directory>. Repair verifies the replacement and reports where it saved a copy of the previous executable.

Use uapkg launcher-update to update the standalone launcher. Use uapkg version default <selector> to choose a different default CLI. A project can separately pin its CLI version in uapkg.json.

Uninstall and data cleanup

Run uapkg launcher uninstall to remove the managed launcher and the PATH or shell changes recorded during installation. Your CLI cache, configuration and credentials remain available for a later reinstall.

A custom executable directory can retain the empty uapkg-update.lock file. The launcher uses this shared file to coordinate updates between processes.

If you also want to erase your login, run uapkg logout before uninstalling to revoke the default registry session and remove its saved credentials. Repeat with uapkg logout --registry <alias> for each additional registry. For offline removal, --local-only clears the local credentials. Revoke the grant later from the account website.

After uninstalling, you can back up and remove the .uapkg directory in your home directory to delete your configuration, caches, and downloaded CLI versions. Check it first for files you want to keep.

Manual installation

  1. Choose a version in Launcher releases. Download your platform’s archive, SHASUMS256.txt, and SHASUMS256.txt.minisig from the same version directory.
  2. Download the artifact signing public key. Use minisign -Vm SHASUMS256.txt -p release-signing.pub and compare the archive’s SHA-256 with its entry in the verified list. Use Get-FileHash on Windows, shasum -a 256 on macOS, or sha256sum on Linux.
  3. Extract the launcher into a user-writable directory on PATH. Run uapkg version default latest to download and configure the initial CLI.

See the launcher reference for version selection, offline use, and release verification.