This section outlines best practices for the Knative developer experience, is a reference for Knative CLI implementation, and a reference for Knative client libraries.
The goals of the Knative Client are to:
- Follow the Knative serving and eventing APIs
- Be scriptable to allow users to create different Knative workflows
- Expose useful Golang packages to allow integration into other programs or CLIs or plugins
- Use consistent verbs, nouns, and flags for various commands
- Be easily extended via a plugin mechanism (similar to
kubectl
) to allow for experimentation and customization
Start with the user's guide to learn more. You can read about common use cases, get detailed documentation on each command, and learn how to extend the kn
CLI. For more information, access the following links:
- User's guide
- Basic workflows (use cases)
- Generated documentation
Bash auto completion:
Run the following command to enable BASH auto-completion:
$ source <(kn completion)
Use TAB to list available sub-commands:
$ kn <TAB>
completion revision service version
$ kn revision <TAB>
describe get
If you would like to contribute, please see CONTRIBUTING for more information.
To build kn
, see our Development guide.