@base44-preview/cli 0.0.54-pr.539.1da48ad → 0.0.54-pr.539.90f90ec
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 +4 -6
- package/dist/cli/index.js.map +3 -3
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -253153,16 +253153,14 @@ async function executeCreate({
|
|
|
253153
253153
|
}
|
|
253154
253154
|
async function createAction({ log, runTask: runTask2, isNonInteractive }, name2, options) {
|
|
253155
253155
|
const existingAppId = process.env.BASE44_APP_ID;
|
|
253156
|
-
if (existingAppId) {
|
|
253156
|
+
if (existingAppId && !options.force) {
|
|
253157
253157
|
if (isNonInteractive) {
|
|
253158
253158
|
throw new InvalidInputError(`BASE44_APP_ID is set (${existingAppId}) — this environment already has a Base44 app, so \`create\` won't make a new one.`, {
|
|
253159
253159
|
hints: [
|
|
253160
253160
|
{
|
|
253161
253161
|
message: "Run `base44 init` to scaffold a project for the existing app"
|
|
253162
253162
|
},
|
|
253163
|
-
{
|
|
253164
|
-
message: "Or unset BASE44_APP_ID to create a new app with `base44 create`"
|
|
253165
|
-
}
|
|
253163
|
+
{ message: "Or pass --force to create a new app anyway" }
|
|
253166
253164
|
]
|
|
253167
253165
|
});
|
|
253168
253166
|
}
|
|
@@ -253199,7 +253197,7 @@ function getCreateCommand() {
|
|
|
253199
253197
|
return new Base44Command("create", {
|
|
253200
253198
|
requireAppConfig: false,
|
|
253201
253199
|
fullBanner: true
|
|
253202
|
-
}).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", `
|
|
253200
|
+
}).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").option("--force", "Create a new app even when BASE44_APP_ID is set in the environment").addHelpText("after", `
|
|
253203
253201
|
Examples:
|
|
253204
253202
|
$ base44 create my-app Creates a base44 project at ./my-app
|
|
253205
253203
|
$ base44 create my-todo-app --template backend-and-client Creates a base44 backend-and-client project at ./my-todo-app
|
|
@@ -261780,4 +261778,4 @@ export {
|
|
|
261780
261778
|
CLIExitError
|
|
261781
261779
|
};
|
|
261782
261780
|
|
|
261783
|
-
//# debugId=
|
|
261781
|
+
//# debugId=607796543B00B4D764756E2164756E21
|