feat(admin,admin-ui,medusa): Add Medusa Admin plugin (#3334)
This commit is contained in:
committed by
GitHub
parent
d6b1ad1ccd
commit
40de54b010
15
packages/admin/src/commands/create-cli.ts
Normal file
15
packages/admin/src/commands/create-cli.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { Command } from "commander"
|
||||
import build from "./build"
|
||||
|
||||
export async function createCli(): Promise<Command> {
|
||||
const program = new Command()
|
||||
|
||||
const buildCommand = program.command("build")
|
||||
buildCommand.description("Build the admin dashboard")
|
||||
buildCommand.option("-o, --out-dir <path>", "Output directory")
|
||||
buildCommand.option("-b, --backend <url>", "Backend URL")
|
||||
buildCommand.option("-p, --path <path>", "Base path")
|
||||
buildCommand.action(build)
|
||||
|
||||
return program
|
||||
}
|
||||
Reference in New Issue
Block a user