grekt add-target
Add new sync targets interactively.
bash
grekt add-targetBehavior
Opens an interactive prompt to add AI tools to sync with. Already configured targets are shown as disabled ("already added"). Only new targets can be selected.
To remove targets, use grekt remove-target.
Built-in targets
| Target | Entry Point |
|---|---|
claude | .claude/CLAUDE.md |
cursor | .cursorrules |
opencode | .opencode/ |
Custom targets
Select "Other (custom)" to configure a custom target:
- Internal ID - kebab-case identifier for grekt config
- Display name - shown in CLI output
- Context entry point - main file for the AI tool
- Paths - optional custom paths per category
Custom targets are saved to grekt.yaml:
yaml
customTargets:
my-tool:
name: "My Tool"
contextEntryPoint: ".my-tool/rules.md"
paths:
agents: ".my-tool/agents"
skills: ".my-tool/skills"Examples
bash
grekt add-target # Interactive selection
grekt sync # Apply to selected targetsNotes
- Requires initialized project (
grekt init) - Updates
grekt.yamlwith selected targets - Run
grekt syncafter to apply changes