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
bash
nsyte initOptions
This command has no per-command options. See global options.
Examples
Basic initialization:
bash
nsyte initConfiguration
The initialization process creates a .nsite/config.json file with default settings:
json
{
"bunkerPubkey": "",
"relays": [],
"servers": [],
"profile": {
"name": "",
"about": ""
}
}Project Structure
After initialization, your project will have this structure:
.
└── .nsite/
└── config.jsoninit only creates the .nsite/ directory and config.json. Add a .nsyte-ignore file by hand if you need to exclude files from deployment.
Next Steps
After initialization:
- Configure your relays and servers
- Set up your authentication
- Start building your site
Inherits global options. See global options.