akili scaffold
Generate a starter set of YAML manifest files for a new data product. This command creates a directory with all 6 required manifests pre-populated with sensible defaults and TODO markers.
akili scaffold <product_name>Arguments:
| Argument | Type | Required | Description |
|---|---|---|---|
product_name | string | yes | Name for the new product (also used as the directory name) |
The command will fail if a directory with the given name already exists.
Examples
Section titled “Examples”# Scaffold a new productakili scaffold daily-orders
# Output:# Scaffolded 'daily-orders' with 6 manifest files# daily-orders/product.yaml# daily-orders/inputs.yaml# daily-orders/output.yaml# daily-orders/quality.yaml# daily-orders/serving.yaml# daily-orders/compute.yamlGenerated Files
Section titled “Generated Files”The scaffold command creates the following files:
product.yaml
Section titled “product.yaml”name: "daily-orders"namespace: defaultarchetype: batchdescription: "TODO: describe your data product"owner: team-datadomain: default
schedule: cron: "0 6 * * *" timezone: UTCinputs.yaml
Section titled “inputs.yaml”sources: - name: primary connection: TODO resource: TODO strategy: fulloutput.yaml
Section titled “output.yaml”format: parquetpartitioning: - column: date type: dayquality.yaml
Section titled “quality.yaml”checks: - name: not_null_id type: not_null column: id severity: critical
- name: row_count_positive type: custom_sql query: "SELECT COUNT(*) > 0 AS passed FROM {table}" severity: warningserving.yaml
Section titled “serving.yaml”targets: [] # - type: lookup # table: product_lookup # - type: analyticscompute.yaml
Section titled “compute.yaml”engine: duckdbresources: memory: 2Gi cpu: "1"Typical Workflow
Section titled “Typical Workflow”- Scaffold the product:
akili scaffold my-product - Edit the manifest files with your product configuration
- Validate the manifests:
akili validate ./my-product/ - Create the product:
akili product create --name my-product --namespace default - Deploy:
akili product deploy my-product