feat(medusa,medusa-cli): Added an invite option to the create user command, and allow seeding publishable api keys (#4192)
* feat(medusa,medusa-cli): Added an invite option to the create user command * ensure process exits for invites * addressed PR comments * allow seeding publishable api keys
This commit is contained in:
@@ -296,6 +296,11 @@ function buildLocalCommands(cli, isLocalProject) {
|
||||
alias: `id`,
|
||||
type: `string`,
|
||||
describe: `User's id.`,
|
||||
})
|
||||
.option(`invite`, {
|
||||
type: `boolean`,
|
||||
describe: `If flag is set, an invitation will be created instead of a new user and the invite token will be returned.`,
|
||||
default: false,
|
||||
}),
|
||||
handler: handlerP(
|
||||
getCommandHandler(`user`, (args, cmd) => {
|
||||
|
||||
Reference in New Issue
Block a user