Usage cli tool¶
In general, all operations act on the local configuration stored in <cwd>/<config-dir>/<organization>/<organization>.jsonnet.
A typical workflow to handle changes to an organization are as follows:
- (first time) run an initial
importof the organization - (first time) run an
applyoperation to create all resources already inherited from the default config (e.g. config repo) - (regular) fetch the latest config from the config repo using
fetch-config - (optional) make any local changes to the configuration
- (optional) run the
validateoperation to see if the configuration is syntactically and semantically correct - (optional) run the
planoperation to see which changes would be applied taking the current live configuration into account - (regular) run the
applyoperation to actually apply the changes (also runsvalidateandplan, so steps 6 & 7 are redundant) - (regular) push the local configuration to the config repo using the
push-configoperation
Note
It is not mandatory to store the configuration in the remote config repository (<org>/.otterdog by default).
It could be stored anywhere else, however the operations fetch-config and push-config expect this repository to exist
to function properly.