A Command Line Utility / Command Line Interface used for interacting with Zerops platform.
Made with ❤️ for CI/CD development and CLI lovers.
- Windows
- Linux
- MacOS (arm64, amd64)
- NixOS
- Wireguard - utilized by
zcli vpncommand. - ping - utilized by
zcli vpncommand.
npm i -g @zerops/zcliExecute following command in PowerShell:
irm https://zerops.io/zcli/install.ps1 | iexExecute following command in Terminal:
curl -L https://zerops.io/zcli/install.sh | sh- Clone this repository
cd zcliinto the root of the cloned repository and runnix develop.- Run
nix buildto build the binary / executable of zCLI. - zCLI's binary / executable will be present in
./result/bin/zcli.
Currently, the zCLI is distributed for Linux (x86 & x64 architecture), macOS (x64 & M1 architecture) and Windows (x64 architecture).
Tip
To download the zCLI directly, locate the binary for your OS in the latest release on GitHub.
-
Create a new personal access token at settings/token-management in Zerops GUI.
-
Login to zCLI using the personal access token using the following command:
zcli login <token>- Run zcli to list commands and the current status
zcliFor more information go through https://docs.zerops.io/references/cli.
Prerequisites: Go 1.26+, git, make, and curl (used to fetch pinned tooling).
git clone https://github.com/zeropsio/zcli && cd zcli
make tools # download pinned golangci-lint + goreleaser into ./bin
make build-dev # build ./bin/zcli for the host platformCommon targets (run make help for the full list):
| Target | What it does |
|---|---|
make build-dev |
Build ./bin/zcli with the devel tag, no optimizations (dlv-friendly). |
make install |
Build a production zcli and install to ~/.local/bin (same path as install.sh). |
make install-dev |
Install a zcli-dev binary into $GOBIN (or $GOPATH/bin). |
make test |
Run the full Go test suite. |
make lint |
Run golangci-lint across darwin/arm64, linux/amd64, windows/amd64. |
make all |
Cross-build dev binaries for all release platforms. |
make goreleaser-snapshot |
Dry-run a full release build into ./dist (no upload). |
Tool versions (golangci-lint, goreleaser) are pinned at the top of the Makefile. Bumping a version triggers an automatic reinstall on next use; run make clean-tools to wipe ./bin and force a fresh install.
Contributions to zCLI are welcome and highly appreciated. However, We would like you to go through CONTRIBUTING.md.
To chat with other community members, you can join the Zerops Discord Server.