Databases, files and secrets
A PostgreSQL database, file storage and encrypted variables – each one command away.
Database
vektor db create --app my-appYour app gets DATABASE_URL automatically. Every app has its own database and user, backed up every 24 hours; restore with vektor db restore. Run SQL with vektor db sql.
Files
Uploads such as images and PDFs belong in Vektor’s file storage, not on the app’s disk:
await fetch(`${process.env.VEKTOR_FILES_URL}/invoices/42.pdf`, {
method: 'PUT',
headers: { authorization: `Bearer ${process.env.VEKTOR_FILES_KEY}` },
body: pdfBytes,
});Environment variables
vektor env set STRIPE_KEY=sk_live_… --app my-app
vektor env pull --app my-app # to a local .env- Values are encrypted; every change is a version you can roll back to.
- Organizations can share variables between apps and lock them.
- Enterprise organizations can encrypt them with their own AWS KMS or HashiCorp Vault key.