zmfcli
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