@launchframe/cli 1.0.0-beta.20 → 1.0.0-beta.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@launchframe/cli",
3
- "version": "1.0.0-beta.20",
3
+ "version": "1.0.0-beta.21",
4
4
  "description": "Production-ready B2B SaaS boilerplate with subscriptions, credits, and multi-tenancy",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -11,7 +11,8 @@ function help() {
11
11
  console.log(chalk.white('Usage:'));
12
12
  console.log(chalk.gray(' launchframe [command] [options]\n'));
13
13
  console.log(chalk.white('Global options:'));
14
- console.log(chalk.gray(' --verbose, -v Show detailed output\n'));
14
+ console.log(chalk.gray(' --verbose, -v Show detailed output'));
15
+ console.log(chalk.gray(' --version Show version number\n'));
15
16
 
16
17
  if (inProject) {
17
18
  console.log(chalk.white('Deployment commands:'));
package/src/index.js CHANGED
@@ -67,6 +67,13 @@ async function main() {
67
67
  const inProject = isLaunchFrameProject();
68
68
  const flags = parseFlags(args);
69
69
 
70
+ // Handle version flag (only as standalone command)
71
+ if (command === '--version') {
72
+ const packageJson = require('../package.json');
73
+ console.log(packageJson.version);
74
+ process.exit(0);
75
+ }
76
+
70
77
  // Set verbose mode globally
71
78
  if (flags.verbose || flags.v) {
72
79
  logger.setVerbose(true);