Skip to main content

BeyondTrust Platform CLI (unofficial) - Password Safe, Entitle, PRA, EPM

Project description

BT-CLI

Unofficial BeyondTrust Platform CLI - manage privileged access across your environment from a single command line.

Supported Products

Product Command Description
Password Safe bt pws Credential vaulting, secrets management, password rotation
Entitle bt entitle Just-in-time access requests and approval workflows
PRA bt pra Privileged remote access - jump items, sessions, vault
EPM Windows bt epmw Endpoint privilege management - computers, policies, admin requests

What You Can Do

Credential Management (Password Safe)

  • Check out/in credentials for managed systems
  • Store and retrieve secrets in Secrets Safe
  • Manage systems, accounts, and password rotation policies

Just-in-Time Access (Entitle)

  • View available access bundles and integrations
  • Check user permissions and active grants
  • Manage resources across connected applications

Remote Access (PRA)

  • List and create jump items (SSH, RDP, tunnels)
  • Manage vault accounts and credential checkout
  • Organize access with jump groups

Endpoint Privilege (EPM Windows)

  • View managed computers and their status
  • Assign policies to computer groups
  • Approve or deny admin access requests

Installation

From PyPI (Recommended)

pip install bt-cli

# Verify
bt version

From Source

# Clone and install
git clone <repository-url>
cd bt-cli

# Create virtual environment
python -m venv .venv
source .venv/bin/activate  # Linux/macOS
# or: .venv\Scripts\activate  # Windows

# Install
pip install -e .

# Verify
bt version

Configuration

Set environment variables for each product you want to use:

# Password Safe (OAuth)
export BT_PWS_API_URL=https://your-server/BeyondTrust/api/public/v3
export BT_PWS_CLIENT_ID=your-client-id
export BT_PWS_CLIENT_SECRET=your-client-secret

# Entitle
export BT_ENTITLE_API_URL=https://api.us.entitle.io
export BT_ENTITLE_API_KEY=your-api-key

# PRA
export BT_PRA_API_URL=https://your-site.beyondtrustcloud.com
export BT_PRA_CLIENT_ID=your-client-id
export BT_PRA_CLIENT_SECRET=your-client-secret

# EPM Windows
export BT_EPM_API_URL=https://your-site-services.epm.bt3ng.com
export BT_EPM_CLIENT_ID=your-client-id
export BT_EPM_CLIENT_SECRET=your-client-secret

On Windows PowerShell:

$env:BT_PWS_API_URL = "https://your-server/BeyondTrust/api/public/v3"
$env:BT_PWS_CLIENT_ID = "your-client-id"
$env:BT_PWS_CLIENT_SECRET = "your-client-secret"
# ... etc

Or use a .env file and source it before running commands.

Quick Start

# Test all connections
bt pws auth test
bt entitle auth test
bt pra auth test
bt epmw auth test

# Explore resources
bt pws systems list
bt entitle integrations list
bt pra jump-groups list
bt epmw computers list

Output Formats

All commands support table (default) or JSON output:

bt pws systems list           # Human-readable table
bt pws systems list -o json   # JSON for scripting

Documentation

See CLAUDE.md for complete command reference, environment details, and cross-product workflows.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bt_cli-0.4.7.tar.gz (420.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bt_cli-0.4.7-py3-none-any.whl (214.1 kB view details)

Uploaded Python 3

File details

Details for the file bt_cli-0.4.7.tar.gz.

File metadata

  • Download URL: bt_cli-0.4.7.tar.gz
  • Upload date:
  • Size: 420.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for bt_cli-0.4.7.tar.gz
Algorithm Hash digest
SHA256 7ef5acf7f4152154db4510b781c66337d6965f0a33837fd034de3fe75b4db4e4
MD5 481e2c7844cb3d68f183497609ce0700
BLAKE2b-256 024e4bc2db15e161dc89ebf34fe093c3e2778d3b080829e17b6691ed414d3cfb

See more details on using hashes here.

File details

Details for the file bt_cli-0.4.7-py3-none-any.whl.

File metadata

  • Download URL: bt_cli-0.4.7-py3-none-any.whl
  • Upload date:
  • Size: 214.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for bt_cli-0.4.7-py3-none-any.whl
Algorithm Hash digest
SHA256 bc5ca26d8a9507b4dd1a6c00d05e44a03d32e99e96691c78ad4f0b529b30bc94
MD5 a72e278e38063c77363c4e8b552a5ae9
BLAKE2b-256 4ce824fb32c72db6f21845834c5e55d7557f1eabef0c05ba1dd6b835a5d2cf45

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page