Set up

Install zp, the Zuper command-line tool, and log in once. This page covers zp 0.4.0.

NeedNotes
A Zuper accountOn the development environment. Check it by signing in at https://development.zuperpro.com.
ChromeFor dev mode. Other browsers are not checked.
Internet accesszp downloads packages from registry.npmjs.org.
Node.js, npm and gitNot needed with the installer: it carries its own Node.js. Only the npm route below needs Node.js 22 or later.

Install zp

Mac or Linux

curl -fsSL https://raw.githubusercontent.com/ZuperHQ/zp-cli-releases/main/install.sh | sh

It downloads about 45 MB, checks the archive against the release's SHA256SUMS, and unpacks it into ~/.zuper. It never uses sudo, so it asks for no password. The download shows no progress bar, so give it a minute on a slow connection.

Windows (PowerShell)

powershell -ExecutionPolicy Bypass -c "irm https://raw.githubusercontent.com/ZuperHQ/zp-cli-releases/main/install.ps1 | iex"

It installs into %LOCALAPPDATA%\Zuper. If the one-line command fails, download the zip, SHA256SUMS and install.ps1 from the release on GitHub, then run install.ps1 on the zip.

With your own Node.js 22 or later

npm install -g "git+ssh://[email protected]/ZuperHQ/zp-cli.git#v0.4.0"

This needs read access to the private ZuperHQ/zp-cli repository; ask the zp maintainers for it. Keep the #v0.4.0 tag: without it, the install fails with tsc: command not found.

Put zp in your PATH

The installer prints the line to add. On a Mac with zsh:

echo 'export PATH="$HOME/.zuper/bin:$PATH"' >> ~/.zshrc

Use ~/.bashrc on Linux with bash. Then open a new terminal. On Windows, run the [Environment]::SetEnvironmentVariable line the installer prints, then reopen PowerShell.

Check it

zp --version

The output starts with @zuper/cli/0.4.0 or newer.

See what zp can do

zp --help
zp app create --help

zp --help lists the commands in the order you use them (log in, create, generate, dev, validate, upload, deploy) and the settings you can change with environment variables. zp <command> --help shows one command's options.

SettingWhat it changesDefault
ZP_API_URLThe Zuper API that stores apps and runs buildshttps://development.zuperpro.com/api/app-builder
ZP_WEBAPP_URLThe Zuper webapp that zp app dev links tohttps://developmentv3.zuperpro.com/sdk
ZP_OAUTH_CLIENT_IDThe OAuth client that zp auth login useszuper-cursor

Log in once

zp opens Zuper's development sign-in page in your browser and saves the tokens on your machine. You have 5 minutes to finish signing in.

zp auth login
zp auth whoami
  • The login is saved in ~/.zuper/credentials.json. zp auth logout removes it.
  • Port 8787 must be free while you log in.

Update or remove

  • Update: run the install command again. A zp update command is planned after 0.4.0.
  • Remove on Mac or Linux: run the installer with --uninstall, then delete the PATH line you added.
  • Remove on Windows: run the installer with -Uninstall.
  • Remove an npm install: npm uninstall -g @zuper/cli.
  • Updating and removing keep your login.
curl -fsSL https://raw.githubusercontent.com/ZuperHQ/zp-cli-releases/main/install.sh | sh -s -- --uninstall

If something goes wrong

You seeCauseFix
command not found: zpzp is not in your PATHAdd the PATH line, then open a new terminal
An old version after an updateTwo copies of zp are installedRun which -a zp, remove the older one, and install again
tsc: command not foundnpm install without the tagUse the #v0.4.0 form
EBADENGINENode.js is older than 22Install Node.js 22 or later, or use the installer
EACCESnpm can't write to its global folderDon't use sudo. Run npm install -g --prefix ~/.zp … and start ~/.zp/bin/zp
Port 8787 is in useAnother program holds the portFind it with lsof -i :8787, stop it, and log in again
NOT_LOGGED_INNo saved login, or it expiredRun zp auth login
API_UNREACHABLEzp can't reach ZuperCheck your internet connection or VPN, and ZP_API_URL if you set it

Did this page help you?