Skip to content

Commit

Permalink
Merge pull request #906 from GSA/notify-api-880
Browse files Browse the repository at this point in the history
add examples of common commands
  • Loading branch information
ccostino authored Apr 8, 2024
2 parents d03be4b + 5b2446e commit 6fb4538
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/all.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <CLOUD_GOV_APP from cf apps see above> --command "flask command promote-user-to-platform-admin --user-email-address=<user email address>"

To update templates:
cf run-task <CLOUD_GOV_APP from cf apps see above> --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.
Expand Down

0 comments on commit 6fb4538

Please sign in to comment.