zooid init
Creates a zooid.json file with server identity and a .zooid/workforce.json file for channel and role definitions. Run this before zooid deploy.
npx zooid init [options]Options
Section titled “Options”| Option | Description |
|---|---|
--use <url> | Include a template from a GitHub URL |
Examples
Section titled “Examples”# Interactive setup — prompts for server name, description, etc.npx zooid init
# Initialize with a templatenpx zooid init --use https://github.com/zooid-ai/templates/tree/master/chat
# Same thing, two stepsnpx zooid initnpx zooid use https://github.com/zooid-ai/templates/tree/master/chatWith --use
Section titled “With --use”When using --use, the CLI runs zooid init then zooid use in sequence:
- Creates
zooid.jsonand.zooid/workforce.json(the normal init flow). - Fetches the template’s
.zooid/directory into.zooid/<slug>/. - Adds the template to
includein workforce.json.
See zooid use for details on how templates are fetched and included.
- Creates
zooid.jsonin the current directory and.zooid/workforce.json. - If
zooid.jsonalready exists with a server URL (e.g. fromzooid login), the interactive prompts are skipped. - Both files should be committed to version control.