Installing the ZLI
BastionZero's command line interface for connecting to your targets
The BastionZero product is maintained for existing BastionZero customers only.
Moving forward, we are natively rebuilding BastionZero’s technology as Cloudflare’s Access for Infrastructure 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.
Install the
zliwith the command below:brew install bastionzero/tap/zli
Use the
yum-config-managerto add the BastionZero repo.sudo yum-config-manager --add-repo \ https://download-yum.bastionzero.com/bastionzero.repoInstall the
zli.sudo yum install -y zli
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/nullAdd 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/nullUpdate the
aptcache.sudo apt updateInstall the
zli.sudo apt install -y zli
Download the
zli.curl.exe -LO "https://download-zli.bastionzero.com/release/latest/bin/zli.exe"Append the
zlibinary folder to yourPATHenvironment variable. Note, the following example will make thezlicommands permanently available to the current user only.setx PATH "%PATH%;<path to folder containing zli>"Exit out of your terminal window and reopen a new one.
Log in to the
zli.zli login
Have feedback on the docs? Please reach out to [email protected].
Last updated
