Installation
Create a new ByteContent project with your favourite package manager, connect it to PostgreSQL and open the Admin Studio.
The create-bytecontent installer and the bytecontent command described on this page are in development and not yet published to npm. Today, install ByteContent from source with the Quickstart; it takes about ten minutes.
Requirements
| Tool | Version | Notes |
|---|---|---|
| Node.js | 22 or newer (24 LTS recommended) | nodejs.org |
| Package manager | npm, pnpm, yarn or bun | Use whichever you prefer |
| PostgreSQL | 16 or newer | Local, Docker or a managed service (Neon, Supabase, RDS, …) |
ByteContent does not install PostgreSQL for you. Bring an existing server, or start one with Docker:
docker run -d --name bytecontent-db -p 5432:5432 \
-e POSTGRES_PASSWORD=postgres postgres:17Create a project
npx create-bytecontent@latest my-cmspnpm create bytecontent my-cmsyarn create bytecontent my-cmsbun create bytecontent my-cmsAnswer the setup questions
The installer asks for your database connection, like other popular CMSs do, and checks it before it continues:
? Project name my-cms
? Tenancy mode single (one organisation)
? Database host localhost
? Database port 5432
? Database name bytecontent
? Database user bytecontent
? Database password ********
? Use SSL? No
✔ Connected to PostgreSQL 17.2
✔ Wrote .env
✔ Applied database migrationsIf the database cannot be reached, the installer does not stop. It writes the project and the .env file, shows a warning, and tells you how to fix it. Run bytecontent doctor any time to check the connection again.
All settings live in one .env file in the project root. See Configuration for every option.
Start ByteContent
cd my-cms
npm run devcd my-cms
pnpm devcd my-cms
yarn devcd my-cms
bun run devOpen http://localhost:3000/setup to create the first administrator, then sign in to the Admin Studio.
The bytecontent command
| Command | What it does |
|---|---|
bytecontent dev | Start the API and Admin Studio in development mode |
bytecontent build / start | Build and run for production |
bytecontent setup | Create the first administrator from the terminal |
bytecontent migrate | Apply pending database migrations |
bytecontent doctor | Check Node.js, the database connection, migrations and settings |
bytecontent backup / restore | Back up and restore the database and media |
The schema commands (export, schema:diff, schema:push, types) are described in the CLI reference.
Next steps
- Install the CMS template to get articles, pages and authors.
- Fetch content from your website.
- Deploy to production with Docker.