Skip to content
This repository was archived by the owner on Nov 19, 2021. It is now read-only.

Configuration File

Tom Hauser edited this page Mar 2, 2016 · 1 revision

Upon first execution, PNC-CLI will prompt the user for their PNC username / password. The prompt appears like this:

[root@845dc7ebe62c /]# pnc
Username: pnc-admin
Password: 
2016-03-02 17:13:17,862 WARNING New config file written to ~/.config/pnc-cli/pnc-cli.conf. Configure pncUrl and keycloakUrl values.

The configuration file will be created in ~/.config/pnc-cli/pnc-cli.conf. The URLs to both PNC and the Keycloak auth server will need to be manually configured.

An example of a correctly configured file is here:

[PNC]
pncurl = http://localhost:8080
keycloakurl = https://pnc-instance.mycompany.com
keycloakrealm = pnckeycloakrealm
keycloakclientid = keycloakclient
username = pnc-admin
password = testme

Once the relevant fields have been configured, PNC-CLI is ready to use.

Clone this wiki locally