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. User Guide

ZLI Cheat Sheet

PreviousInstalling the ZLINextConnecting to Your Targets

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.

The below are commonly used commands from the zli. For full details on all the zli commands, see the or execute zli --help from your terminal.

Action
ZLI Command

Log in to BastionZero

zli login

Log out of BastionZero

zli logout

Connect to your target

zli connect {user@target-name}

Send zli and daemon logs to BastionZero

zli send-logs

Send kube or bzero target logs to BastionZero

zli send-logs -t {target-name/id}

Set the log level on an agent to be trace

zli agent configure {agent-name/id} loglevel trace

Use kubectl with BastionZero

zli kube -- {your kubectl command}

List targets

zli list-targets or zli lt

List targets with full detail

zli list-targets --detail or zli lt -d

List targets with target IDs

zli list-targets --showId or zli lt -i

List targets of a specific type

zli lt -t {target-type}, use zli lt -t --help for additional details

List connections

zli list-connections or zli lc

List policies

zli policy list

List policies of a specific type

zli policy list -t {policy-type}, use zli policy list --help for additional details

List the organization's BastionZero users

zli policy users

List the organization's SSO groups

zli policy groups

Check if you have active daemons running

zli status

Disconnect from all active daemons

zli disconnect

Disconnect from daemon of specific type

zli disconnect {type}, use zli disconnect --help for additional details

Access for Infrastructure
ZLI Reference Manual