Set up
Install zp, the Zuper command-line tool, and log in once. This page covers zp 0.4.0.
| Need | Notes |
|---|---|
| A Zuper account | On the development environment. Check it by signing in at https://development.zuperpro.com. |
| Chrome | For dev mode. Other browsers are not checked. |
| Internet access | zp downloads packages from registry.npmjs.org. |
| Node.js, npm and git | Not 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 | shIt 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"' >> ~/.zshrcUse ~/.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 --versionThe output starts with @zuper/cli/0.4.0 or newer.
See what zp can do
zp --help
zp app create --helpzp --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.
| Setting | What it changes | Default |
|---|---|---|
ZP_API_URL | The Zuper API that stores apps and runs builds | https://development.zuperpro.com/api/app-builder |
ZP_WEBAPP_URL | The Zuper webapp that zp app dev links to | https://developmentv3.zuperpro.com/sdk |
ZP_OAUTH_CLIENT_ID | The OAuth client that zp auth login uses | zuper-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 logoutremoves it. - Port
8787must be free while you log in.
Update or remove
- Update: run the install command again. A
zp updatecommand 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 -- --uninstallIf something goes wrong
| You see | Cause | Fix |
|---|---|---|
command not found: zp | zp is not in your PATH | Add the PATH line, then open a new terminal |
| An old version after an update | Two copies of zp are installed | Run which -a zp, remove the older one, and install again |
tsc: command not found | npm install without the tag | Use the #v0.4.0 form |
EBADENGINE | Node.js is older than 22 | Install Node.js 22 or later, or use the installer |
EACCES | npm can't write to its global folder | Don't use sudo. Run npm install -g --prefix ~/.zp … and start ~/.zp/bin/zp |
| Port 8787 is in use | Another program holds the port | Find it with lsof -i :8787, stop it, and log in again |
NOT_LOGGED_IN | No saved login, or it expired | Run zp auth login |
API_UNREACHABLE | zp can't reach Zuper | Check your internet connection or VPN, and ZP_API_URL if you set it |
Updated about 1 hour ago
