@base44-preview/cli 0.0.44-pr.405.2f92c9f → 0.0.44-pr.407.17e027d

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
@@ -247614,7 +247614,7 @@ async function getTemplateById(templateId) {
247614
247614
  function validateNonInteractiveFlags(command) {
247615
247615
  const { path: path17 } = command.opts();
247616
247616
  if (path17 && !command.args.length) {
247617
- command.error("Non-interactive mode requires all flags: --name, --path");
247617
+ command.error("--path requires a project name argument. Usage: base44 create <name> --path <path>");
247618
247618
  }
247619
247619
  }
247620
247620
  async function createInteractive(options) {
@@ -247662,6 +247662,7 @@ async function createInteractive(options) {
247662
247662
  });
247663
247663
  }
247664
247664
  async function createNonInteractive(options) {
247665
+ R2.info(`Creating a new project at ${resolve2(options.path)}`);
247665
247666
  const template2 = await getTemplateById(options.template ?? DEFAULT_TEMPLATE_ID);
247666
247667
  return await executeCreate({
247667
247668
  template: template2,
@@ -247763,7 +247764,14 @@ async function executeCreate({
247763
247764
  return { outroMessage: "Your project is set up and ready to use" };
247764
247765
  }
247765
247766
  function getCreateCommand(context) {
247766
- 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) => {
247767
+ 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", `
247768
+ Examples:
247769
+ $ base44 create my-app Creates a base44 project at ./my-app
247770
+ $ base44 create my-todo-app --template backend-and-client Creates a base44 backend-and-client project at ./my-todo-app
247771
+ $ 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) => {
247772
+ if (name2 && !options.path) {
247773
+ options.path = `./${import_kebabCase.default(name2)}`;
247774
+ }
247767
247775
  const isNonInteractive = !!(options.name ?? name2) && !!options.path;
247768
247776
  if (isNonInteractive) {
247769
247777
  await runCommand(() => createNonInteractive({ name: options.name ?? name2, ...options }), { requireAuth: true, requireAppConfig: false }, context);
@@ -255375,4 +255383,4 @@ export {
255375
255383
  CLIExitError
255376
255384
  };
255377
255385
 
255378
- //# debugId=29A9031B09883B8D64756E2164756E21
255386
+ //# debugId=AB8EFABD4507C31564756E2164756E21