@xano/cli 0.0.21 → 0.0.22
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/base-command.d.ts +1 -1
- package/dist/base-command.js +6 -6
- package/dist/commands/branch/create/index.d.ts +17 -0
- package/dist/commands/branch/create/index.js +164 -0
- package/dist/commands/branch/delete/index.d.ts +18 -0
- package/dist/commands/branch/delete/index.js +156 -0
- package/dist/commands/branch/edit/index.d.ts +19 -0
- package/dist/commands/branch/edit/index.js +166 -0
- package/dist/commands/branch/get/index.d.ts +16 -0
- package/dist/commands/branch/get/index.js +135 -0
- package/dist/commands/branch/list/index.d.ts +18 -0
- package/dist/commands/branch/list/index.js +138 -0
- package/dist/commands/branch/set-live/index.d.ts +18 -0
- package/dist/commands/branch/set-live/index.js +155 -0
- package/dist/commands/function/create/index.d.ts +6 -6
- package/dist/commands/function/create/index.js +55 -55
- package/dist/commands/function/edit/index.d.ts +10 -10
- package/dist/commands/function/edit/index.js +155 -162
- package/dist/commands/function/get/index.d.ts +5 -5
- package/dist/commands/function/get/index.js +55 -60
- package/dist/commands/function/list/index.d.ts +5 -5
- package/dist/commands/function/list/index.js +52 -52
- package/dist/commands/profile/create/index.d.ts +6 -6
- package/dist/commands/profile/create/index.js +37 -37
- package/dist/commands/profile/delete/index.d.ts +2 -2
- package/dist/commands/profile/delete/index.js +9 -9
- package/dist/commands/profile/edit/index.d.ts +7 -7
- package/dist/commands/profile/edit/index.js +47 -47
- package/dist/commands/profile/get-default/index.js +1 -1
- package/dist/commands/profile/list/index.d.ts +2 -2
- package/dist/commands/profile/list/index.js +9 -9
- package/dist/commands/profile/me/index.d.ts +3 -3
- package/dist/commands/profile/me/index.js +21 -21
- package/dist/commands/profile/project/index.js +1 -1
- package/dist/commands/profile/set-default/index.js +1 -1
- package/dist/commands/profile/token/index.js +1 -1
- package/dist/commands/profile/wizard/index.d.ts +4 -4
- package/dist/commands/profile/wizard/index.js +118 -122
- package/dist/commands/run/env/delete/index.d.ts +2 -2
- package/dist/commands/run/env/delete/index.js +9 -9
- package/dist/commands/run/env/get/index.d.ts +2 -2
- package/dist/commands/run/env/get/index.js +10 -10
- package/dist/commands/run/env/list/index.d.ts +2 -2
- package/dist/commands/run/env/list/index.js +16 -18
- package/dist/commands/run/env/set/index.d.ts +2 -2
- package/dist/commands/run/env/set/index.js +4 -4
- package/dist/commands/run/exec/index.d.ts +11 -11
- package/dist/commands/run/exec/index.js +109 -109
- package/dist/commands/run/info/index.d.ts +4 -4
- package/dist/commands/run/info/index.js +26 -26
- package/dist/commands/run/projects/create/index.d.ts +3 -3
- package/dist/commands/run/projects/create/index.js +22 -22
- package/dist/commands/run/projects/delete/index.d.ts +2 -2
- package/dist/commands/run/projects/delete/index.js +9 -9
- package/dist/commands/run/projects/list/index.d.ts +2 -2
- package/dist/commands/run/projects/list/index.js +11 -11
- package/dist/commands/run/projects/update/index.d.ts +3 -3
- package/dist/commands/run/projects/update/index.js +20 -20
- package/dist/commands/run/secrets/delete/index.d.ts +2 -2
- package/dist/commands/run/secrets/delete/index.js +9 -9
- package/dist/commands/run/secrets/get/index.d.ts +2 -2
- package/dist/commands/run/secrets/get/index.js +10 -10
- package/dist/commands/run/secrets/list/index.d.ts +2 -2
- package/dist/commands/run/secrets/list/index.js +21 -23
- package/dist/commands/run/secrets/set/index.d.ts +3 -3
- package/dist/commands/run/secrets/set/index.js +15 -15
- package/dist/commands/run/sessions/delete/index.d.ts +2 -2
- package/dist/commands/run/sessions/delete/index.js +9 -9
- package/dist/commands/run/sessions/get/index.d.ts +2 -2
- package/dist/commands/run/sessions/get/index.js +10 -10
- package/dist/commands/run/sessions/list/index.d.ts +2 -2
- package/dist/commands/run/sessions/list/index.js +10 -10
- package/dist/commands/run/sessions/start/index.d.ts +2 -2
- package/dist/commands/run/sessions/start/index.js +10 -10
- package/dist/commands/run/sessions/stop/index.d.ts +2 -2
- package/dist/commands/run/sessions/stop/index.js +10 -10
- package/dist/commands/run/sink/get/index.d.ts +2 -2
- package/dist/commands/run/sink/get/index.js +10 -10
- package/dist/commands/static_host/build/create/index.d.ts +4 -4
- package/dist/commands/static_host/build/create/index.js +33 -33
- package/dist/commands/static_host/build/get/index.d.ts +4 -4
- package/dist/commands/static_host/build/get/index.js +20 -20
- package/dist/commands/static_host/build/list/index.d.ts +3 -3
- package/dist/commands/static_host/build/list/index.js +31 -31
- package/dist/commands/static_host/list/index.d.ts +3 -3
- package/dist/commands/static_host/list/index.js +31 -31
- package/dist/commands/workspace/create/index.d.ts +3 -3
- package/dist/commands/workspace/create/index.js +24 -24
- package/dist/commands/workspace/delete/index.d.ts +2 -2
- package/dist/commands/workspace/delete/index.js +18 -18
- package/dist/commands/workspace/edit/index.d.ts +5 -5
- package/dist/commands/workspace/edit/index.js +34 -34
- package/dist/commands/workspace/get/index.d.ts +2 -2
- package/dist/commands/workspace/get/index.js +12 -12
- package/dist/commands/workspace/list/index.d.ts +2 -2
- package/dist/commands/workspace/list/index.js +15 -15
- package/dist/commands/workspace/pull/index.d.ts +4 -4
- package/dist/commands/workspace/pull/index.js +46 -51
- package/dist/commands/workspace/push/index.js +3 -3
- package/dist/help.d.ts +1 -1
- package/dist/lib/base-run-command.d.ts +4 -4
- package/dist/lib/base-run-command.js +3 -3
- package/dist/lib/run-http-client.d.ts +20 -20
- package/dist/lib/run-http-client.js +71 -71
- package/dist/lib/run-types.d.ts +80 -80
- package/oclif.manifest.json +1336 -815
- package/package.json +1 -1
|
@@ -2,16 +2,6 @@ import { Flags } from '@oclif/core';
|
|
|
2
2
|
import BaseRunCommand from '../../../../lib/base-run-command.js';
|
|
3
3
|
export default class RunProjectsList extends BaseRunCommand {
|
|
4
4
|
static args = {};
|
|
5
|
-
static flags = {
|
|
6
|
-
...BaseRunCommand.baseFlags,
|
|
7
|
-
output: Flags.string({
|
|
8
|
-
char: 'o',
|
|
9
|
-
description: 'Output format',
|
|
10
|
-
required: false,
|
|
11
|
-
default: 'table',
|
|
12
|
-
options: ['table', 'json'],
|
|
13
|
-
}),
|
|
14
|
-
};
|
|
15
5
|
static description = 'List all projects';
|
|
16
6
|
static examples = [
|
|
17
7
|
`$ xano run projects list
|
|
@@ -25,6 +15,16 @@ xyz789-uvw456-rst123 Test Project public
|
|
|
25
15
|
]
|
|
26
16
|
`,
|
|
27
17
|
];
|
|
18
|
+
static flags = {
|
|
19
|
+
...BaseRunCommand.baseFlags,
|
|
20
|
+
output: Flags.string({
|
|
21
|
+
char: 'o',
|
|
22
|
+
default: 'table',
|
|
23
|
+
description: 'Output format',
|
|
24
|
+
options: ['table', 'json'],
|
|
25
|
+
required: false,
|
|
26
|
+
}),
|
|
27
|
+
};
|
|
28
28
|
async run() {
|
|
29
29
|
const { flags } = await this.parse(RunProjectsList);
|
|
30
30
|
// Initialize (no project required for listing projects)
|
|
@@ -59,7 +59,7 @@ xyz789-uvw456-rst123 Test Project public
|
|
|
59
59
|
for (const project of projects) {
|
|
60
60
|
const id = project.id.padEnd(36);
|
|
61
61
|
const name = project.name.slice(0, 24).padEnd(25);
|
|
62
|
-
const access = project
|
|
62
|
+
const { access } = project;
|
|
63
63
|
this.log(`${id} ${name} ${access}`);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -3,14 +3,14 @@ export default class RunProjectsUpdate extends BaseRunCommand {
|
|
|
3
3
|
static args: {
|
|
4
4
|
projectId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
5
5
|
};
|
|
6
|
+
static description: string;
|
|
7
|
+
static examples: string[];
|
|
6
8
|
static flags: {
|
|
7
|
-
name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
9
|
description: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
11
|
output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
12
|
profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
13
|
verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
12
14
|
};
|
|
13
|
-
static description: string;
|
|
14
|
-
static examples: string[];
|
|
15
15
|
run(): Promise<void>;
|
|
16
16
|
}
|
|
@@ -7,26 +7,6 @@ export default class RunProjectsUpdate extends BaseRunCommand {
|
|
|
7
7
|
required: true,
|
|
8
8
|
}),
|
|
9
9
|
};
|
|
10
|
-
static flags = {
|
|
11
|
-
...BaseRunCommand.baseFlags,
|
|
12
|
-
name: Flags.string({
|
|
13
|
-
char: 'n',
|
|
14
|
-
description: 'New project name',
|
|
15
|
-
required: false,
|
|
16
|
-
}),
|
|
17
|
-
description: Flags.string({
|
|
18
|
-
char: 'd',
|
|
19
|
-
description: 'New project description',
|
|
20
|
-
required: false,
|
|
21
|
-
}),
|
|
22
|
-
output: Flags.string({
|
|
23
|
-
char: 'o',
|
|
24
|
-
description: 'Output format',
|
|
25
|
-
required: false,
|
|
26
|
-
default: 'summary',
|
|
27
|
-
options: ['summary', 'json'],
|
|
28
|
-
}),
|
|
29
|
-
};
|
|
30
10
|
static description = 'Update a project';
|
|
31
11
|
static examples = [
|
|
32
12
|
`$ xano run projects update abc123-def456 -n "New Name"
|
|
@@ -43,6 +23,26 @@ Project updated successfully!
|
|
|
43
23
|
{ "id": "abc123-def456", "name": "New Name", ... }
|
|
44
24
|
`,
|
|
45
25
|
];
|
|
26
|
+
static flags = {
|
|
27
|
+
...BaseRunCommand.baseFlags,
|
|
28
|
+
description: Flags.string({
|
|
29
|
+
char: 'd',
|
|
30
|
+
description: 'New project description',
|
|
31
|
+
required: false,
|
|
32
|
+
}),
|
|
33
|
+
name: Flags.string({
|
|
34
|
+
char: 'n',
|
|
35
|
+
description: 'New project name',
|
|
36
|
+
required: false,
|
|
37
|
+
}),
|
|
38
|
+
output: Flags.string({
|
|
39
|
+
char: 'o',
|
|
40
|
+
default: 'summary',
|
|
41
|
+
description: 'Output format',
|
|
42
|
+
options: ['summary', 'json'],
|
|
43
|
+
required: false,
|
|
44
|
+
}),
|
|
45
|
+
};
|
|
46
46
|
async run() {
|
|
47
47
|
const { args, flags } = await this.parse(RunProjectsUpdate);
|
|
48
48
|
// Initialize (no project required)
|
|
@@ -3,12 +3,12 @@ export default class RunSecretsDelete extends BaseRunCommand {
|
|
|
3
3
|
static args: {
|
|
4
4
|
name: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
5
5
|
};
|
|
6
|
+
static description: string;
|
|
7
|
+
static examples: string[];
|
|
6
8
|
static flags: {
|
|
7
9
|
force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
10
|
profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
11
|
verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
10
12
|
};
|
|
11
|
-
static description: string;
|
|
12
|
-
static examples: string[];
|
|
13
13
|
run(): Promise<void>;
|
|
14
14
|
}
|
|
@@ -7,15 +7,6 @@ export default class RunSecretsDelete extends BaseRunCommand {
|
|
|
7
7
|
required: true,
|
|
8
8
|
}),
|
|
9
9
|
};
|
|
10
|
-
static flags = {
|
|
11
|
-
...BaseRunCommand.baseFlags,
|
|
12
|
-
force: Flags.boolean({
|
|
13
|
-
char: 'f',
|
|
14
|
-
description: 'Skip confirmation prompt',
|
|
15
|
-
required: false,
|
|
16
|
-
default: false,
|
|
17
|
-
}),
|
|
18
|
-
};
|
|
19
10
|
static description = 'Delete a secret';
|
|
20
11
|
static examples = [
|
|
21
12
|
`$ xano run secrets delete docker-registry
|
|
@@ -26,6 +17,15 @@ Secret 'docker-registry' deleted successfully!
|
|
|
26
17
|
Secret 'docker-registry' deleted successfully!
|
|
27
18
|
`,
|
|
28
19
|
];
|
|
20
|
+
static flags = {
|
|
21
|
+
...BaseRunCommand.baseFlags,
|
|
22
|
+
force: Flags.boolean({
|
|
23
|
+
char: 'f',
|
|
24
|
+
default: false,
|
|
25
|
+
description: 'Skip confirmation prompt',
|
|
26
|
+
required: false,
|
|
27
|
+
}),
|
|
28
|
+
};
|
|
29
29
|
async run() {
|
|
30
30
|
const { args, flags } = await this.parse(RunSecretsDelete);
|
|
31
31
|
// Initialize with project required
|
|
@@ -3,12 +3,12 @@ export default class RunSecretsGet extends BaseRunCommand {
|
|
|
3
3
|
static args: {
|
|
4
4
|
name: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
5
5
|
};
|
|
6
|
+
static description: string;
|
|
7
|
+
static examples: string[];
|
|
6
8
|
static flags: {
|
|
7
9
|
output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
10
|
profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
11
|
verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
10
12
|
};
|
|
11
|
-
static description: string;
|
|
12
|
-
static examples: string[];
|
|
13
13
|
run(): Promise<void>;
|
|
14
14
|
}
|
|
@@ -7,16 +7,6 @@ export default class RunSecretsGet extends BaseRunCommand {
|
|
|
7
7
|
required: true,
|
|
8
8
|
}),
|
|
9
9
|
};
|
|
10
|
-
static flags = {
|
|
11
|
-
...BaseRunCommand.baseFlags,
|
|
12
|
-
output: Flags.string({
|
|
13
|
-
char: 'o',
|
|
14
|
-
description: 'Output format',
|
|
15
|
-
required: false,
|
|
16
|
-
default: 'value',
|
|
17
|
-
options: ['value', 'json'],
|
|
18
|
-
}),
|
|
19
|
-
};
|
|
20
10
|
static description = 'Get a secret value';
|
|
21
11
|
static examples = [
|
|
22
12
|
`$ xano run secrets get docker-registry
|
|
@@ -26,6 +16,16 @@ export default class RunSecretsGet extends BaseRunCommand {
|
|
|
26
16
|
{ "name": "docker-registry", "type": "kubernetes.io/dockerconfigjson", "value": "..." }
|
|
27
17
|
`,
|
|
28
18
|
];
|
|
19
|
+
static flags = {
|
|
20
|
+
...BaseRunCommand.baseFlags,
|
|
21
|
+
output: Flags.string({
|
|
22
|
+
char: 'o',
|
|
23
|
+
default: 'value',
|
|
24
|
+
description: 'Output format',
|
|
25
|
+
options: ['value', 'json'],
|
|
26
|
+
required: false,
|
|
27
|
+
}),
|
|
28
|
+
};
|
|
29
29
|
async run() {
|
|
30
30
|
const { args, flags } = await this.parse(RunSecretsGet);
|
|
31
31
|
// Initialize with project required
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import BaseRunCommand from '../../../../lib/base-run-command.js';
|
|
2
2
|
export default class RunSecretsList extends BaseRunCommand {
|
|
3
3
|
static args: {};
|
|
4
|
+
static description: string;
|
|
5
|
+
static examples: string[];
|
|
4
6
|
static flags: {
|
|
5
7
|
output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
6
8
|
profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
9
|
verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
10
|
};
|
|
9
|
-
static description: string;
|
|
10
|
-
static examples: string[];
|
|
11
11
|
run(): Promise<void>;
|
|
12
12
|
}
|
|
@@ -2,16 +2,6 @@ import { Flags } from '@oclif/core';
|
|
|
2
2
|
import BaseRunCommand from '../../../../lib/base-run-command.js';
|
|
3
3
|
export default class RunSecretsList extends BaseRunCommand {
|
|
4
4
|
static args = {};
|
|
5
|
-
static flags = {
|
|
6
|
-
...BaseRunCommand.baseFlags,
|
|
7
|
-
output: Flags.string({
|
|
8
|
-
char: 'o',
|
|
9
|
-
description: 'Output format',
|
|
10
|
-
required: false,
|
|
11
|
-
default: 'table',
|
|
12
|
-
options: ['table', 'json'],
|
|
13
|
-
}),
|
|
14
|
-
};
|
|
15
5
|
static description = 'List all secret keys';
|
|
16
6
|
static examples = [
|
|
17
7
|
`$ xano run secrets list
|
|
@@ -23,6 +13,16 @@ service-account kubernetes.io/service-account-token -
|
|
|
23
13
|
{ "secrets": [{ "name": "docker-registry", "type": "kubernetes.io/dockerconfigjson", "repo": "ghcr.io" }] }
|
|
24
14
|
`,
|
|
25
15
|
];
|
|
16
|
+
static flags = {
|
|
17
|
+
...BaseRunCommand.baseFlags,
|
|
18
|
+
output: Flags.string({
|
|
19
|
+
char: 'o',
|
|
20
|
+
default: 'table',
|
|
21
|
+
description: 'Output format',
|
|
22
|
+
options: ['table', 'json'],
|
|
23
|
+
required: false,
|
|
24
|
+
}),
|
|
25
|
+
};
|
|
26
26
|
async run() {
|
|
27
27
|
const { flags } = await this.parse(RunSecretsList);
|
|
28
28
|
// Initialize with project required
|
|
@@ -33,20 +33,18 @@ service-account kubernetes.io/service-account-token -
|
|
|
33
33
|
if (flags.output === 'json') {
|
|
34
34
|
this.outputJson(result);
|
|
35
35
|
}
|
|
36
|
+
else if (result.secrets.length === 0) {
|
|
37
|
+
this.log('No secrets found.');
|
|
38
|
+
}
|
|
36
39
|
else {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
const name = secret.name.slice(0, 24).padEnd(24);
|
|
46
|
-
const type = secret.type.padEnd(37);
|
|
47
|
-
const repo = secret.repo || '-';
|
|
48
|
-
this.log(`${name} ${type} ${repo}`);
|
|
49
|
-
}
|
|
40
|
+
// Print header
|
|
41
|
+
this.log('NAME TYPE REPO');
|
|
42
|
+
this.log('-'.repeat(80));
|
|
43
|
+
for (const secret of result.secrets) {
|
|
44
|
+
const name = secret.name.slice(0, 24).padEnd(24);
|
|
45
|
+
const type = secret.type.padEnd(37);
|
|
46
|
+
const repo = secret.repo || '-';
|
|
47
|
+
this.log(`${name} ${type} ${repo}`);
|
|
50
48
|
}
|
|
51
49
|
}
|
|
52
50
|
}
|
|
@@ -3,14 +3,14 @@ export default class RunSecretsSet extends BaseRunCommand {
|
|
|
3
3
|
static args: {
|
|
4
4
|
name: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
5
5
|
};
|
|
6
|
+
static description: string;
|
|
7
|
+
static examples: string[];
|
|
6
8
|
static flags: {
|
|
9
|
+
repo: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
10
|
type: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
11
|
value: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
-
repo: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
12
|
profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
13
|
verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
12
14
|
};
|
|
13
|
-
static description: string;
|
|
14
|
-
static examples: string[];
|
|
15
15
|
run(): Promise<void>;
|
|
16
16
|
}
|
|
@@ -7,34 +7,34 @@ export default class RunSecretsSet extends BaseRunCommand {
|
|
|
7
7
|
required: true,
|
|
8
8
|
}),
|
|
9
9
|
};
|
|
10
|
+
static description = 'Set a secret';
|
|
11
|
+
static examples = [
|
|
12
|
+
`$ xano run secrets set docker-registry -t dockerconfigjson -v '{"auths":{"ghcr.io":{"auth":"..."}}}' -r ghcr.io
|
|
13
|
+
Secret 'docker-registry' set successfully!
|
|
14
|
+
`,
|
|
15
|
+
`$ xano run secrets set service-key -t service-account-token -v 'token-value-here'
|
|
16
|
+
Secret 'service-key' set successfully!
|
|
17
|
+
`,
|
|
18
|
+
];
|
|
10
19
|
static flags = {
|
|
11
20
|
...BaseRunCommand.baseFlags,
|
|
21
|
+
repo: Flags.string({
|
|
22
|
+
char: 'r',
|
|
23
|
+
description: 'Repository (for dockerconfigjson type)',
|
|
24
|
+
required: false,
|
|
25
|
+
}),
|
|
12
26
|
type: Flags.string({
|
|
13
27
|
char: 't',
|
|
14
28
|
description: 'Secret type',
|
|
15
|
-
required: true,
|
|
16
29
|
options: ['dockerconfigjson', 'service-account-token'],
|
|
30
|
+
required: true,
|
|
17
31
|
}),
|
|
18
32
|
value: Flags.string({
|
|
19
33
|
char: 'v',
|
|
20
34
|
description: 'Secret value',
|
|
21
35
|
required: true,
|
|
22
36
|
}),
|
|
23
|
-
repo: Flags.string({
|
|
24
|
-
char: 'r',
|
|
25
|
-
description: 'Repository (for dockerconfigjson type)',
|
|
26
|
-
required: false,
|
|
27
|
-
}),
|
|
28
37
|
};
|
|
29
|
-
static description = 'Set a secret';
|
|
30
|
-
static examples = [
|
|
31
|
-
`$ xano run secrets set docker-registry -t dockerconfigjson -v '{"auths":{"ghcr.io":{"auth":"..."}}}' -r ghcr.io
|
|
32
|
-
Secret 'docker-registry' set successfully!
|
|
33
|
-
`,
|
|
34
|
-
`$ xano run secrets set service-key -t service-account-token -v 'token-value-here'
|
|
35
|
-
Secret 'service-key' set successfully!
|
|
36
|
-
`,
|
|
37
|
-
];
|
|
38
38
|
async run() {
|
|
39
39
|
const { args, flags } = await this.parse(RunSecretsSet);
|
|
40
40
|
// Initialize with project required
|
|
@@ -3,12 +3,12 @@ export default class RunSessionsDelete extends BaseRunCommand {
|
|
|
3
3
|
static args: {
|
|
4
4
|
sessionId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
5
5
|
};
|
|
6
|
+
static description: string;
|
|
7
|
+
static examples: string[];
|
|
6
8
|
static flags: {
|
|
7
9
|
force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
10
|
profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
11
|
verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
10
12
|
};
|
|
11
|
-
static description: string;
|
|
12
|
-
static examples: string[];
|
|
13
13
|
run(): Promise<void>;
|
|
14
14
|
}
|
|
@@ -7,15 +7,6 @@ export default class RunSessionsDelete extends BaseRunCommand {
|
|
|
7
7
|
required: true,
|
|
8
8
|
}),
|
|
9
9
|
};
|
|
10
|
-
static flags = {
|
|
11
|
-
...BaseRunCommand.baseFlags,
|
|
12
|
-
force: Flags.boolean({
|
|
13
|
-
char: 'f',
|
|
14
|
-
description: 'Skip confirmation prompt',
|
|
15
|
-
required: false,
|
|
16
|
-
default: false,
|
|
17
|
-
}),
|
|
18
|
-
};
|
|
19
10
|
static description = 'Delete a session';
|
|
20
11
|
static examples = [
|
|
21
12
|
`$ xano run sessions delete abc123-def456
|
|
@@ -26,6 +17,15 @@ Session deleted successfully!
|
|
|
26
17
|
Session deleted successfully!
|
|
27
18
|
`,
|
|
28
19
|
];
|
|
20
|
+
static flags = {
|
|
21
|
+
...BaseRunCommand.baseFlags,
|
|
22
|
+
force: Flags.boolean({
|
|
23
|
+
char: 'f',
|
|
24
|
+
default: false,
|
|
25
|
+
description: 'Skip confirmation prompt',
|
|
26
|
+
required: false,
|
|
27
|
+
}),
|
|
28
|
+
};
|
|
29
29
|
async run() {
|
|
30
30
|
const { args, flags } = await this.parse(RunSessionsDelete);
|
|
31
31
|
// Initialize with project required
|
|
@@ -3,12 +3,12 @@ export default class RunSessionsGet extends BaseRunCommand {
|
|
|
3
3
|
static args: {
|
|
4
4
|
sessionId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
5
5
|
};
|
|
6
|
+
static description: string;
|
|
7
|
+
static examples: string[];
|
|
6
8
|
static flags: {
|
|
7
9
|
output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
10
|
profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
11
|
verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
10
12
|
};
|
|
11
|
-
static description: string;
|
|
12
|
-
static examples: string[];
|
|
13
13
|
run(): Promise<void>;
|
|
14
14
|
}
|
|
@@ -7,16 +7,6 @@ export default class RunSessionsGet extends BaseRunCommand {
|
|
|
7
7
|
required: true,
|
|
8
8
|
}),
|
|
9
9
|
};
|
|
10
|
-
static flags = {
|
|
11
|
-
...BaseRunCommand.baseFlags,
|
|
12
|
-
output: Flags.string({
|
|
13
|
-
char: 'o',
|
|
14
|
-
description: 'Output format',
|
|
15
|
-
required: false,
|
|
16
|
-
default: 'summary',
|
|
17
|
-
options: ['summary', 'json'],
|
|
18
|
-
}),
|
|
19
|
-
};
|
|
20
10
|
static description = 'Get session details';
|
|
21
11
|
static examples = [
|
|
22
12
|
`$ xano run sessions get abc123-def456
|
|
@@ -32,6 +22,16 @@ Session Details:
|
|
|
32
22
|
{ "id": "abc123-def456", "name": "My Session", "status": "running", ... }
|
|
33
23
|
`,
|
|
34
24
|
];
|
|
25
|
+
static flags = {
|
|
26
|
+
...BaseRunCommand.baseFlags,
|
|
27
|
+
output: Flags.string({
|
|
28
|
+
char: 'o',
|
|
29
|
+
default: 'summary',
|
|
30
|
+
description: 'Output format',
|
|
31
|
+
options: ['summary', 'json'],
|
|
32
|
+
required: false,
|
|
33
|
+
}),
|
|
34
|
+
};
|
|
35
35
|
async run() {
|
|
36
36
|
const { args, flags } = await this.parse(RunSessionsGet);
|
|
37
37
|
// Initialize (no project required for session details)
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import BaseRunCommand from '../../../../lib/base-run-command.js';
|
|
2
2
|
export default class RunSessionsList extends BaseRunCommand {
|
|
3
3
|
static args: {};
|
|
4
|
+
static description: string;
|
|
5
|
+
static examples: string[];
|
|
4
6
|
static flags: {
|
|
5
7
|
output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
6
8
|
profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
9
|
verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
10
|
};
|
|
9
|
-
static description: string;
|
|
10
|
-
static examples: string[];
|
|
11
11
|
run(): Promise<void>;
|
|
12
12
|
private outputTable;
|
|
13
13
|
}
|
|
@@ -2,16 +2,6 @@ import { Flags } from '@oclif/core';
|
|
|
2
2
|
import BaseRunCommand from '../../../../lib/base-run-command.js';
|
|
3
3
|
export default class RunSessionsList extends BaseRunCommand {
|
|
4
4
|
static args = {};
|
|
5
|
-
static flags = {
|
|
6
|
-
...BaseRunCommand.baseFlags,
|
|
7
|
-
output: Flags.string({
|
|
8
|
-
char: 'o',
|
|
9
|
-
description: 'Output format',
|
|
10
|
-
required: false,
|
|
11
|
-
default: 'table',
|
|
12
|
-
options: ['table', 'json'],
|
|
13
|
-
}),
|
|
14
|
-
};
|
|
15
5
|
static description = 'List all sessions for the project';
|
|
16
6
|
static examples = [
|
|
17
7
|
`$ xano run sessions list
|
|
@@ -23,6 +13,16 @@ xyz789-uvw456-rst123 stopped 2024-01-14T09:00:00Z
|
|
|
23
13
|
{ "items": [{ "id": "abc123-def456-ghi789", "state": "running", ... }] }
|
|
24
14
|
`,
|
|
25
15
|
];
|
|
16
|
+
static flags = {
|
|
17
|
+
...BaseRunCommand.baseFlags,
|
|
18
|
+
output: Flags.string({
|
|
19
|
+
char: 'o',
|
|
20
|
+
default: 'table',
|
|
21
|
+
description: 'Output format',
|
|
22
|
+
options: ['table', 'json'],
|
|
23
|
+
required: false,
|
|
24
|
+
}),
|
|
25
|
+
};
|
|
26
26
|
async run() {
|
|
27
27
|
const { flags } = await this.parse(RunSessionsList);
|
|
28
28
|
// Initialize with project required
|
|
@@ -3,12 +3,12 @@ export default class RunSessionsStart extends BaseRunCommand {
|
|
|
3
3
|
static args: {
|
|
4
4
|
sessionId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
5
5
|
};
|
|
6
|
+
static description: string;
|
|
7
|
+
static examples: string[];
|
|
6
8
|
static flags: {
|
|
7
9
|
output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
10
|
profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
11
|
verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
10
12
|
};
|
|
11
|
-
static description: string;
|
|
12
|
-
static examples: string[];
|
|
13
13
|
run(): Promise<void>;
|
|
14
14
|
}
|
|
@@ -7,16 +7,6 @@ export default class RunSessionsStart extends BaseRunCommand {
|
|
|
7
7
|
required: true,
|
|
8
8
|
}),
|
|
9
9
|
};
|
|
10
|
-
static flags = {
|
|
11
|
-
...BaseRunCommand.baseFlags,
|
|
12
|
-
output: Flags.string({
|
|
13
|
-
char: 'o',
|
|
14
|
-
description: 'Output format',
|
|
15
|
-
required: false,
|
|
16
|
-
default: 'summary',
|
|
17
|
-
options: ['summary', 'json'],
|
|
18
|
-
}),
|
|
19
|
-
};
|
|
20
10
|
static description = 'Start a session';
|
|
21
11
|
static examples = [
|
|
22
12
|
`$ xano run sessions start abc123-def456
|
|
@@ -28,6 +18,16 @@ Session started successfully!
|
|
|
28
18
|
{ "id": "abc123-def456", "state": "running", ... }
|
|
29
19
|
`,
|
|
30
20
|
];
|
|
21
|
+
static flags = {
|
|
22
|
+
...BaseRunCommand.baseFlags,
|
|
23
|
+
output: Flags.string({
|
|
24
|
+
char: 'o',
|
|
25
|
+
default: 'summary',
|
|
26
|
+
description: 'Output format',
|
|
27
|
+
options: ['summary', 'json'],
|
|
28
|
+
required: false,
|
|
29
|
+
}),
|
|
30
|
+
};
|
|
31
31
|
async run() {
|
|
32
32
|
const { args, flags } = await this.parse(RunSessionsStart);
|
|
33
33
|
// Initialize with project required
|
|
@@ -3,12 +3,12 @@ export default class RunSessionsStop extends BaseRunCommand {
|
|
|
3
3
|
static args: {
|
|
4
4
|
sessionId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
5
5
|
};
|
|
6
|
+
static description: string;
|
|
7
|
+
static examples: string[];
|
|
6
8
|
static flags: {
|
|
7
9
|
output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
10
|
profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
11
|
verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
10
12
|
};
|
|
11
|
-
static description: string;
|
|
12
|
-
static examples: string[];
|
|
13
13
|
run(): Promise<void>;
|
|
14
14
|
}
|
|
@@ -7,16 +7,6 @@ export default class RunSessionsStop extends BaseRunCommand {
|
|
|
7
7
|
required: true,
|
|
8
8
|
}),
|
|
9
9
|
};
|
|
10
|
-
static flags = {
|
|
11
|
-
...BaseRunCommand.baseFlags,
|
|
12
|
-
output: Flags.string({
|
|
13
|
-
char: 'o',
|
|
14
|
-
description: 'Output format',
|
|
15
|
-
required: false,
|
|
16
|
-
default: 'summary',
|
|
17
|
-
options: ['summary', 'json'],
|
|
18
|
-
}),
|
|
19
|
-
};
|
|
20
10
|
static description = 'Stop a session';
|
|
21
11
|
static examples = [
|
|
22
12
|
`$ xano run sessions stop abc123-def456
|
|
@@ -28,6 +18,16 @@ Session stopped successfully!
|
|
|
28
18
|
{ "id": "abc123-def456", "state": "stopped", ... }
|
|
29
19
|
`,
|
|
30
20
|
];
|
|
21
|
+
static flags = {
|
|
22
|
+
...BaseRunCommand.baseFlags,
|
|
23
|
+
output: Flags.string({
|
|
24
|
+
char: 'o',
|
|
25
|
+
default: 'summary',
|
|
26
|
+
description: 'Output format',
|
|
27
|
+
options: ['summary', 'json'],
|
|
28
|
+
required: false,
|
|
29
|
+
}),
|
|
30
|
+
};
|
|
31
31
|
async run() {
|
|
32
32
|
const { args, flags } = await this.parse(RunSessionsStop);
|
|
33
33
|
// Initialize with project required
|
|
@@ -3,12 +3,12 @@ export default class RunSinkGet extends BaseRunCommand {
|
|
|
3
3
|
static args: {
|
|
4
4
|
sessionId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
5
5
|
};
|
|
6
|
+
static description: string;
|
|
7
|
+
static examples: string[];
|
|
6
8
|
static flags: {
|
|
7
9
|
output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
10
|
profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
11
|
verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
10
12
|
};
|
|
11
|
-
static description: string;
|
|
12
|
-
static examples: string[];
|
|
13
13
|
run(): Promise<void>;
|
|
14
14
|
}
|
|
@@ -7,16 +7,6 @@ export default class RunSinkGet extends BaseRunCommand {
|
|
|
7
7
|
required: true,
|
|
8
8
|
}),
|
|
9
9
|
};
|
|
10
|
-
static flags = {
|
|
11
|
-
...BaseRunCommand.baseFlags,
|
|
12
|
-
output: Flags.string({
|
|
13
|
-
char: 'o',
|
|
14
|
-
description: 'Output format',
|
|
15
|
-
required: false,
|
|
16
|
-
default: 'summary',
|
|
17
|
-
options: ['summary', 'json'],
|
|
18
|
-
}),
|
|
19
|
-
};
|
|
20
10
|
static description = 'Get sink data for a completed session';
|
|
21
11
|
static examples = [
|
|
22
12
|
`$ xano run sink get abc123-def456
|
|
@@ -31,6 +21,16 @@ Sink Data:
|
|
|
31
21
|
{ "tables": [...], "logs": [...] }
|
|
32
22
|
`,
|
|
33
23
|
];
|
|
24
|
+
static flags = {
|
|
25
|
+
...BaseRunCommand.baseFlags,
|
|
26
|
+
output: Flags.string({
|
|
27
|
+
char: 'o',
|
|
28
|
+
default: 'summary',
|
|
29
|
+
description: 'Output format',
|
|
30
|
+
options: ['summary', 'json'],
|
|
31
|
+
required: false,
|
|
32
|
+
}),
|
|
33
|
+
};
|
|
34
34
|
async run() {
|
|
35
35
|
const { args, flags } = await this.parse(RunSinkGet);
|
|
36
36
|
// Initialize (no project required for sink data)
|