Builder CLI
When working on a Bingo template repository, it can be useful to quickly preview file changes locally.
Bingo provides a bingo CLI that directly runs a template.
For example, running a ./template.js file:
npx bingo ./template.jspnpx bingo ./template.jsyarn dlx bingo ./template.js┌ ✨ bingo@0.5.0 ✨││ Learn more on: https://create.bingo/build││ Running with mode --setup for a new repository.The path passed to bingo must resolve to a file that export defaults a Bingo template.
See:
- Concepts > Templates: for more information on what templates are
- APIs >
createTemplate: for documentation on how to create a template
Common Flags
bingo supports all the flags under CLI > Common Flags.
For example, running a local ./template.js file with a custom --directory:
npx bingo ./template.js --directory my-fancy-projectpnpx bingo ./template.js --directory my-fancy-projectyarn dlx bingo ./template.js --directory my-fancy-projectTemplate Flags
bingo additionally supports any CLI flags added in by the template.
For example, if a template defines a title option, --title will be type string:
npx bingo ./template.js --title 'My New App'pnpx bingo ./template.js --title 'My New App'yarn dlx bingo ./template.js --title 'My New App'Any required options that are not provided will be prompted for interactively.
Made with 💝 in Boston by
Josh Goldberg.