Note: this is still under development! Feedback is appreciated.
To use the generator, setup the following:
- Under
./config
, create alocal.json
file and copy the contents oflocal.template.json
. Fill in the values. - Run
npm install
- Run
bash create_cd_cli.sh ${target_directory}
, wheretarget_directory
is a path where you want the CLI files to be generated. The CLI files will be generated in the target directory, under the foldercd-cli
. Example:bash create_cd_cli.sh "/Users/omar.albastami/Documents/GitHub/testing-repo"
To test out the commands:
- Navigate to the
cd-cli
folder. - Using a terminal, run
go run main.go <command>
Example:omar.albastami@Omars-MacBook-Pro cd-cli % go run main.go -h NAME: continuous-delivery - Commands to manage continuous-delivery. USAGE: ibmcloud continuous-delivery [command] [options] COMMANDS: cd-toolchain, ct Manage CD Toolchain. OPTIONS: -h, --help Show help -v, --version version for continuous-delivery Use "ibmcloud continuous-delivery service-command --help" for more information about a command.