From 5b2446ec627aedff50440d00d275f0c333375d9f Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Mon, 8 Apr 2024 09:35:51 -0700 Subject: [PATCH] add examples of common commands --- docs/all.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/all.md b/docs/all.md index 2e98b84d1..0ad78ae2b 100644 --- a/docs/all.md +++ b/docs/all.md @@ -531,6 +531,16 @@ cf run-task CLOUD-GOV-APP --command "flask command update-templates" --name YOUR [Here's more documentation](https://docs.cloudfoundry.org/devguide/using-tasks.html) about Cloud Foundry tasks. +# Commonly run commands + +(Note: to obtain the CLOUD_GOV_APP name, run `cf apps` and find the name of the app for the tier you are targeting) + +To promote a user to platform admin: +cf run-task --command "flask command promote-user-to-platform-admin --user-email-address=" + +To update templates: +cf run-task --command "flask command update-templates" + # Commands for test loading the local dev database All commands use the `-g` or `--generate` to determine how many instances to load to the db. The `-g` or `--generate` option is required and will always defult to 1. An example: `flask command add-test-uses-to-db -g 6` will generate 6 random users and insert them into the db.