TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/spiceai/spiceai/llms.txt
Use this file to discover all available pages before exploring further.
spice init command creates a new Spice app by generating a spicepod.yaml configuration file.
Usage
Arguments
| Argument | Default | Description |
|---|---|---|
NAME | . (current directory) | Name of the Spice app or directory to create |
Behavior
Interactive Mode (Default)
When run without arguments or with.:
Named Mode
When run with a name argument:- Creates a directory named
my_app - Generates
my_app/spicepod.yamlwith the specified name
Generated File
The command creates a minimalspicepod.yaml file:
Examples
Initialize in Current Directory
Initialize with Custom Name
Override Existing File
Ifspicepod.yaml already exists:
n cancels the operation without changes.
Next Steps
After initialization:-
Configure datasets - Add data sources to your Spicepod:
-
Add dependencies - Include community Spicepods:
-
Start the runtime - Launch Spice with your configuration:
Exit Codes
| Code | Description |
|---|---|
0 | Success - spicepod.yaml created or user cancelled |
1 | Error - Failed to create directory or write file |
Related Commands
spice run- Start the Spice runtimespice dataset configure- Configure a dataset interactivelyspice add- Add Spicepod dependencies
Configuration File Format
The generatedspicepod.yaml uses the Spicepod v2 format. You can manually add: