Files
cell/scripts/man/init.man

54 lines
1.6 KiB
Groff

CELL-INIT(1) Cell Manual CELL-INIT(1)
NAME
cell init - Initialize a new Cell project
SYNOPSIS
cell init
DESCRIPTION
The init command creates the .cell/ directory structure for a new
Cell project. This includes all necessary subdirectories and a
default cell.toml configuration file.
If a .cell/ directory already exists, init will create any missing
subdirectories but will not overwrite existing files.
DIRECTORY STRUCTURE
Creates the following structure:
.cell/
├── cell.toml Project manifest with default configuration
├── lock.toml Empty lock file for dependency checksums
├── modules/ Directory for vendored source modules
├── build/ Directory for compiled bytecode modules
└── patches/ Directory for local dependency patches
DEFAULT CONFIGURATION
The generated cell.toml contains:
module = "my-game"
engine = "mist/prosperon@v0.9.3"
entrypoint = "main.js"
dependencies = {}
aliases = {}
replace = {}
patches = {}
[mods]
enabled = []
EXAMPLES
Initialize a new Cell project:
cell init
This will create the .cell/ directory if it doesn't exist and
populate it with the default structure.
NOTES
- The init command is idempotent - running it multiple times is safe
- Existing files are never overwritten
- Edit .cell/cell.toml after initialization to configure your project
SEE ALSO
cell(1), cell-get(1)