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 add command adds a Spicepod dependency to your project by downloading it and updating spicepod.yaml.
Usage
Arguments
| Argument | Description |
|---|---|
POD_PATH | Spicepod reference (e.g., spiceai/quickstart, ./local/path, org/name@v1.0) |
Pod Path Formats
Registry Pod
Reference pods from the Spice.ai registry:Versioned Pod
Pin to a specific version:Local Path
Reference a local directory:Organization Pod
Reference pods from an organization:Behavior
Download
The command downloads the Spicepod tospicepods/<path>/ in your project directory:
Update spicepod.yaml
Adds the dependency to yourspicepod.yaml:
Create spicepod.yaml
Ifspicepod.yaml doesn’t exist, the command creates it automatically:
Examples
Add Registry Pod
Add Multiple Pods
Add Versioned Pod
Add Local Pod
Re-adding Existing Pod
If a pod is already in dependencies, it’s skipped:dependencies.
Authentication
Public Pods
No authentication required:Private Pods
Provide API key:Pod Contents
Downloaded pods contain:- spicepod.yaml - Pod configuration
- datasets/ - Dataset definitions
- models/ - Model definitions
- README.md - Documentation
Dependency Resolution
When you runspice run, the runtime:
- Loads your
spicepod.yaml - Downloads/updates dependencies from
dependencieslist - Loads datasets/models from dependencies
- Merges all configurations
Exit Codes
| Code | Description |
|---|---|
0 | Success - Pod downloaded and dependency added |
1 | Error - Invalid path, network error, or authentication failure |
Troubleshooting
Pod Not Found
Authentication Required
Network Error
Invalid spicepod.yaml
If the currentspicepod.yaml is malformed:
spice add.
Related Commands
spice init- Initialize a new Spice appspice run- Run with dependencies loadedspice connect- Connect to Spice Cloud app
Spice Registry
Browse available pods at spiceai.org/registry or search:spiceai/quickstart- Sample datasets for getting startedspiceai/bitcoin- Bitcoin blockchain dataspiceai/eth-recent-blocks- Ethereum recent blocksspiceai/taxi_trips- NYC taxi trip data
Custom Headers
For advanced use cases, headers are passed to the registry:--http-endpoint and --api-key flags for registry communication.