Skip to content

Latest commit

 

History

History
59 lines (44 loc) · 927 Bytes

File metadata and controls

59 lines (44 loc) · 927 Bytes

Bash Scripts & CLI Tools

Available in bash/bin/. Most are on PATH after setup.

Recipe Management

Load a recipe into build engine:

dcp_load_recipe <product_name>

Load a planned recipe:

dcp_load_planned_recipe <product_name>

Build Operations

Trigger a build:

dcp_trigger_build <dataset_name>

Distribute outputs:

dcp_distribute <dataset_name>

Database Operations

Run SQL query:

run_sql_command "SELECT * FROM table"

Uses BUILD_ENGINE_SERVER env var (postgres connection string).

Run SQL from file:

run_sql_file path/to/query.sql

Utilities

Export shapefile:

shp_export <options>

Load direnv (for products):

source load_direnv.sh

Usage Pattern

For ease of use, use direnv when working in products/*:

eval "$(direnv export bash)" && dcp_load_recipe pluto