init¶
Initialize a new nsyte site in the current directory.
Description¶
The init command creates a new nsyte site by:
- Creating the
.nsitedirectory - Generating a default configuration file
- Setting up initial project structure
Usage¶
Options¶
--force: Overwrite existing configuration--template: Use a specific template--no-git: Skip git initialization
Examples¶
Basic initialization:
Force initialization:
Use template:
Configuration¶
The initialization process creates a .nsite/config.json file with default settings:
Project Structure¶
After initialization, your project will have this structure:
Next Steps¶
After initialization:
- Configure your relays and servers
- Set up your authentication
- Start building your site