set testusers - UpendoVentures/Upendo-Dnn-Prompt GitHub Wiki
set-testusers
When working on building a website or extension, you often need some test users to use for your work. This command adds a handful of test user accounts for you. You can add the --howmany
parameter to define how many users you want to create. Otherwise, 100
will be created by default.
This is not meant to be used in production, necessarily. Instead, the intent is for this command to be used to help you prepare demos and test environments more easily. This could be for sales presentations, conference/user group demos, internal demos, etc. It's really up to you.
Added In Version
Command
Command | Description |
---|---|
set-testusers |
When working on building a website or extension, you often need some test users to use for your work. This command adds a handful of test user accounts for you. You can add the --howmany parameter to define how many users you want to create. Otherwise, 100 will be created by default. |
Arguments
The flags below can help you determine exactly how to use this prompt.
Flag | Type | Default | Description |
---|---|---|---|
--howmany |
Integer | (100) | Enter the number of user accounts you want to create. |
Output
If successful, you should see a message for each test user, stating the result of the creation of the account.
User Created:
Successfully created user: testuser-1 ({[email protected]}).
User Exists:
User already exists, not created: testuser-1 ({[email protected]}).
Error Creating User:
Error creating user: testuser-1 ({[email protected]}).
(if this happens, check the Admin Log to see why, or run set-debug
and then check the Log4NET log file for more details.)
Additional Notes
The password for each user account is the same. See the command notes above.
This command has a companion command, delete-testusers
. The delete-testusers
command will remove the users created by the set-testusers
command, here.
Screenshots
Users Created and Deleted
Flag Error