The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.
TypeScript b2b-marketplacecomposable-commerceecommerceenterpriseheadless-commercemarketplacemedusamedusajsmulti-vendortypescript
#!/usr/bin/env node
import { Command } from "commander";
import packageJson from "../package.json";
import { add } from "./commands/add";
import { registryBuild } from "./commands/registry-build";
import { registryCodegen } from "./commands/registry-codegen";
import { codegen } from "./commands/codegen";
import { diff } from "./commands/diff";
import { info } from "./commands/info";
import { init } from "./commands/init";
import { search } from "./commands/search";
import { telemetry } from "./commands/telemetry";
import { view } from "./commands/view";
import { pluginBuild } from "./commands/plugin-build";
import { dashboardBuild } from "./commands/dashboard-build";
import { registerCommandTracking } from "./telemetry/command-tracking";
process.on("SIGINT", () => process.exit(0));
process.on("SIGTERM", () => process.exit(0));
async function main() {
const program = new Command()
.name("@mercurjs/cli")
.description("Add blocks from registries to your project")
.version(
packageJson.version || "0.0.0",
"-v, --version",
"display the version number"
);
registerCommandTracking(program);
program
.addCommand(add)
.addCommand(registryBuild)
.addCommand(registryCodegen)
.addCommand(codegen)
.addCommand(diff)
.addCommand(info)
.addCommand(init)
.addCommand(search)
.addCommand(telemetry)
.addCommand(view)
.addCommand(pluginBuild)
.addCommand(dashboardBuild);
program.parse();
}
main();
export * from './registry/schema'