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

Update the VERSION file to reflect the new version. Submit a pull request and merge it to main. Once it is merged, you need to create a new tag and a new release. You can do this by clicking “Draft a new release” on the Releases page and then creating a new tag instead of selecting one from the dropdown. Please also use the option to “Generate release notes”. After that, a CI job will be triggered that will publish the package on PyPI.

Alternatively, you can create a new tag by running: ` git checkout main && git pull upstream main git tag X.Y.Z git push upstream X.Y.Z ` and then draft the release in the web UI.

## 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.47.0-py3-none-any.whl (71.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for managedtenants_cli-1.47.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4f80facf60b7cf2f37d0146ee55ceffb43c0c1cfc039f5aa84a9a7f082f4b393
MD5 ca692654b6a35510f2a2ee322afe101c
BLAKE2b-256 8ea919a8cbcd785f67fc3c9034d51eaf685a5eaa06b6ce8d4bd37a2e2ac4b06a

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