fix: better cli

This commit is contained in:
Sebastian Rindom
2021-05-02 23:20:35 +02:00
parent df5018669c
commit 953747f3d2
7 changed files with 112 additions and 39 deletions

View File

@@ -90,6 +90,13 @@ function buildLocalCommands(cli, isLocalProject) {
.command({
command: `link`,
desc: `Creates your Medusa Cloud user in your local database for local testing.`,
builder: _ =>
_.option(`skip-local-user`, {
alias: `skipLocalUser`,
type: `boolean`,
default: false,
describe: `If set a user will not be created in the database.`,
}),
handler: handlerP(argv => {
if (!isLocalProject) {
console.log("must be a local project")