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.12.1.tar.gz (67.6 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.12.1-py3-none-any.whl (109.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: beyondtrust_bips_cli-0.12.1.tar.gz
  • Upload date:
  • Size: 67.6 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.12.1.tar.gz
Algorithm Hash digest
SHA256 47aa5e4890a145a6204655b0449653f82f08ab2104c4fa6c8606c3d435fc4ebe
MD5 486796aa2b809526c50846e2dccc1366
BLAKE2b-256 37da0d795ebd494b9b016bdd7c52b3824d26b431aea619e8dc85a0d655ce0721

See more details on using hashes here.

Provenance

The following attestation bundles were made for beyondtrust_bips_cli-0.12.1.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.12.1-py3-none-any.whl.

File metadata

File hashes

Hashes for beyondtrust_bips_cli-0.12.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3919a026b24ec64e155893226312f9d1f1f54b09bcdfe13eccd649abd1c8f3dc
MD5 67ee3d9dd3418f432876038ad2369eac
BLAKE2b-256 7562fb26ca71dc14598e908c25da1ce2bc38f636e862e03d926be1911da88dea

See more details on using hashes here.

Provenance

The following attestation bundles were made for beyondtrust_bips_cli-0.12.1-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