The best tool you'll ever find to build your Promises!
To build the CLI, run:
make build
The binary will be available at ./bin/kratix
.
To bootstrap the Promise, you can use kratix init promise
command:
kratix init promise PROMISE-NAME --group API-GROUP --kind API-KIND [--version] [--plural] [--split]
To update the Promise API, you can use the kratix update api
command:
kratix update api --property PROPERTY-NAME:string -p PROPERTY-NAME:number [-p PROPERTY-NAME-] [--kind]
To add workflow containers, you can use the kratix add container
command:
kratix add container WORKFLOW/ACTION/PIPELINENAME --image CONTAINER-IMAGE [--name]
To add Promise dependencies, you can run the kratix update dependencies dependencies
command:
kratix update dependencies DEPENDENCIES-DIRECTORY/
If you initialized the Promise by providing --split
flag in kratix init promise
command, run
the kratix build promise
command to combine the Promise api, workflow, and dependencies:
kratix build promise PROMISE-NAME
To see helpful messages about using the cli, you can run:
kratix help
kratix help init
kratix help update api
kratix add container --help
To run the tests, run:
make test