Skip to content

CLI reference

grekt provides a command-line interface for managing AI artifacts.

Commands

Authentication

Artifact Management

Registry Operations

Sync & Diagnostics

Authoring

Worktree

Global options

OptionDescription
-h, --helpShow help for command
-V, --versionShow version number

Quick reference

bash
# Artifacts
grekt init                       # Initialize
grekt add @author/artifact       # Add from registry
grekt add @author/artifact@1.0.0 # Add specific version
grekt add github:user/repo       # Add from GitHub
grekt add gitlab:user/repo       # Add from GitLab
grekt install                    # Install from lockfile
grekt sync --dry-run             # Preview sync
grekt sync                       # Apply
grekt list                       # List artifacts
grekt check                      # Verify integrity
grekt remove artifact            # Remove

# Registry
grekt publish ./artifact         # Publish
grekt info @author/artifact      # Show artifact info
grekt versions @author/artifact  # List versions
grekt outdated                   # Check for updates
grekt upgrade                    # Upgrade all outdated
grekt upgrade @author/artifact   # Upgrade specific

# Targets & Config
grekt add-target                 # Add AI targets
grekt remove-target              # Remove AI targets
grekt config registry set @scope # Configure registry

# Authoring
grekt pack ./artifact            # Create tarball
grekt version --dry-run          # Preview version bumps
grekt version                    # Apply version bumps

# Worktree
grekt worktree sync              # Sync .grekt/ to a worktree
grekt worktree sync --force      # Overwrite without confirmation