Skip to main content

A CLI tool commonly used by MT-SRE projects at Red Hat

Project description

# Managed Tenants CLI

A CLI tool commonly used by MT-SRE projects at Red Hat.

## Usage

### Available subcommands

Subcommand | Description |
—————- | ———————————————————————————- |
load | Loads the addons inventory |
run | Runs the task |
tasks_reference | [path:search] “path” for the directory or file and “search” string to filter tasks |

### Available flags

Flag | Description |
——————– | ————————————– |
-v or –version | CLI version |
–environment | Target environment |
–addon-name | Load only a given addon |
–addons-dir | [path] “path” for the addons directory |
–ocm-api | Override the environments in OCM API |
–ocm-api-insecure | Allow Insecure connections to OCM API |

## Install

From PyPI:

`bash $ pip install managedtenants_cli `

From source:

`bash $ python setup.py install `

## Develop

Install pre-commit hooks: `bash $ pre-commit install `

Install the development requirements:

`bash $ make develop `

Run the code checks:

`bash $ make check `

Run the tests:

`bash $ make test `

## Release

Edit the VERSION file and change the new version. Submit a pull request to master. When it is merged, create a tag and push it to app-sre/sretoolbox.

This will trigger a CI job that will publish the package on pypi.

## License

The default license of the code in this repository is [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0). That applies for most of the code here, as they were written from scratch, but exceptions exist. In any case, each module carries the corresponding licensing information.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

managedtenants_cli-1.11.0-py3-none-any.whl (52.9 kB view details)

Uploaded Python 3

File details

Details for the file managedtenants_cli-1.11.0-py3-none-any.whl.

File metadata

  • Download URL: managedtenants_cli-1.11.0-py3-none-any.whl
  • Upload date:
  • Size: 52.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.6

File hashes

Hashes for managedtenants_cli-1.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 24f1bc3d91d1cda93dfb7d81aec4a666b1ea667f712f40c2e951d0b655c66b34
MD5 1cd699a76eab8e0e0455c8f06fd370e8
BLAKE2b-256 4be7620b919cefaed56b4ee76165d25724de5f29fa3fc69060d0b46d1c24e7ab

See more details on using hashes here.

Supported by

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