r39132 closed pull request #3971: [AIRFLOW-3130] Add CLI docs for users command
URL: https://github.com/apache/incubator-airflow/pull/3971
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/UPDATING.md b/UPDATING.md
index 93ea069838..110c488197 100644
--- a/UPDATING.md
+++ b/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
+```
+
 ## Airflow 1.10
 
 Installation and upgrading requires setting `SLUGIFY_USES_TEXT_UNIDECODE=yes` 
in your environment or
diff --git a/docs/security.rst b/docs/security.rst
index 89b5605daa..23f7cc0303 100644
--- a/docs/security.rst
+++ b/docs/security.rst
@@ -19,7 +19,7 @@ Password
 .. note::
 
    This is for flask-admin based web UI only. If you are using FAB-based web 
UI with RBAC feature,
-   please use command line interface ``create_user`` to create accounts, or do 
that in the FAB-based UI itself.
+   please use command line interface ``airflow users --create`` to create 
accounts, or do that in the FAB-based UI itself.
 
 One of the simplest mechanisms for authentication is requiring users to 
specify a password before logging in.
 Password authentication requires the used of the ``password`` subpackage in 
your requirements file. Password hashing


 

----------------------------------------------------------------
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