A fast CLI tool to scaffold projects from template repositories.
pnpx lfgo <preset|repo> <project-name>pnpx lfgo react my-awesome-appYou can also specify any GitHub repository:
# Using username/repo format
pnpx lfgo username/repo-name my-project
# Using full URL
pnpx lfgo https://github.com/username/repo-name my-projectIf the value doesn't match a known preset, the tool will ask you to confirm that you want to use it as a GitHub repo.
This will:
- Clone the template repository (with
--depth 1for efficiency) - Create a fresh git repository
- Update the
package.jsonwith your project name - Create an initial commit
- Install dependencies with
pnpm - Display next steps
react- React + TypeScript + Vite Template
No installation needed! Just run:
pnpx lfgo react my-projectpnpm add -g lfgoThen use it anywhere:
lfgo react my-projectTo add a new preset, edit bin/lfgo.js and add an entry to the PRESETS object:
const PRESETS = {
react: {
repo: "https://github.com/coreyward/quick-start-react-template",
name: "React + TypeScript + Vite Template",
},
// Add your new preset here
vue: {
repo: "https://github.com/yourusername/vue-template",
name: "Vue 3 Template",
},
};- Node.js >= 18
- Git
- pnpm
MIT