Appearance
Install plexctl
plexctl is the operator client for the plexsphere /v1 API. It is distributed as a build artefact; clone the repository and run the Makefile target.
Prerequisites
- A Go toolchain matching
/.go-version(Go 1.26). See../../contributing/toolchain.md. makeandgiton$PATH.- A directory on
$PATHfor the binary (~/.local/bin,/usr/local/bin, …).
Steps
Build the binary
shell
git clone https://github.com/plexsphere/plexsphere.git
cd plexsphere
make plexctl-buildmake plexctl-build compiles cmd/plexctl/ into bin/plexctl and stamps the build metadata. Building with a bare go build produces an unstamped 0.0.0-dev binary that is not suitable for incident reports — always use the Makefile target.
Install onto $PATH
shell
install -m 0755 bin/plexctl ~/.local/bin/plexctl # user-local
sudo install -m 0755 bin/plexctl /usr/local/bin/plexctl # system-wideEnable shell completion
shell
plexctl completion bash | sudo tee /etc/bash_completion.d/plexctl >/dev/nullReplace bash with zsh, fish, or powershell as needed; see ../../reference/cli/plexctl/completion.md for the per-shell install path.
Verification
shell
plexctl --version
# version=<semver> commit=<sha> date=<rfc3339>A version=0.0.0-dev line means the binary was built without the Makefile ldflags — rebuild with make plexctl-build.
See also
- Log in with plexctl — the first device-code login.
../../reference/cli/plexctl.md— the full CLI reference.