grekt init
Initialize grekt in a project. Runs an interactive onboarding wizard that guides you through the full setup.
bash
grekt initOptions
| Option | Description |
|---|---|
-y, --yes | Skip prompts, use defaults (auto-detects tools, enables remote search) |
--targets <targets> | Comma-separated list of targets, skips target selection prompt |
What it does
The init wizard walks you through:
- Auto-detect AI tools. Scans for
.claude/,.cursor/, and other tool directories. Detected tools are pre-checked in the selection prompt - Target selection. Choose which AI tools to sync artifacts to
- Remote search. Enable public registry search for artifact discovery
- Self-hosted registries. Configure GitHub/GitLab registries with scope, provider, and prefix (monorepo mode)
- Dashboard. Connect to a grekt dashboard instance
- File creation. Creates all project files and runs plugin setup
- Summary. Shows created files, missing token warnings, and offers to install
@grekt/tools
What it creates
project/
├── .grekt/
│ ├── artifacts/ # Downloaded artifacts
│ ├── index # Artifact index for AI tools
│ └── config.yaml # Local config (registries, tokens, dashboard) - gitignored
├── grekt.yaml # Project configuration
└── grekt.lock # Lockfile (created on first add).grekt/config.yaml is only created when registries or dashboard are configured.
Examples
bash
# Interactive wizard
grekt init
# Auto-detect and use defaults
grekt init --yes
# Skip target prompt
grekt init --targets claude,cursorNotes
- Won't overwrite existing files. Exits early if already initialized
- If a
.gitignoreexists,.grektwill be added automatically. If no.gitignoreis found, a warning will suggest adding it manually - Change config later with
grekt config - Configure registries later with
grekt config registry set - Configure dashboard later with
grekt dashboard setup