aranea-sdk-cli 0.3.5 → 0.3.6

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.
@@ -309,6 +309,7 @@ exports.authCommand
309
309
  .command('login')
310
310
  .description('Login with email and password')
311
311
  .option('-e, --email <email>', 'Email address')
312
+ .option('-p, --password <password>', 'Password (for non-interactive/scripting use)')
312
313
  .action(async (options) => {
313
314
  console.log(chalk_1.default.cyan('\n=== AraneaSDK CLI Login ===\n'));
314
315
  try {
@@ -318,8 +319,8 @@ exports.authCommand
318
319
  console.error(chalk_1.default.red('Email is required'));
319
320
  process.exit(1);
320
321
  }
321
- // Get password
322
- const password = await promptPassword('Password: ');
322
+ // Get password (from option or prompt)
323
+ const password = options.password || (await promptPassword('Password: '));
323
324
  if (!password) {
324
325
  console.error(chalk_1.default.red('Password is required'));
325
326
  process.exit(1);
package/dist/index.js CHANGED
@@ -28,7 +28,7 @@ const program = new commander_1.Command();
28
28
  program
29
29
  .name('aranea-sdk')
30
30
  .description('AraneaSDK CLI - デバイス開発支援ツール')
31
- .version('0.3.5');
31
+ .version('0.3.6');
32
32
  // test コマンド
33
33
  program.addCommand(test_1.testCommand);
34
34
  // simulate コマンド
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aranea-sdk-cli",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "description": "AraneaSDK CLI - ESP32 IoTデバイス開発支援ツール",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",