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 authored and GitHub committed 2023-06-07 20:34:27 +02:00
1 parent 854022daa8
commit 8676ee7a2e
5 files changed
+80 -3

No files matched your search

+5
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) => {