chegi new¶
Create a new Git project from scratch with scaffolding.
Synopsis¶
chegi new [PROJECT_NAME] [OPTIONS]
Description¶
chegi new scaffolds a complete Git project in one command. It creates a new directory with Git initialized, a .gitignore, a .chegi/ project directory, README.md, an optional LICENSE, and makes an initial commit.
Run without arguments for an interactive guided flow:
chegi new
The interactive flow (default):
1. Prompts for a project name
2. Select technologies for .gitignore generation (checkbox)
3. Select a license type
4. Shows a summary and asks for confirmation before creation
Options¶
| Option | Short | Description | Default |
|---|---|---|---|
--path |
-p |
Parent directory to create the project in | . |
--template |
-t |
Predefined project template (python, node, go, rust, ...) | — |
--license |
-l |
License type (mit, apache, gpl3) | — |
--github |
-g |
Create a GitHub repository and push to it | false |
--private |
Make the GitHub repository private (requires --github) |
false |
|
--no-readme |
Skip README.md generation |
false |
|
--no-gitignore |
Skip .gitignore generation |
false |
|
--yes |
-y |
Non-interactive mode — use defaults for all prompts | false |
Arguments¶
| Argument | Description |
|---|---|
PROJECT_NAME |
Name of the project (creates a new directory with this name) |
Examples¶
Interactive — prompts for project name, technologies, and license:
chegi new
Create a Python project:
chegi new my-app -t python
Create and push to a new GitHub repository:
chegi new my-app --github
chegi new my-app --github --private
Create with specific options (non-interactive):
chegi new my-app --license mit --no-readme -y
Create in a specific parent directory:
chegi new my-app -p ~/projects
Generated Files¶
| File | Purpose |
|---|---|
.git/ |
Git repository (via git init) |
.gitignore |
Technology-specific ignore rules |
.chegi/ |
Project configuration directory |
README.md |
Project readme with getting started guide |
LICENSE |
Optional license file (MIT, Apache 2.0, or GPL v3) |
| Initial commit | chore(new): initial project scaffold via cheGi 🐆 |