Skip to main content

PS CLI is a CLI tool designed to allow the execution of BeyondInsight and Password Safe API calls

Project description

Scanned by Frogbot

ps-cli

The Password Safe CLI Application is an efficient Command Line Interface (CLI) tool specifically crafted to interface with the Beyond Insight and Password Safe APIs (version 24.3). This application allows users to access various API resources, including safes, folders, secrets, managed accounts, and more. It offers a user-friendly interface that simplifies command parsing, ensures input validation, and delivers detailed output.

Available environment variables

Required:

  • PSCLI_API_URL: Beyond Insight and Password Safe API URL. This can also be set in the settings file.
  • PSCLI_CLIENT_ID: Client ID to use when requesting data from the API. This can also be set in the settings file.
  • PSCLI_CLIENT_SECRET: Client secret to use when requesting data from the API. This can also be set in the settings file.

Optional:

  • PSCLI_SETTINGS_PATH: Custom settings path to use for ps-cli. By default, the settings file is created in the user's home directory (~).
  • PSCLI_AUTH_RETRIES: The number of times ps-cli should attempt to authenticate in case of an error.
  • PSCLI_TIMEOUT_CONNECTION: How long to wait for the server to connect and send data before giving up. Integer value defined in seconds, by default 30 seconds.
  • PSCLI_TIMEOUT_REQUEST: How long to wait for each request made to the API. Defined in seconds, by default 30 seconds.
  • PSCLI_VERIFY_CA: Set to false to disable SSL certificate verification (useful for self-signed certificates). By default, SSL verification is enabled for secure connections.

Prerequisites

  • Python 3.12+
  • Password Safe version 24.3

Getting started

  • Install ps-cli (package name: beyondtrust-bips-cli)
pip install beyondtrust-bips-cli
  • Check that ps-cli is properly installed:
ps-cli -h
# Output usage instructions:
usage: ps-cli [-h] [-v] [-l {DEBUG,INFO,WARNING,ERROR,CRITICAL}] [--format {json,csv,tsv}] [--delimiter {,,;,   ,|, }]
              [-av {3.0,3.1}]
              {safes,folders,secrets,settings} ...
  • Create the settings file using:

By default, the settings file is created in the user's home directory (~). If you would like to specify a custom path for the settings, you can achieve this by setting the PSCLI_SETTINGS_PATH environment variable. If you're using the custom settings path (PSCLI_SETTINGS_PATH), set it before running the settings initialization command:

ps-cli settings initialize-settings

After creating the settings file, proceed to edit it and configure the api_url, client_id, and client_secret, in case you did not define this configuration using the available environment variables (PSCLI_API_URL, PSCLI_CLIENT_ID and PSCLI_CLIENT_SECRET).

You can find more details on ps-cli official documentation.

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

beyondtrust_bips_cli-0.11.0.tar.gz (66.5 kB view details)

Uploaded Source

Built Distribution

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

beyondtrust_bips_cli-0.11.0-py3-none-any.whl (107.2 kB view details)

Uploaded Python 3

File details

Details for the file beyondtrust_bips_cli-0.11.0.tar.gz.

File metadata

  • Download URL: beyondtrust_bips_cli-0.11.0.tar.gz
  • Upload date:
  • Size: 66.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for beyondtrust_bips_cli-0.11.0.tar.gz
Algorithm Hash digest
SHA256 d8cfffbd437b7c769192ffe6bdeb7989c0e1034753aa1c18da6815593aa57b49
MD5 13e64a904ac820fdb5ffa60903c92ae0
BLAKE2b-256 ab0c5970a1bf1224d5e5e6ed7121d803f5e6f8022ed1f1a852eee22e4c082c72

See more details on using hashes here.

Provenance

The following attestation bundles were made for beyondtrust_bips_cli-0.11.0.tar.gz:

Publisher: release.yml on BeyondTrust/ps-integration-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file beyondtrust_bips_cli-0.11.0-py3-none-any.whl.

File metadata

File hashes

Hashes for beyondtrust_bips_cli-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9d3d2f86ec4492c363023b9bbfa8fc85e3ca7c535b78f7ea6ef5f94bace9b6bf
MD5 6f603a9e1da2d80d66c9a1c392b4ef0f
BLAKE2b-256 c0b2dc4f1946b8805b7443ba53497ee9b82b0a703161221fe49e6511cb1553b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for beyondtrust_bips_cli-0.11.0-py3-none-any.whl:

Publisher: release.yml on BeyondTrust/ps-integration-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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