airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] XD-DENG commented on a change in pull request #3971: [AIRFLOW-3130] Add CLI docs for users command
Date Fri, 28 Sep 2018 15:54:28 GMT
XD-DENG 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_r221300151
 
 

 ##########
 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 jdoe@apache.org
--role Viewer --password test
+```
+
+To list users:
+```bash
+airflow users --list
+```
+
+To delete a user:
+```bash
+airflow users --username jondoe
 
 Review comment:
   Should this be `airflow users --delete jondoe`?

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message