kaxil commented on a change in pull request #3971: [AIRFLOW-3130] Add CLI docs 
for users command
URL: https://github.com/apache/incubator-airflow/pull/3971#discussion_r221314021
 
 

 ##########
 File path: UPDATING.md
 ##########
 @@ -31,6 +31,27 @@ some bugs.
 The new `sync_parallelism` config option will control how many processes 
CeleryExecutor will use to
 fetch celery task state in parallel. Default value is max(1, number of cores - 
1)
 
+### CLI Changes
+
+The ability to manipulate users from the command line has been changed. 
'airflow create_user' and 'airflow delete_user' and 'airflow list_users' has 
been grouped to a single command `airflow users` with optional flags 
`--create`, `--list` and `--delete`.
+
+Example Usage:
+
+To create a new user:
+```bash
+airflow users --create --username jondoe --lastname doe --firstname jon 
--email [email protected] --role Viewer --password test
+```
+
+To list users:
+```bash
+airflow users --list
+```
+
+To delete a user:
+```bash
+airflow users --username jondoe
 
 Review comment:
   No, it should be neither `airflow users --delete --username jondoe`. Have 
updated it in the master :) Thanks for catching this docs issues.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to