With pgedge, you work with the pgEdge product suite from one
command-line interface. Its command shape is
pgedge <module> <resource> <verb>.
The CLI has two modules:
starfleet: pgEdge Starfleet authentication and account resources, plus the nestedbyocandmanagedinfrastructure sub-trees.controlplane: the Control Plane.
pgEdge publishes each release on GitHub Releases. To ask a question or report a problem, open a GitHub issue. Getting started covers your first steps.
Each install method suits a different platform and update routine:
| Method | Platforms | Also needs | Updates with |
|---|---|---|---|
| AI agent | Linux, macOS, Windows | curl on Linux and macOS, and Node.js on Windows and for the skills step |
The same line, pasted again |
| Install script | Linux, macOS | curl, tar, and sha256sum or shasum |
pgedge self update |
| GitHub Actions | Linux and macOS runners | Nothing else | A new tag in uses: |
| Homebrew | Linux, macOS | Homebrew | brew upgrade pgedge |
| npm | Linux, macOS, Windows | Node.js 18 or newer | Re-run npm install -g |
| go install | Linux, macOS, Windows | Go 1.27.4 or newer | Re-run go install |
| Release by hand | Linux, macOS, Windows | tar, and sha256sum or shasum |
pgedge self update |
| Build from source | Linux, macOS | Go 1.27.4 or newer, make |
git pull && make build |
A coding agent, such as Claude Code, Codex or Cursor, can install the
CLI for you. It also sets up shell completion and adds the agent
skills for the products you use, after asking you which those are.
On Linux and macOS the install needs curl. On Windows it installs
with npm, so it needs Node.js. The skills step needs Node.js
everywhere. Paste this line into your agent:
Fetch https://raw.githubusercontent.com/pgEdge/pgedge-cli/main/INSTALL.md with curl and follow it.
The agent follows the steps in INSTALL.md, which you can read before you paste the line. If the CLI install fails, the agent stops. If the completion step fails, or the skills step fails or you decline it, the agent carries on. To update the CLI and the skills later, paste the same line again.
The install script downloads the latest release for your platform and
verifies its checksum. When cosign is installed, the script also
verifies the release's cosign signature. It installs to
/usr/local/bin, and falls back to ~/.local/bin. Run the script:
curl -fsSL https://raw.githubusercontent.com/pgEdge/pgedge-cli/main/install.sh | sh
At a terminal, the script then names the coding agents it finds, such as Claude Code or Cursor, and offers to install the agent skills for your user. The skills are pinned to the release it installed. In CI, when an agent runs the script, or when it finds no agent, it prints that command instead. When the skills are already installed, it says so and asks nothing.
To install one release instead of the newest, set PGEDGE_VERSION
to its tag:
curl -fsSL https://raw.githubusercontent.com/pgEdge/pgedge-cli/main/install.sh | PGEDGE_VERSION=<release-tag> sh
On Linux and macOS runners, the action installs the release that its own tag names, and verifies that release's signature. Add this step to your workflow:
- uses: pgEdge/pgedge-cli@v0.5.1-beta.1
CI and automation shows a full pipeline.
Install from the pgEdge tap with one command:
brew install pgEdge/tap/pgedge
Homebrew then prints the command that installs the agent skills for this release.
The @pgedge/cli package installs the native binary for your platform.
Pre-releases publish under the beta tag, so name the tag to install
one:
npm install -g @pgedge/cli@beta
To update, run the same command again. pgedge self update refuses an
npm install, because npm owns that binary.
Go builds the CLI from source at the main branch:
go install github.com/pgEdge/pgedge-cli/cmd/pgedge@main
To build a release instead, put its tag in place of @main. A binary
installed this way reports its version as dev.
Download the archive for your platform from GitHub Releases, then verify and extract it:
# verify integrity
sha256sum -c checksums.txt --ignore-missing
# verify authenticity (optional, requires cosign)
cosign verify-blob \
--bundle checksums.txt.sigstore.json \
--certificate-identity-regexp \
'^https://github\.com/pgEdge/pgedge-cli/\.github/workflows/release\.yml@refs/tags/' \
--certificate-oidc-issuer \
'https://token.actions.githubusercontent.com' \
checksums.txt
tar -xzf pgedge_*.tar.gz
install pgedge /usr/local/bin/
If you cannot write to /usr/local/bin, run the install command with
sudo, or install to a directory you own on your PATH, such as
~/.local/bin.
pgEdge publishes builds for linux and darwin (amd64, arm64) and
windows (amd64, arm64). Archive names are lowercase and use Go's
spelling for each architecture. The output of uname maps to those
names irregularly across platforms and shells, so take the archive
name from the releases page. Windows archives are .zip, and all
others are .tar.gz.
Build the binary in a checkout and run it:
make build
./pgedge --help
A downloaded release binary updates itself:
pgedge self update # verify the newest release and swap it in
pgedge self update --check # just say whether one exists
The command checks the download against the release's Sigstore
signature and checksum. It does this before the download touches the
installed binary. Afterward, it regenerates an installed completion
script. A Homebrew or npm install, or a binary inside a git
checkout, stays in place, and the command names the one to run
instead: brew upgrade pgedge, npm install -g @pgedge/cli@beta or
make build. pgedge doctor also reports the latest release.
Updating the CLI has the details.
Enable Tab completion for commands, subcommands and flags:
pgedge completion install
The command detects your shell: bash, zsh, fish or PowerShell. The install script runs it for you, and a Homebrew install ships completion for bash, zsh and fish. The command sets up completion in one of two ways:
- File install (default). It writes a completion script into the
directory your shell loads completions from. Then it prints any
step that remains, such as a zsh
fpathline or a PowerShell profile line. Your shell loads the script like any other completion file.pgedge self updateregenerates the script, so it keeps up with the binary. - rc line (
--rc-only). It adds one line to your shell's startup file in place of the script. The installed binary makes the completions at every shell start, so they always match it.
To take the second route, run:
pgedge completion install --rc-only
To add the line by hand instead, use the one for your shell:
# ~/.bashrc
eval "$(pgedge completion bash)"
# ~/.zshrc
eval "$(pgedge completion zsh)"
# ~/.config/fish/config.fish
pgedge completion fish | source
# PowerShell $PROFILE
pgedge completion powershell | Out-String | Invoke-Expression
pgedge completion uninstall removes whichever of the two is in
place.
To wire up a shell by hand, print its script on its own:
pgedge completion fish
pgedge completion powershell
Release archives also ship a completions/ directory with a script
for each shell. It includes pgedge.ps1 for Windows zip users who
prefer to wire it up by hand.
pgEdge ships five agent skills in plugins/pgedge/skills/. They teach
a coding agent to run pgedge correctly. The install script offers to
install them when it runs at a terminal. To install them yourself, for
your user, run:
npx skills add pgEdge/pgedge-cli --global
That one command serves Claude Code, Codex, Cursor, Copilot, Amp,
Antigravity and a dozen others. The repository is also a plugin
marketplace. In Claude Code, install the pgedge plugin:
/plugin install pgedge --marketplace pgEdge/pgedge-cli
In Codex, add the marketplace, then install the plugin:
codex plugin marketplace add pgEdge/pgedge-cli
codex plugin add pgedge@pgedge-cli
Installing the Agent Skills covers every route, pinning the skills to a release, and installing without Node.js.
Print the command tree, then sign in:
pgedge --help
pgedge starfleet auth login
The docs/ tree holds the guides and the generated command reference:
- Getting started
- Authentication and profiles
- CI and automation
- Troubleshooting
- Versions, uninstall and support
- Guides for each module: pgEdge Starfleet, pgEdge Starfleet Managed, pgEdge Starfleet BYOC and the Control Plane
- Reference pages for each module, in docs/reference/
AI agents should run pgedge llms instead. It prints the same
reference, which is embedded in the binary.
pgedge version reports the launcher version, plus one version for
each module. What its first line reads depends on how the binary was
built.
Versions, uninstall and support
has the details.
pgedge completion uninstall removes the shell completion script.
Versions, uninstall and support
lists everything else the CLI put on the machine, and where.
Build, test and lint the checkout:
make build test lint
See CONTRIBUTING.md.