How do I add a new change reason?

Table of Contents

Add a new change reason. See the CLI inventory for sibling recipes.

Question

How do I add a new change reason using ores.cli?

Answer

export ORES_CLI_DB_PASSWORD
./ores.cli dq change-reasons add ${db_args} ${log_args} \
  --code "test.reason" \
  --description "Test change reason for CLI demonstration" \
  --category-code "operational" \
  --applies-to-amend 1 \
  --applies-to-delete 0 \
  --requires-commentary 1 \
  --display-order 100 \
  --recorded-by admin \
  --change-commentary "Adding test change reason via CLI"

Emacs 29.3 (Org mode 9.6.15)