hkcl
v0.33.23
Published
anycli: create your own CLI
Downloads
6
Readme
anycli
anycli: create your own CLI
Useful Repos
Plugins
- @anycli/version -
mycli -v|--version|version
. Show the current version. - @anycli/not-found - Display a friendly "did you mean" message if a command is not found.
- @anycli/plugins - Allow users to add plugins to extend your CLI.
- @anycli/autoupdate - Add autoupdate support to the CLI.
- @anycli/autocomplete - Add bash/zsh autocomplete.
Building your own plugin
Writing code for plugins is essentially the same as writing within a CLI. They can export 3 different types: commands, hooks, and other plugins.
Run yarn create anycli plugin mynewplugin
to create a plugin a new directory. This will come with a sample command and hook