CPHalo CLI
A command line tool for accessing CloudPassage Halo API
Usage
Install
go get gitlab.com/kiwicom/cphalo-cli
Following command will ask you about credentials and save them to ~.cphalo.yaml
file.
cphalo-cli config
Headless usage
cphalo-cli config --key=my-key --secret=my-secret
You can also change the path of config:
cphalo-cli config --path=/some/other/config.yaml
Authenticating
CPHalo CLI tools supports 3 different types of authentication in this order:
Via flag
cphalo-cli --key=my-key --secret=my-secret
Via ENV
export CPHALO_APPLICATION_KEY=key
export CPHALO_APPLICATION_SECRET=secret
Via config file
It checks for presence of config file in home dir and in current directory.
application_key: key
application_secret: secret
Supported command
To check which commands are support just use help
:
cphalo-cli -h
Docker usage
docker run --rm -it \
--env CPHALO_APPLICATION_KEY=key \
--env CPHALO_APPLICATION_SECRET=secret \
registry.gitlab.com/kiwicom/cphalo-cli