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
- Edit
.zyvor/.env— set your real PostgreSQL credentials and database name. The database doesn’t need to exist yet. - Edit
.zyvor/schema.zyvor. - 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.