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:
Shahed Nasser
2023-06-07 21:34:27 +03:00
committed by GitHub
parent 854022daa8
commit 8676ee7a2e
5 changed files with 80 additions and 3 deletions

View File

@@ -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) => {