neonctl 1.11.0 → 1.11.2

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.
Files changed (2) hide show
  1. package/index.js +6 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -21,6 +21,7 @@ import { fillInArgs } from './utils.js';
21
21
  import pkg from './pkg.js';
22
22
  import commands from './commands/index.js';
23
23
  import { analyticsMiddleware } from './analytics.js';
24
+ import { isCi } from './env.js';
24
25
  let builder = yargs(hideBin(process.argv));
25
26
  builder = builder
26
27
  .scriptName(pkg.name)
@@ -35,6 +36,7 @@ builder = builder
35
36
  })
36
37
  .option('api-host', {
37
38
  describe: 'The API host',
39
+ hidden: true,
38
40
  default: 'https://console.neon.tech/api/v2',
39
41
  })
40
42
  // Setup config directory
@@ -47,10 +49,12 @@ builder = builder
47
49
  // Auth flow
48
50
  .option('oauth-host', {
49
51
  description: 'URL to Neon OAuth host',
52
+ hidden: true,
50
53
  default: 'https://oauth2.neon.tech',
51
54
  })
52
55
  .option('client-id', {
53
56
  description: 'OAuth client id',
57
+ hidden: true,
54
58
  type: 'string',
55
59
  default: defaultClientID,
56
60
  })
@@ -69,9 +73,9 @@ builder = builder
69
73
  .command(commands)
70
74
  .strictCommands()
71
75
  .option('analytics', {
72
- describe: 'Enable analytics',
76
+ describe: 'Manage analytics. Example: --no-analytics, --analytics false',
73
77
  type: 'boolean',
74
- default: true,
78
+ default: !isCi(),
75
79
  })
76
80
  .middleware(analyticsMiddleware)
77
81
  .fail(async (msg, err) => {
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "git@github.com:neondatabase/neonctl.git"
6
6
  },
7
7
  "type": "module",
8
- "version": "1.11.0",
8
+ "version": "1.11.2",
9
9
  "description": "CLI tool for NeonDB Cloud management",
10
10
  "main": "index.js",
11
11
  "author": "NeonDB",