โก Getting Started with Yggdrasil CLI
The Yggdrasil CLI is your interface to the Nine Realms. Version 6.5 ships with 19 slash commands, realm-aware project scaffolding, and full AI agent integration.
Prerequisitesโ
- Node.js โฅ 20.0.0
- Git โฅ 2.40
- A terminal that supports ANSI colors (virtually any modern terminal)
Installationโ
Install globally via npm
npm install -g @brierstudios/yggdrasil-cli@latest
Or use with npx (no global install)
npx @brierstudios/yggdrasil-cli@latest --help
Verify the installation:
yg --version
# โ 6.5.0
First Commandsโ
Initialize a realmโ
Create a new project in a realm
yg init --realm midgard --name my-app
This scaffolds a new project within the Midgard realm (personal apps). The CLI generates:
- Project directory with realm-appropriate configuration
REGLAS_YGGDRASIL.mdโ Realm-specific development rules.yggdrasil.ymlโ Realm manifest file- Initial git repository with realm-typed branches
List available realmsโ
yg realms list
Output:
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ ๐ณ Yggdrasil โ Nine Realms โ
โโโโโโโโฌโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโค
โ # โ Realm โ Description โ
โโโโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโค
โ 1 โ Asgard โ Core Technology โ
โ 2 โ Vanaheim โ AI Agents โ
โ 3 โ Alfheim โ UI Prototypes โ
โ 4 โ Svartalfheimโ Knowledge & Docs โ
โ 5 โ Muspelheim โ Active Dev โ
โ 6 โ Niflheim โ Resources & Assets โ
โ 7 โ Helheim โ Archive โ
โ 8 โ Jotunheim โ Massive Projects โ
โ 9 โ Midgard โ Personal Apps โ
โฐโโโโโโโดโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโฏ
Check realm statusโ
yg realms status
Shows the current health and activity of each realm โ active projects, recent commits, and deployment status.
Deploy to a realmโ
yg deploy --realm asgard --env production
Configurationโ
The CLI reads from .yggdrasil.yml at your project root:
.yggdrasil.yml
realm: midgard
name: my-personal-app
version: "1.0.0"
agents:
- discord-bot
- telegram-agent
conventions:
enforce: true
auto-format: true
What's Next?โ
- ๐ Full Command Reference โ All 19 slash commands documented
- ๐ The Nine Realms โ Deep-dive into each realm's purpose and conventions
- ๐๏ธ Architecture Overview โ Understand the full Yggdrasil framework