Skip to main content

Prerequisites

You need:
  • Node.js 18+ (nodejs.org)
  • Git 2.30+ (probably already installed)
Check:

Getting Started

No installation needed - use npx to run Edgit:
That’s it. You’re ready to version components.

Initialize in Your Repo

This creates .edgit/components.json:
Commit it:

Optional: AI-Powered Commits

Want AI to generate your commit messages? Add an OpenAI API key:
Test it:

Troubleshooting

Your PATH doesn’t include npm global bin directory.Fix:
Don’t have permission to install globally.Fix (recommended): Use npx instead of global install:
Or use nvm to manage Node.js:
API key isn’t set or is invalid.Check:
Test the key:
If that fails, your key is invalid. Get a new one at platform.openai.com.

Next Steps

Basic Usage

Learn the essential commands

Versioning Guide

Master component and agent versioning