Add Command
burger-api add <name...> adds hooks and plugins from the ecosystem to your project.
- Downloads the package from GitHub.
- Hooks install to
ecosystem/hooks/; plugins install toecosystem/plugins/. - Prints usage instructions after install: compose hooks in
src/hooks.ts, register plugins insrc/plugins.ts. --forcereplaces an existing install without a prompt, also with no TTY. Without it, a non-TTY run skips the package and tells you to pass--force.--localreads the local checkout instead of GitHub. See Local mode.
Examples:
burger-api add cors
burger-api add cors logger rate-limiter
burger-api add jwt-auth api-key
burger-api add cors --force
List available hooks and plugins with burger-api list. See CLI Tool and Ecosystem.
burger-api generate hook <name> / generate plugin <name> scaffold a blank local stub instead. If the name you pick already matches a real, working implementation in the ecosystem catalog, generate warns and suggests burger-api add <name> instead, though it still creates the stub either way (the check is a hint, not a block).