@xano/cli 1.0.2-beta.9 → 1.0.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.
package/README.md CHANGED
@@ -505,6 +505,8 @@ xano sandbox push --review # Push and open sandbox
505
505
 
506
506
  # Review (open in browser)
507
507
  xano sandbox review
508
+ xano sandbox review --url-only # Print the URL without opening the browser
509
+ xano sandbox review --insecure # Skip TLS verification (self-signed certs)
508
510
 
509
511
  # Impersonate (open in browser)
510
512
  xano sandbox impersonate
@@ -3,6 +3,7 @@ export default class SandboxReview extends BaseCommand {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static flags: {
6
+ insecure: import("@oclif/core/interfaces").BooleanFlag<boolean>;
6
7
  output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
7
8
  'url-only': import("@oclif/core/interfaces").BooleanFlag<boolean>;
8
9
  config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
@@ -10,9 +10,16 @@ Review session started!
10
10
  `,
11
11
  `$ xano sandbox review -u`,
12
12
  `$ xano sandbox review -o json`,
13
+ `$ xano sandbox review --insecure`,
13
14
  ];
14
15
  static flags = {
15
16
  ...BaseCommand.baseFlags,
17
+ insecure: Flags.boolean({
18
+ char: 'k',
19
+ default: false,
20
+ description: 'Skip TLS certificate verification (for self-signed certificates)',
21
+ required: false,
22
+ }),
16
23
  output: Flags.string({
17
24
  char: 'o',
18
25
  default: 'summary',
@@ -29,6 +36,10 @@ Review session started!
29
36
  };
30
37
  async run() {
31
38
  const { flags } = await this.parse(SandboxReview);
39
+ if (flags.insecure) {
40
+ process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
41
+ this.warn('TLS certificate verification is disabled (insecure mode)');
42
+ }
32
43
  const { profile } = this.resolveProfile(flags);
33
44
  const apiUrl = `${profile.instance_origin}/api:meta/sandbox/impersonate`;
34
45
  try {