Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

zyvor init

Scaffolds a Zyvor project in the current directory.

zyvor init

What it creates

.zyvor/
├── schema.zyvor    ← template with a User model
├── .env            ← DATABASE_URL=postgres://postgres:admin@localhost/zyvor_gen
├── config.toml     ← [database] url = "..."
├── .gitignore      ← contains .env
├── generated/      ← empty, CLI fills it
└── migrations/     ← empty, CLI fills it

Safe to re-run

If .zyvor/ already exists:

.zyvor/ already exists. Skipping init.

Nothing is overwritten. Your schema and migrations are never at risk.

Immediately after

  1. Edit .zyvor/.env — set your real PostgreSQL credentials and database name. The database doesn’t need to exist yet.
  2. Edit .zyvor/schema.zyvor.
  3. Run zyvor dev.

About those credentials

The template ships a placeholder password (admin). Change it. .zyvor/.gitignore already excludes .env, so your real credentials won’t be committed — but only if you leave that file alone.

config.toml is not gitignored. If you put a real password there, you’ll commit it. Prefer .env for secrets.