You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/08/01 21:04:53 UTC

[GitHub] [airflow] ephraimbuddy commented on a change in pull request #10078: Add migration guide for CLI commands

ephraimbuddy commented on a change in pull request #10078:
URL: https://github.com/apache/airflow/pull/10078#discussion_r464000230



##########
File path: UPDATING.md
##########
@@ -78,50 +78,76 @@ This section describes the changes that have been made, and what you need to do
 
 #### Simplification of CLI commands
 
-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`.
+The ability to manipulate users from the command line has been changed. ``airflow create_user``,  ``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
+airflow users create --username jondoe --lastname doe --firstname jon --email jdoe@apache.org --role Viewer --password test
 ```
 
 To list users:
 ```bash
-airflow users --list
+airflow users list
 ```
 
 To delete a user:
 ```bash
-airflow users --delete --username jondoe
+airflow users delete --username jondoe
 ```
 
 To add a user to a role:
 ```bash
-airflow users --add-role --username jondoe --role Public
+airflow users add-role --username jondoe --role Public
 ```
 
 To remove a user from a role:
 ```bash
-airflow users --remove-role --username jondoe --role Public
+airflow users remove-role --username jondoe --role Public
 ```
 
 #### CLI reorganization

Review comment:
       Ok. I will do that now




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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