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.13.0.tar.gz (78.4 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.13.0-py3-none-any.whl (125.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: beyondtrust_bips_cli-0.13.0.tar.gz
  • Upload date:
  • Size: 78.4 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.13.0.tar.gz
Algorithm Hash digest
SHA256 fe9a9d6f89d51339006a1da606a11f751e588b259b3526f3bb7cbf4d0f903146
MD5 e7ae8c57046e6351dc7d693c9c4e2442
BLAKE2b-256 bf1f5dfc5efe522539db2926f6b2993be62ee7b832af263b1445c39eede03ab1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for beyondtrust_bips_cli-0.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 df0d8ff7bc4c7c9e23887fb2f1ad61a044f92b9c896d3949946e931c4378436a
MD5 5d075874a1c4db42b1496624933abe37
BLAKE2b-256 9397e6cb3dc74ea94f377b16aed81f26c4531c15e275a978f20cfc377e9067dc

See more details on using hashes here.

Provenance

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