@botim/botim-cli 0.0.6 → 0.0.7

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.js CHANGED
@@ -19,7 +19,7 @@ import { executeWithAuthRetry } from "./utils/auth-handler.js";
19
19
  import chalk from "chalk";
20
20
  import fs from "fs-extra";
21
21
  import path from "path";
22
- const version = "0.0.6";
22
+ const version = "0.0.7";
23
23
  const program = new Command();
24
24
  program.name("botim-cli").description("CLI tool to generate boilerplate code for React and Vue applications").version(version, "-v, --version", "Output the current version").option("--env <environment>", "Target environment: prod, uat, or beta (overrides default)", (value) => {
25
25
  const env = parseEnvironment(value);
@@ -136,7 +136,7 @@ program.command("status").description("Show login status for all environments").
136
136
  program.command("auth").description("Access authenticated commands (requires login)").alias("authenticated").action(async () => {
137
137
  await showMenuOrRequireAuth();
138
138
  });
139
- program.command("create-mp-app").description("Create a new Mini-Program app non-interactively (requires authentication)").alias("cmp").requiredOption("--projectName <name>", "Project folder name").option("--framework <framework>", "Template framework: react or vue", "react").option("--title <title>", "App title (default: derived from projectName)").option("--domainPrefix <prefix>", "Domain prefix (default: auto-selected)").option("--reviewNote <note>", "Review note for submission (default: auto-generated)").option("--creatorType <type>", "Creator type: hybrid or h5bridge", "hybrid").option("--website <url>", "Website URL (required if creatorType=h5bridge)").option("--shareText <text>", "Share card description (default: same as title)").option("--screenOrientation <orientation>", "Screen mode: fullscreen, immersive, or standard", "fullscreen").option("--apiLevel <version>", "API level version (default: latest available)").option("--audience <audience>", "Audience: 1=Private or 2=Public", "2").addHelpText("after", `
139
+ program.command("create-mp-app").description("Create a new Mini-Program app non-interactively (requires authentication)").alias("cmp").requiredOption("--projectName <name>", "Project folder name").option("--framework <framework>", "Template framework: react or vue", "react").option("--title <title>", "App title (default: derived from projectName)").option("--domainPrefix <prefix>", "Domain prefix (default: auto-selected)").option("--reviewNote <note>", "Review note for submission (default: auto-generated)").option("--creatorType <type>", "Creator type: hybrid or h5bridge", "hybrid").option("--website <url>", "Website URL (required if creatorType=h5bridge)").option("--shareText <text>", "Share card description (default: same as title)").option("--screenOrientation <orientation>", "Screen mode: fullscreen, immersive, or standard", "fullscreen").option("--apiLevel <version>", "API level version (default: latest available)").option("--audience <audience>", "Audience: 1=Public or 2=Private", "1").addHelpText("after", `
140
140
 
141
141
  Examples:
142
142
  Basic usage with minimal options:
@@ -183,8 +183,8 @@ Screen Orientations:
183
183
  standard - Standard page with title bar
184
184
 
185
185
  Audience Options:
186
- 1 - Private (only accessible to specific users)
187
- 2 - Public (accessible to all users) (default)
186
+ 1 - Public (accessible to all users) (default)
187
+ 2 - Private (only accessible to specific users)
188
188
  `).action(async (options) => {
189
189
  try {
190
190
  const loggedIn = await isLoggedIn();