Skip to main content

Install Shoplazza CLI

This guide shows you how to install Shoplazza CLI on macOS, Windows, or Linux.

Requirements

RequirementVersion
Node.js18.0.0 or higher
GitLatest recommended
tip

Node.js is required for extension development toolchains (checkout extensions, theme extensions). If you only use the CLI for API commands and shortcuts, the standalone binary works without Node.js.

shell
npm install -g shoplazza-cli

Install via shell script (macOS / Linux)

For environments without Node.js, you can install the standalone Go binary:

shell
curl -fsSL https://raw.githubusercontent.com/shoplazza/shoplazza-cli/main/install.sh | bash

The script automatically detects your OS and architecture, downloads the appropriate binary, and places it in /usr/local/bin.

To install a specific version:

shell
curl -fsSL https://raw.githubusercontent.com/shoplazza/shoplazza-cli/main/install.sh | bash -s -- --version v2.0.0

Install from GitHub Releases

Download the pre-built binary for your platform from the GitHub Releases page.

PlatformArchitectureFile
macOSIntel (x86_64)shoplazza-cli_darwin_amd64.tar.gz
macOSApple Silicon (arm64)shoplazza-cli_darwin_arm64.tar.gz
Linuxx86_64shoplazza-cli_linux_amd64.tar.gz
Linuxarm64shoplazza-cli_linux_arm64.tar.gz
Windowsx86_64shoplazza-cli_windows_amd64.zip

After downloading, extract the binary and move it to a directory in your PATH:

shell
tar -xzf shoplazza-cli_darwin_arm64.tar.gz
sudo mv shoplazza /usr/local/bin/

Verify the installation

shell
shoplazza version

The command returns the version number, build date, and Go version.

Shell completion

Shoplazza CLI supports shell completion for bash, zsh, fish, and PowerShell:

shell
# Bash
shoplazza completion bash > /etc/bash_completion.d/shoplazza

# Zsh
shoplazza completion zsh > "${fpath[1]}/_shoplazza"

# Fish
shoplazza completion fish > ~/.config/fish/completions/shoplazza.fish

# PowerShell
shoplazza completion powershell > shoplazza.ps1

Upgrade

shell
# npm
npm update -g shoplazza-cli

# shell script (re-run installer)
curl -fsSL https://raw.githubusercontent.com/shoplazza/shoplazza-cli/main/install.sh | bash

Next steps