cphalo-cli

command module
Version: v0.0.0-...-e97cde7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2019 License: MIT Imports: 1 Imported by: 0

README

CPHalo CLI

A command line tool for accessing CloudPassage Halo API

coverage report pipeline status mit license go report go doc contribute

Usage

Install
go get gitlab.com/kiwicom/cphalo-cli
Configure credentials

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

Documentation

The Go Gopher

There is no documentation for this package.

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL