• Home
Open Source Docs

CLI (Recommended)

Pixie's CLI is the fastest and easiest way to install and manage your Pixie installation.


  • Review Pixie's requirements to make sure that your Kubernetes cluster is supported.

  • Determine if you already have Operator Lifecycle Manager (OLM) deployed to your cluster, possibly to the default olm namespace. Pixie uses the Kubernetes Operator pattern to manage its Vizier, which handles data collection and query execution (see the Architecture diagram). The OLM is used to install, update and manage the Vizier Operator.

1. Install the Pixie CLI

You can install the CLI in one of four ways:

Using the install script (easiest)

# Copy and run command to install the Pixie CLI.
bash -c "$(curl -fsSL https://withpixie.ai/install.sh)"

Directly downloading the binary

# Download the latest Pixie binary.
curl -o px https://storage.googleapis.com/pixie-prod-artifacts/cli/latest/cli_darwin_amd64
# Check the signature matches.
sha256sum px
# Make it executable.
chmod +x px
# (Optional) Move it to another location that has executables.
mv px /usr/local/bin

Using Docker

alias px="docker run -i --rm -v ${HOME}/.pixie:/root/.pixie pixielabs/px"

Using Debian package

# Install Pixie .deb package.
dpkg -i pixie-px.x86_64.deb

Using RPM

# Install Pixie .rpm package.
rpm -i pixie-px.x86_64.rpm

2. Deploy Pixie

# List Pixie deployment options.
px deploy --help
# Deploy the Pixie Platform in your K8s cluster (No OLM present on cluster).
px deploy
# Deploy the Pixie Platform in your K8s cluster (OLM already exists on cluster).
px deploy --deploy_olm=false

Pixie will deploy pods to the pl, px-operator, and olm(if deploying the OLM) namespaces.

(Optional) Labeling Pixie's Resources

When deploying Pixie using the CLI, you have the option of adding one or more custom labels to the K8s objects deployed by Pixie.

# Deploy the Pixie Platform in your K8s cluster and give the deployed objects label(s)
px deploy --labels=key1=value1,key2=value2
# Example deployment with labeling:
px deploy --labels=application=pixie

Certain labels are reserved for internal use by Pixie. The following are reserved label strings that may not be used:

  • "vizier-bootstrap"
  • “component"
  • “vizier-updater-dep"
  • “app"
© 2018-21 New Relic, Inc. All Rights Reserved.
This site uses cookies to provide you with a better user experience. By using Pixie, you consent to our use of cookies.