Overview
Theinit
command sets up NotCMS in your project with interactive configuration.
What it does
- Creates
notcms.config.json
configuration file - Checks environment variables in
.env
Options
Option | Description | Default |
---|---|---|
--env | Environment file path | [".env", ".env.local", ".dev.vars"] |
Interactive Setup
The command will guide you through:1. Configuration
Examples
Basic initialization
Specify environment file path
Use this if you already have.env
configured:
Troubleshooting
Next Steps
After initialization, you can:- Start using the NotCMS client in your code
- Run
npx notcms-kit pull
to update your schema