A beautiful CLI tool to generate Goravel projects from a template with custom module names.
- 🎨 Beautiful colored output with emojis
- 🚀 Quick project generation from template
- 🌐 Downloads template - Always fetches the latest template from GitHub
- 🔄 Dynamic module detection - Automatically detects and replaces the old module name
- 📁 Preserves directory structure and
go.moddependencies - ✨ User-friendly interface
To install the latest version:
go install github.com/mmycin/Goravel-Blueprint/cmd/goraveltpl@latestSimply run the goraveltpl command and you'll be prompted interactively:
goraveltpl newThe CLI will prompt you for:
- Project name: The name of your project folder
- Module Name: The Go module path (e.g.,
github.com/username/my-project)
- Go 1.21 or higher (for building)
- Internet connection (to download the template)
- Creates a new project folder with the specified project name
- Downloads the latest
goravel-template.zipfrom GitHub - Extracts the template archive into the new project
- Detects the module name used in the template's
go.mod - Replaces all occurrences of the old module name with your new module name in all files
- Preserves the original
go.mod(with updated module name) and its dependencies - Preserves file permissions and directory structure
$ goraveltpl new
════════════════════════════════════════════════════════
🚀 Creating New Goravel Project
════════════════════════════════════════════════════════
Enter Project name > myapp
Enter Module Name > github.com/john/myapp
ℹ️ Project Name: myapp
ℹ️ Module Name: github.com/john/myapp
ℹ️ Template: https://github.com/mmycin/Goravel-Blueprint/releases/download/Template/goravel-template.zip
ℹ️ Output: myapp
ℹ️ Downloading template...
✅ Template downloaded successfully
ℹ️ Detected template module: github.com/mmycin/goravel_test
✓ Created file: go.mod
✓ Created file: main.go
...
════════════════════════════════════════════════════════
✅ Project 'myapp' created successfully!
Next steps:
cd myapp
go mod tidy
go run .
════════════════════════════════════════════════════════