Boilerplate is a CLI tool that lets developers save and reuse file or project templates, including automated setup commands, to quickly generate code structures and eliminate repetitive work.
Find other templates and share your templates at bp-hub
Refer the official documentation for boilerplate at bp-hub/docs
brew install ukhirani/bp/bpcurl -fsSL https://raw.githubusercontent.com/ukhirani/boilerplate/main/install.sh | shwinget install Ukhirani.Bpgo install github.com/ukhirani/boilerplate/bp@latestbp --versionbp --help
bp helpbp listbp gen <template>
bp gen <template> <custom-name> # Custom filename (files only)
bp gen <template> --dir <relative-target-dir> # Specify relative target directorybp add <file-or-directory> --name <template-name>bp preview <template>
bp preview <template> --config # Show template configuration including pre and post commands.bp config <template> # This will open up the config of the template your the default editor (default : vscode)
bp config <template> -e OR --editor <editor-name> # This is to override the default editor for opening configsbp clip <template>bp clone <username>/<template> --alias <alias-name> # Here, alias is what you want to call this template in your systembp work <template> # By default runs pre and post commands both (sequentially)
bp work <template> --pre # Runs only the pre commands
bp work <template> --post # Runs only the post commands