Accounts Commands

Add User Command

🎯 Add a user account.

./cadmus-tool add-user NAME PASSWORD EMAIL FIRST_NAME LAST_NAME

Add User Roles Command

🎯 Add role(s) to a user account.

./cadmus-tool add-user-roles NAME ROLE1 ROLEn

Delete User Command

🎯 Delete a user account.

./cadmus-tool delete-user USER_NAME [-y]

Delete User Roles Command

🎯 Delete role(s) from a user account.

./cadmus-tool delete-user-roles

List Users Command

🎯 List user accounts.

./cadmus-tool list-users

Seed Users Command

🎯 Seed user accounts from a list.

./cadmus-tool seed-users JSON_FILE_PATH DB_NAME [-d]
  • -d / --dry: dry run.

The users list format is like:

[
  {
    "UserName": "doe",
    "Password": "P4ss-W0rd!",
    "Email": "john.doe@somewhere.com",
    "Roles": ["admin", "editor", "operator", "visitor"],
    "FirstName": "John",
    "LastName": "Doe"
  },
  // ...
]

Update User Command

🎯 Update a user account.

./cadmus-tool update-user