Skip to content

Command-Line Interface (CLI) Reference

Crisp as a CLI tool is rather quite simple and straight-forward to use. It has been kept that way intentionally and its simplicity is one of the core design principle of the tool. Hence this section of the documentation provides a detailed reference of the very list of commands available for crisp.

While this section of the documentation exists for an easier reference browsing over your preferred web browser, it is highly recommended you use help command for quick reference instead.

Reference

CommandDescription
completionGenerate the autocompletion script for the specified shell.
helpHelp about any command for crisp.
messageLint a Git commit message using crisp.
versionPrint the version and build information of crisp.

completion

The crisp completion subcommand provides the following arguments and the purposes they fulfill.

SubcommandDescription
bashGenerate the autocompletion script for Bash.
fishGenerate the autocompletion script for Fish.
powershellGenerate the autocompletion script for PowerShell.
zshGenerate the autocompletion script Zsh.

TODO: Add some examples of its usage.

help

Print a helpful usage message of a command/subcommand.

Examples:

Terminal window
crisp help version
Terminal window
crisp help message

message

Lint a Git commit message using this command in accordance to the Conventional Commits v1.0.0 specification.

Examples:

Terminal window
crisp message "chore: fix an annoying bug"
Terminal window
echo "feat: add an amazing feature" | crisp message --stdin

version

Print valuable build and version information of Crisp to STDOUT useful for debugging purposes mostly.

Examples:

Terminal window
crisp version