Skip to main content

Command line wrapper for ChangeMan ZMF Rest API

Project description

zmfcli

build PyPi Version Maintainability codecov

Command line interface (cli) for ChangeMan ZMF through REST API. Using fire to create the cli.

Usage

Credentials

Credentials and url can be exported to ZMF_REST_* variables, so those do not need to be privided with each command execution.

export ZMF_REST_URL=http://httpbin.org:80/anything/zmfrest
export ZMF_REST_USER=U000000
export ZMF_REST_PWD=pa$$w0rd
zmf build "APP 000001" "['src/SRE/APP00001.sre', 'src/SRB/APP00002.srb', 'src/SRB/APP00003.srb']"

Example

Audit a package

$ zmf audit "APP 000001"

Commands

Get help for a command

$ zmf promote --help
Command Description
checkin PUT component/checkin
build PUT component/build
scratch PUT component/scratch
audit PUT package/audit
promote PUT package/promote
freeze PUT package/freeze
revert PUT package/revert
search-package GET package/search
create-package POST package
get-package Search or create if package does not exist
get-components GET component
get-load-components GET component/load
browse-component GET component/browse

Pretty print result

Some results may return JSON data, this data can be pretty printed with Python

zmf get-load-components "APP 000001" "LST" | python -m json.tool

ChangeMan ZMF Documents

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

zmfcli-0.1.19.tar.gz (7.4 MB view hashes)

Uploaded Source

Built Distribution

zmfcli-0.1.19-py3-none-any.whl (21.1 kB view hashes)

Uploaded Python 3

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