Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Use cases

Helping someone as an AI assistant? Start at For AI assistants, which turns these pages into a menu of options with the exact commands.

chap-devops deploys Chap, but Chap is only one of the shapes a deployment can take. The same directory layout, the same commands and the same chap-devops up / chap-devops status / chap-devops doctor loop work for any combination of:

PieceWhat it isHow you ask for it
chap-coreChap itself: the API, its worker, Valkey and PostgreSQLon by default; --without chap-core or --only leaves it out
model serviceschapkit forecasting models from the marketplace, or your own--models ID,..., later chap-devops models enable ID
ocsOpen Climate Service: climate data over STAC and openEO--with ocs, or --only ocs
s3an S3-compatible object store for OCS to keep objects in--with s3, or --only ocs,s3
dhis2a demo or development DHIS2 with its own database--with dhis2, or --only dhis2

--with adds components to chap-core. --only names the whole set, and chap-core is part of it only if you list it. Each page below is one shape people actually deploy: the command that creates it, what you get, and what to run next. They are not exclusive: a deployment can move from one shape to another later with chap-devops components enable / disable and chap-devops models enable / disable. See Growing a deployment.

Only one piece

I wantPageFirst command
only DHIS2 (2.42, 2.43, 2.41 or the next one)A DHIS2 on its ownchap-devops init dhis --only dhis2
only OCS (with or without S3)An OCS server on its ownchap-devops init climate --only ocs,s3
only one model serviceA chapkit model service on its ownchap-devops run chapkit_simple_multistep_model
only some model servicesSeveral model services side by sidechap-devops init models --only none --models ID,ID
any number of model services, no folderAny number of model services, no folderchap-devops run ID, once per model

Chap

Evaluating with the chap CLI

Developing Chap, a model or DHIS2

More than one, and changing your mind

Which commands work where

CommandNeeds chap-coreWithout chap-core
up, down, restart, logs, status, doctor, syncnowork on whatever the deployment has
components, models enable/disable/add/exposenowork; models get a host port
models testnoruns chapkit test in the model’s container
updatenopulls the images; --chap-tag and --pin-chap-core refuse
backup create / restorenoback up the files and the volumes, and a pg_dump of the DHIS2 database when DHIS2 is a component; there is no chap-core database to dump
opennoopens whatever is enabled
models test --backtest, jobs, apiyesrefuse, naming chap-devops components enable chap-core (api --url still works)
dhis2 connectyesrefuses: there is no chap-core to connect DHIS2 to