LogoLogo
Main SiteStart Now
  • Home
    • What Is BastionZero?
      • Server Access
      • Database Access
      • Kubernetes Access
      • Web Server Access
    • Product Security
    • Architecture
    • Taxonomy
  • Deployment
    • Getting Started
    • Installing the ZLI
    • Installing the Agent
    • Installing the Desktop App
  • Automation & Integrations
    • CircleCI
    • GitHub Actions
    • Go SDK
    • Google Cloud Run
    • Slack
      • Using the BastionZero app for Slack
    • Terraform
    • Third-Party Clients
  • Admin Guide
    • Authentication
      • SSO Management
      • User Management
      • MFA Management
      • Service Accounts Management
    • Authorization
    • Auditing
    • Target and Connection Management
  • How To Guides
    • Passwordless Database Access
      • Passwordless Access to MySQL and Postgres on GCP Cloud SQL
      • Passwordless Access to AWS RDS PostgreSQL
      • Passwordless Access to AWS RDS MySQL
      • Passwordless Access to Self-Hosted Postgres
    • How to use BastionZero to connect to a Linux Host using the ZLI
    • How to use BastionZero to manage SSH Keys
  • User Guide
    • Installing the ZLI
    • ZLI Cheat Sheet
    • Connecting to Your Targets
    • Troubleshooting Guide
  • ZLI Reference Manual
  • API Specification
  • Getting Help
  • Security Policy
  • Open Source Software Credits
    • Backend Services
    • Bzero Agent
    • Client Daemon
    • Desktop App
    • Go SDK
    • Helm Provider
    • Terraform Provider
    • Web App
    • ZLI
  • Product Changes
  • Service Status
  • GitHub
Powered by GitBook

Copyright © 2024

On this page
  1. Deployment

Installing the ZLI

BastionZero's command line interface for connecting to your targets

PreviousGetting StartedNextInstalling the Agent

Last updated 6 months ago

The BastionZero product is maintained for existing BastionZero customers only.

Moving forward, we are natively rebuilding BastionZero’s technology as Cloudflare’s service.

BastionZero's command-line interface (CLI), the Zero-Trust Command Line Interface (zli), is available on Mac, Linux, and Windows machines.

You can download the zli through package managers (brew, yum, and apt) or with curl for Windows machines.

The zli is compatible with both x86 and amd64 platforms.

  1. Install the zli with the command below:

    brew install bastionzero/tap/zli

Not seeing the update you expected to?

You may have an outdated formula. Try a brew update followed by a brew upgrade zli.

  1. Use the yum-config-manager to add the BastionZero repo.

    sudo yum-config-manager --add-repo \
    https://download-yum.bastionzero.com/bastionzero.repo
  2. Install the zli.

    sudo yum install -y zli
  1. Install the BastionZero public key from the Ubuntu key server.

    curl -sSL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xe5c358e613982017" | gpg --dearmor | sudo tee /usr/share/keyrings/bastionzero.gpg > /dev/null
  2. Add the BastionZero repo with:

    echo "deb [signed-by=/usr/share/keyrings/bastionzero.gpg] https://download-apt.bastionzero.com/production/apt-repo stable main" | sudo tee /etc/apt/sources.list.d/bastionzero.list > /dev/null
  3. Update the apt cache.

    sudo apt update
  4. Install the zli.

    sudo apt install -y zli
  1. Download the zli.

    curl.exe -LO "https://download-zli.bastionzero.com/release/latest/bin/zli.exe"
  2. Append the zli binary folder to your PATH environment variable. Note, the following example will make the zli commands permanently available to the current user only.

    setx PATH "%PATH%;<path to folder containing zli>"
  3. Exit out of your terminal window and reopen a new one.

  4. Log in to the zli.

    zli login

Have feedback on the docs? Please reach out to .

Access for Infrastructure
product@bastionzero.com