grekt install
Install artifacts from lockfile (strict mode).
bash
grekt install
grekt iOptions
| Option | Description |
|---|---|
--force | Reinstall even if already present |
Description
Installs all artifacts from grekt.lock with integrity verification. Use after cloning a project.
Unlike grekt add, this command:
- Reads from lockfile (not grekt.yaml)
- Verifies SHA checksums
- Fails if checksums don't match
Examples
bash
# After cloning
git clone <repo>
cd <repo>
grekt install
# Reinstall all
grekt install --forceIntegrity verification
Each file's SHA256 hash is verified against the lockfile:
Error: Integrity check failed for code-reviewer
missing: skills/helper.md
modified: agent.mdAuto check
When options.autoCheck is enabled in grekt.yaml, an integrity check runs automatically after installing:
yaml
options:
autoCheck: true✓ Installed @scope/my-artifact@1.0.0
✓ Installed @scope/git-flow@2.1.0
Integrity check:
✓ All 2 artifact(s) verifiedNotes
- Requires
grekt.lock(rungrekt addfirst if missing) - Automatically syncs to targets after installing (same as
grekt addandgrekt upgrade) - For private repos, set
GITHUB_TOKENorGITLAB_TOKEN