Requirements
The CLI works with Node.js 18 or newer and verifies this at runtime. A .nvmrc
file specifies the expected Node version. If Node 18 isn’t installed, run nvm install
and nvm use
. We recommend pnpm 9.15.3 or newer. You can invoke the CLI with npx
or install it globally using pnpm or npm.
add
Use the add
command to install a hook along with its dependencies.
Options
Usage: guara-cli add [options] [hooks...]
add a hook to your project
Arguments:
hooks the hooks to add or a url to the hook.
Options:
-y, --yes skip confirmation prompt. (default: false)
-o, --overwrite overwrite existing files. (default: false)
-c, --cwd <cwd> the working directory. defaults to the current directory. (default: "/Users/shadcn/Desktop")
-a, --all add all available hooks (default: false)
-p, --path <path> the path to add the hook to.
-s, --silent mute output. (default: false)
--src-dir use the src directory when creating a new project. (default: false)
--no-src-dir do not use the src directory when creating a new project.
-h, --help display help for command