add
Add a Spicepod to the project.
Usage​
spice add [spicerack slug] [flags]
- spicerack slug: The slug to the Spicepod on spicerack.org.
Flags​
- -h,- --helpPrint this help message
Examples​
Adding a Spicepod from Spicerack (like spiceai/quickstart):
> spice add spiceai/quickstart
Directory Structure: The command makes two main modifications to the directory structure:
- It creates the spicepodsdirectory in the project root if it does not exist.
- It adds the Spicepod defined by the Spicerack Slug in the relative path in the spicepodsdirectory. For this example, the command would create the directoriesspicepods/spiceaiandspicepods/spiceai/quickstart, instantiating a Spicepod under the latter. More generally, the Spicepod is placed underspicepods/[slug], whereslugis the Spicerack slug associated with that Spicepod.
After running the command, the directory structure looks like this:
├── spicepods/
│   ├── spiceai/
│       ├── quickstart/
│           ├── spicepod.yaml
├── spicepod.yaml
└── ...
Any other Spicepods added using spice add are placed in the spicepods directory.
spice add also creates the appropriate Spicepod for the given Spicerack slug. For this example with spiceai/quickstart, the command creates the following the Spicepod under spicepods/spiceai/quickstart:
# File: ./spicepods/spiceai/quickstart/spicepod.yaml
 version: v1beta1
 kind: Spicepod
 name: quickstart
 datasets:
   - from: s3://spiceai-demo-datasets/taxi_trips/2024/
     name: taxi_trips
     description: taxi trips in s3
     params:
       file_format: parquet
     acceleration:
       enabled: true
The add command also includes the above Spicepod as a dependency in the root spicepod.yaml, creating this file if it does not exist:
# File: ./spicepod.yaml
version: v1
kind: Spicepod
name: Spice AI quickstart
dependencies:
    - spiceai/quickstart
