Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AscarGb authored Nov 20, 2018
1 parent 44384f9 commit 4c378fa
Showing 1 changed file with 84 additions and 0 deletions.
84 changes: 84 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,87 @@ AspNetCore Identity simple console manager
Manage users, roles and claims

Supported databases: My SQl, Ms SQL

## Commands:

### add-user
Add new user, roles, claims
```
cmanager add-user Tom --claims Name:Tomas "City:Big City" --user-phone +79171234567 --password 123!@#qweQWE --role-names User
Admin NewRole
```
-r, --role-names - Required. Roles

-p, --password - Required. Password

-m, --user-email - Email

-h, --user-phone - Phone

-c, --claims - Claims

value pos. 0 - Required. User name

### update-user
```
cmanager update-user Tom --claims Name:Bobby "City:New York" --user-phone +7917999988 --new-name Bob --password
NewPassword!@#123 --role-names User Admin NewRole
```
-r, --role-names - New Roles

-p, --password - New Password

-n, --new-name - New user name

-m, --user-email - New Email

-h, --user-phone - New Phone

-c, --claims - New Claims

value pos. 0 - Required. User name

### find-user
```
cmanager find-user [UserName]
```
value pos. 0 - User name

### delete-user
```
cmanager delete-user Tom
```
value pos. 0 - Required. User name

### create-role
```
cmanager create-role NewRoleName
```
value pos. 0 - Required. Role name

### all-roles
Get all roles
```
cmanager all-roles
```

### add-role
Add role to user
```
cmanager add-role Tom Role1 Role2
```
value pos. 0 - Required. User name

value pos. 1 - Required. Roles

### delete-role
```
cmanager delete-role Role1 Role2
```
value pos. 0 - Required. Roles


### rename-role
```
cmanager rename-role RoleName NewRoleNAme
```

0 comments on commit 4c378fa

Please sign in to comment.