Skip to main content

โšก 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?โ€‹