Overview
The gk new command creates a new GemKit project by downloading and extracting the latest starter kit from GitHub.
Usage
bash
Arguments
| Argument | Description |
|---|---|
<name> | Name of the new project directory to create |
What It Does
- Validates - Checks if directory already exists
- Downloads - Fetches latest starter kit release from GitHub
- Extracts - Unpacks the starter kit to your new project directory
- Reports - Shows next steps to get started
Example
bash
After Creating a Project
Navigate to your new project and initialize GemKit:
bash
This sets up the .gemini/ directory with:
- Agents (code-executor, planner, researcher, tester)
- Commands (/cook, /code, /test)
- Extensions (skills)
- Hooks
Error Handling
The command will exit with an error if:
- Directory with the specified name already exists
- Cannot fetch the latest starter kit from GitHub
- Archive extraction fails
Difference from gk init
| Command | Purpose |
|---|---|
gk new <name> | Create a new project directory with starter kit |
gk init | Initialize GemKit in an existing project |
Use gk new when starting a fresh project.
Use gk init when adding GemKit to an existing codebase.