Creating Projects from Templates
Create new Dart and Flutter projects quickly using predefined templates with the globe create command, supporting various frameworks and project types.
globe create
Creates a new Dart project based on a predefined template. This can significantly speed up the initial setup for common project types.
Flags
-t,--template: Required. The name of the template to use[project-name]: Optional. The name of your new project directory. If omitted, the template name will be used
Example
# Create a new project using the 'shelf-basic' template, named 'my-api'
globe create -t shelf-basic my-api
# Create a new project using the 'flutter-web-basic' template, using the default name
globe create -t flutter-web-basic
The CLI downloads the specified template, creates a new directory with the project name (or the template name if no project name is provided), and initializes the project (e.g., runs pub get).
Available Templates
Some commonly used templates:
| Template | Description |
|---|---|
| crud_rest_api_dartfrog | Dart Frog REST API with CRUD operations |
| crud_rest_api_shelf | Dart Shelf REST API with CRUD operations |
| crud_flutter_web | Flutter Web frontend for CRUD APIs |
| notes_api_dartfrog_globedb | Notes API with Dart Frog and Globe DB |
Browse the full list at globe.dev/templates.
Related Topics
- Globe CLI Overview - Learn about all available CLI commands
- Deploying a Project - Deploy your newly created project
- Linking and Unlinking Projects - Link your project to a Globe project
