@base44-preview/cli 0.0.44-pr.365.2636ef3 → 0.0.44-pr.365.b07a1d8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli/index.js CHANGED
@@ -247662,7 +247662,7 @@ async function getTemplateById(templateId) {
247662
247662
  function validateNonInteractiveFlags(command) {
247663
247663
  const { path: path17 } = command.opts();
247664
247664
  if (path17 && !command.args.length) {
247665
- command.error("Non-interactive mode requires all flags: --name, --path");
247665
+ command.error("--path requires a project name argument. Usage: base44 create <name> --path <path>");
247666
247666
  }
247667
247667
  }
247668
247668
  async function createInteractive(options) {
@@ -247710,6 +247710,7 @@ async function createInteractive(options) {
247710
247710
  });
247711
247711
  }
247712
247712
  async function createNonInteractive(options) {
247713
+ R2.info(`Creating a new project at ${resolve2(options.path)}`);
247713
247714
  const template2 = await getTemplateById(options.template ?? DEFAULT_TEMPLATE_ID);
247714
247715
  return await executeCreate({
247715
247716
  template: template2,
@@ -247811,7 +247812,14 @@ async function executeCreate({
247811
247812
  return { outroMessage: "Your project is set up and ready to use" };
247812
247813
  }
247813
247814
  function getCreateCommand(context) {
247814
- return new Command("create").description("Create a new Base44 project").addArgument(new Argument("name", "Project name").argOptional()).option("-p, --path <path>", "Path where to create the project").option("-t, --template <id>", "Template ID (e.g., backend-only, backend-and-client)").option("--deploy", "Build and deploy the site").option("--no-skills", "Skip AI agent skills installation").hook("preAction", validateNonInteractiveFlags).action(async (name2, options) => {
247815
+ return new Command("create").description("Create a new Base44 project").addArgument(new Argument("name", "Project name").argOptional()).option("-p, --path <path>", "Path where to create the project").option("-t, --template <id>", "Template ID (e.g., backend-only, backend-and-client)").option("--deploy", "Build and deploy the site").option("--no-skills", "Skip AI agent skills installation").addHelpText("after", `
247816
+ Examples:
247817
+ $ base44 create my-app Creates a base44 project at ./my-app
247818
+ $ base44 create my-todo-app --template backend-and-client Creates a base44 backend-and-client project at ./my-todo-app
247819
+ $ base44 create my-app --path ./projects/my-app --deploy Creates a base44 project at ./project/my-app and deploys it`).hook("preAction", validateNonInteractiveFlags).action(async (name2, options) => {
247820
+ if (name2 && !options.path) {
247821
+ options.path = `./${import_kebabCase.default(name2)}`;
247822
+ }
247815
247823
  const isNonInteractive = !!(options.name ?? name2) && !!options.path;
247816
247824
  if (isNonInteractive) {
247817
247825
  await runCommand(() => createNonInteractive({ name: options.name ?? name2, ...options }), { requireAuth: true, requireAppConfig: false }, context);
@@ -255424,4 +255432,4 @@ export {
255424
255432
  CLIExitError
255425
255433
  };
255426
255434
 
255427
- //# debugId=FA78DA1FD2D703B664756E2164756E21
255435
+ //# debugId=3630160A15E12A6F64756E2164756E21