Installation - project-ncl/pnc-cli GitHub Wiki
#Binary installation#
- Ensure python is installed on the system (Fedora: dnf install python). The default python package for fedora contains the 'pip' command, which allows installation of python packages from https://pypi.python.org/pypi If the 'pip' command is missing, it will need to be installed separately.
- Install pnc-cli:
pip install pnc-cli
- PNC-CLI is now ready to be used through
pnc <command>
#Initial Configuration# Upon first execution of pnc-cli, the user will be prompted for a username and password. These credentials will need to exist on the PNC instance's keycloak server.
[[thauser] [16:01:52] pnc-cli]$pnc list-build-records
Username: pnc-admin
Password:
2016-05-11 16:02:03,438 WARNING New config file written to ~/.config/pnc-cli/pnc-cli.conf. Configure pncUrl and keycloakUrl values.
After entering the credentials, a new configuration file will be created in ~/.config/pnc-cli/pnc-cli.conf. It will initially look something like this:
[PNC]
pncurl = http://localhost:8080/
keycloakurl =
keycloakrealm = pncredhat
keycloakclientid = pncdirect
username = pnc-admin
password = testme
The keycloak realm and keycloak client id fields may need additional configuration as well, depending on how the keycloak server is configured. Once all fields are correctly filled in, PNC-CLI is ready for action!