@xano/developer-mcp 1.0.73 → 1.0.75
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 +1 -1
- package/dist/cli_docs/index.js +4 -4
- package/dist/cli_docs/topics/auth.js +16 -11
- package/dist/cli_docs/topics/branch.js +83 -74
- package/dist/cli_docs/topics/function.js +86 -59
- package/dist/cli_docs/topics/integration.js +47 -32
- package/dist/cli_docs/topics/platform.js +14 -14
- package/dist/cli_docs/topics/profile.js +58 -55
- package/dist/cli_docs/topics/release.js +150 -96
- package/dist/cli_docs/topics/sandbox.d.ts +2 -0
- package/dist/cli_docs/topics/sandbox.js +317 -0
- package/dist/cli_docs/topics/start.js +31 -26
- package/dist/cli_docs/topics/static_host.js +52 -26
- package/dist/cli_docs/topics/tenant.js +355 -223
- package/dist/cli_docs/topics/unit_test.js +30 -30
- package/dist/cli_docs/topics/update.js +1 -0
- package/dist/cli_docs/topics/workflow_test.js +42 -39
- package/dist/cli_docs/topics/workspace.js +143 -108
- package/dist/xanoscript_docs/addons.md +1 -3
- package/dist/xanoscript_docs/security.md +2 -5
- package/dist/xanoscript_docs/syntax.md +1 -3
- package/dist/xanoscript_docs/tasks.md +1 -2
- package/dist/xanoscript_docs/tools.md +1 -3
- package/package.json +1 -1
|
@@ -8,67 +8,67 @@ export const unitTestDoc = {
|
|
|
8
8
|
- **Unit tests** are created and configured in the Xano dashboard, not via the CLI.
|
|
9
9
|
- The CLI is used to **list and run** tests, making it ideal for CI/CD pipelines.
|
|
10
10
|
- Test output shows PASS/FAIL status with error details for failed tests.
|
|
11
|
-
- Use \`--obj-type\` to filter tests by object type (
|
|
11
|
+
- Use \`--obj-type\` to filter tests by object type (function, query, middleware).
|
|
12
12
|
- Use \`--branch\` to run tests against a specific branch.`,
|
|
13
13
|
ai_hints: `**Key concepts:**
|
|
14
14
|
- Unit tests are created in the Xano dashboard; the CLI is for running them
|
|
15
|
-
- Use \`unit_test
|
|
15
|
+
- Use \`unit_test run_all\` in CI/CD pipelines for automated testing
|
|
16
16
|
- Output shows PASS/FAIL with error details for each test
|
|
17
|
-
- \`--obj-type\` filters tests by object type (
|
|
17
|
+
- \`--obj-type\` filters tests by object type (function, query, middleware)
|
|
18
18
|
- \`--branch\` specifies which branch to test against
|
|
19
19
|
|
|
20
20
|
**CI/CD integration:**
|
|
21
|
-
- Use \`unit_test
|
|
22
|
-
- Combine with \`workflow_test
|
|
21
|
+
- Use \`unit_test run_all -o json\` for machine-readable output
|
|
22
|
+
- Combine with \`workflow_test run_all\` for full test coverage
|
|
23
23
|
- Filter by branch with \`--branch\` to test specific branches`,
|
|
24
24
|
related_topics: ["workflow_test", "workspace", "function"],
|
|
25
25
|
commands: [
|
|
26
26
|
{
|
|
27
|
-
name: "unit_test
|
|
27
|
+
name: "unit_test list",
|
|
28
28
|
description: "List unit tests in the workspace",
|
|
29
|
-
usage: "xano unit_test
|
|
29
|
+
usage: "xano unit_test list [options]",
|
|
30
30
|
flags: [
|
|
31
|
-
{ name: "branch", short: "b", type: "string", required: false, description: "
|
|
32
|
-
{ name: "obj-type", type: "string", required: false, description: "Filter by object type" },
|
|
33
|
-
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID" },
|
|
31
|
+
{ name: "branch", short: "b", type: "string", required: false, description: "Filter by branch name" },
|
|
32
|
+
{ name: "obj-type", type: "string", required: false, description: "Filter by object type: function, query, middleware" },
|
|
33
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
|
|
34
34
|
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
35
35
|
],
|
|
36
36
|
examples: [
|
|
37
|
-
"xano unit_test
|
|
38
|
-
"xano unit_test
|
|
39
|
-
"xano unit_test
|
|
37
|
+
"xano unit_test list",
|
|
38
|
+
"xano unit_test list --branch dev",
|
|
39
|
+
"xano unit_test list --obj-type function -o json"
|
|
40
40
|
]
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
|
-
name: "unit_test
|
|
43
|
+
name: "unit_test run",
|
|
44
44
|
description: "Run a single unit test by ID",
|
|
45
|
-
usage: "xano unit_test
|
|
45
|
+
usage: "xano unit_test run <unit_test_id> [options]",
|
|
46
46
|
args: [
|
|
47
47
|
{ name: "unit_test_id", required: true, description: "ID of the unit test to run" }
|
|
48
48
|
],
|
|
49
49
|
flags: [
|
|
50
|
-
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID" },
|
|
50
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
|
|
51
51
|
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
52
52
|
],
|
|
53
53
|
examples: [
|
|
54
|
-
"xano unit_test
|
|
55
|
-
"xano unit_test
|
|
54
|
+
"xano unit_test run 123",
|
|
55
|
+
"xano unit_test run 123 -o json"
|
|
56
56
|
]
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
|
-
name: "unit_test
|
|
59
|
+
name: "unit_test run_all",
|
|
60
60
|
description: "Run all unit tests in the workspace",
|
|
61
|
-
usage: "xano unit_test
|
|
61
|
+
usage: "xano unit_test run_all [options]",
|
|
62
62
|
flags: [
|
|
63
|
-
{ name: "branch", short: "b", type: "string", required: false, description: "
|
|
64
|
-
{ name: "obj-type", type: "string", required: false, description: "Filter by object type" },
|
|
65
|
-
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID" },
|
|
63
|
+
{ name: "branch", short: "b", type: "string", required: false, description: "Filter by branch name" },
|
|
64
|
+
{ name: "obj-type", type: "string", required: false, description: "Filter by object type: function, query, middleware" },
|
|
65
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
|
|
66
66
|
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
67
67
|
],
|
|
68
68
|
examples: [
|
|
69
|
-
"xano unit_test
|
|
70
|
-
"xano unit_test
|
|
71
|
-
"xano unit_test
|
|
69
|
+
"xano unit_test run_all",
|
|
70
|
+
"xano unit_test run_all --branch dev -o json",
|
|
71
|
+
"xano unit_test run_all --obj-type function"
|
|
72
72
|
]
|
|
73
73
|
}
|
|
74
74
|
],
|
|
@@ -77,12 +77,12 @@ export const unitTestDoc = {
|
|
|
77
77
|
name: "Run Tests in CI/CD",
|
|
78
78
|
description: "Run all unit tests as part of a CI/CD pipeline",
|
|
79
79
|
steps: [
|
|
80
|
-
"List available tests: `xano unit_test
|
|
81
|
-
"Run all tests: `xano unit_test
|
|
80
|
+
"List available tests: `xano unit_test list`",
|
|
81
|
+
"Run all tests: `xano unit_test run_all`",
|
|
82
82
|
"Check output for PASS/FAIL results"
|
|
83
83
|
],
|
|
84
|
-
example: `xano unit_test
|
|
85
|
-
xano unit_test
|
|
84
|
+
example: `xano unit_test list
|
|
85
|
+
xano unit_test run_all -o json`
|
|
86
86
|
}
|
|
87
87
|
]
|
|
88
88
|
};
|
|
@@ -8,6 +8,7 @@ export const updateDoc = {
|
|
|
8
8
|
- Before troubleshooting CLI issues
|
|
9
9
|
|
|
10
10
|
**Update uses npm** - runs \`npm install -g @xano/cli\` under the hood.
|
|
11
|
+
**Check only** - use \`--check\` to see whether an update is available without installing.
|
|
11
12
|
**Beta channel** - use \`--beta\` to get pre-release versions for testing new features.`,
|
|
12
13
|
related_topics: ["start"],
|
|
13
14
|
commands: [
|
|
@@ -6,100 +6,103 @@ export const workflowTestDoc = {
|
|
|
6
6
|
## Key Concepts
|
|
7
7
|
|
|
8
8
|
- **Workflow tests** are more comprehensive than unit tests, testing full request flows.
|
|
9
|
-
- Tests are created and configured in the Xano dashboard; the CLI is for listing, viewing, and
|
|
9
|
+
- Tests are created and configured in the Xano dashboard; the CLI is for listing, viewing, running, and deleting them.
|
|
10
10
|
- The \`get\` command supports \`xs\` output format for viewing test XanoScript.
|
|
11
11
|
- Use \`run_all\` in CI/CD pipelines for automated end-to-end validation.`,
|
|
12
12
|
ai_hints: `**Key concepts:**
|
|
13
13
|
- Workflow tests are more comprehensive than unit tests, testing full request flows
|
|
14
14
|
- Tests are created in the Xano dashboard; the CLI is for running them
|
|
15
|
-
- \`workflow_test
|
|
16
|
-
- Use \`workflow_test
|
|
15
|
+
- \`workflow_test get\` supports \`xs\` output format for viewing test XanoScript
|
|
16
|
+
- Use \`workflow_test run_all\` in CI/CD pipelines for automated testing
|
|
17
17
|
|
|
18
18
|
**CI/CD integration:**
|
|
19
|
-
- Use \`workflow_test
|
|
20
|
-
- Combine with \`unit_test
|
|
19
|
+
- Use \`workflow_test run_all -o json\` for machine-readable output
|
|
20
|
+
- Combine with \`unit_test run_all\` for full test coverage
|
|
21
21
|
- Filter by branch with \`--branch\` to test specific branches
|
|
22
22
|
|
|
23
23
|
**Viewing test details:**
|
|
24
|
-
- Use \`workflow_test
|
|
24
|
+
- Use \`workflow_test get <id> -o xs\` to view the test XanoScript
|
|
25
25
|
- Use \`--include-draft\` to view draft versions of tests`,
|
|
26
26
|
related_topics: ["unit_test", "workspace", "branch"],
|
|
27
27
|
commands: [
|
|
28
28
|
{
|
|
29
|
-
name: "workflow_test
|
|
29
|
+
name: "workflow_test list",
|
|
30
30
|
description: "List workflow tests in the workspace",
|
|
31
|
-
usage: "xano workflow_test
|
|
31
|
+
usage: "xano workflow_test list [options]",
|
|
32
32
|
flags: [
|
|
33
|
-
{ name: "branch", short: "b", type: "string", required: false, description: "
|
|
34
|
-
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID" },
|
|
33
|
+
{ name: "branch", short: "b", type: "string", required: false, description: "Filter by branch name" },
|
|
34
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
|
|
35
35
|
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
36
36
|
],
|
|
37
37
|
examples: [
|
|
38
|
-
"xano workflow_test
|
|
39
|
-
"xano workflow_test
|
|
40
|
-
"xano workflow_test
|
|
38
|
+
"xano workflow_test list",
|
|
39
|
+
"xano workflow_test list --branch dev",
|
|
40
|
+
"xano workflow_test list -o json"
|
|
41
41
|
]
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
|
-
name: "workflow_test
|
|
44
|
+
name: "workflow_test get",
|
|
45
45
|
description: "Get details for a specific workflow test",
|
|
46
|
-
usage: "xano workflow_test
|
|
46
|
+
usage: "xano workflow_test get <workflow_test_id> [options]",
|
|
47
47
|
args: [
|
|
48
48
|
{ name: "workflow_test_id", required: true, description: "ID of the workflow test to retrieve" }
|
|
49
49
|
],
|
|
50
50
|
flags: [
|
|
51
51
|
{ name: "include-draft", type: "boolean", required: false, description: "Include draft version if available" },
|
|
52
|
-
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format:
|
|
53
|
-
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID" }
|
|
52
|
+
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary, json, or xs" },
|
|
53
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" }
|
|
54
54
|
],
|
|
55
55
|
examples: [
|
|
56
|
-
"xano workflow_test
|
|
57
|
-
"xano workflow_test
|
|
58
|
-
"xano workflow_test
|
|
56
|
+
"xano workflow_test get 456",
|
|
57
|
+
"xano workflow_test get 456 -o xs",
|
|
58
|
+
"xano workflow_test get 456 --include-draft -o json"
|
|
59
59
|
]
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
|
-
name: "workflow_test
|
|
62
|
+
name: "workflow_test run",
|
|
63
63
|
description: "Run a single workflow test by ID",
|
|
64
|
-
usage: "xano workflow_test
|
|
64
|
+
usage: "xano workflow_test run <workflow_test_id> [options]",
|
|
65
65
|
args: [
|
|
66
66
|
{ name: "workflow_test_id", required: true, description: "ID of the workflow test to run" }
|
|
67
67
|
],
|
|
68
68
|
flags: [
|
|
69
|
-
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID" },
|
|
69
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
|
|
70
70
|
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
71
71
|
],
|
|
72
72
|
examples: [
|
|
73
|
-
"xano workflow_test
|
|
74
|
-
"xano workflow_test
|
|
73
|
+
"xano workflow_test run 456",
|
|
74
|
+
"xano workflow_test run 456 -o json"
|
|
75
75
|
]
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
|
-
name: "workflow_test
|
|
78
|
+
name: "workflow_test run_all",
|
|
79
79
|
description: "Run all workflow tests in the workspace",
|
|
80
|
-
usage: "xano workflow_test
|
|
80
|
+
usage: "xano workflow_test run_all [options]",
|
|
81
81
|
flags: [
|
|
82
|
-
{ name: "branch", short: "b", type: "string", required: false, description: "
|
|
83
|
-
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID" },
|
|
82
|
+
{ name: "branch", short: "b", type: "string", required: false, description: "Filter by branch name" },
|
|
83
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
|
|
84
84
|
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
85
85
|
],
|
|
86
86
|
examples: [
|
|
87
|
-
"xano workflow_test
|
|
88
|
-
"xano workflow_test
|
|
87
|
+
"xano workflow_test run_all",
|
|
88
|
+
"xano workflow_test run_all --branch dev -o json"
|
|
89
89
|
]
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
|
-
name: "workflow_test
|
|
92
|
+
name: "workflow_test delete",
|
|
93
93
|
description: "Delete a workflow test by ID",
|
|
94
|
-
usage: "xano workflow_test
|
|
94
|
+
usage: "xano workflow_test delete <workflow_test_id> [options]",
|
|
95
95
|
args: [
|
|
96
96
|
{ name: "workflow_test_id", required: true, description: "ID of the workflow test to delete" }
|
|
97
97
|
],
|
|
98
98
|
flags: [
|
|
99
|
-
{ name: "
|
|
99
|
+
{ name: "force", short: "f", type: "boolean", required: false, description: "Skip confirmation prompt" },
|
|
100
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
|
|
101
|
+
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
100
102
|
],
|
|
101
103
|
examples: [
|
|
102
|
-
"xano workflow_test
|
|
104
|
+
"xano workflow_test delete 456",
|
|
105
|
+
"xano workflow_test delete 456 --force"
|
|
103
106
|
]
|
|
104
107
|
}
|
|
105
108
|
],
|
|
@@ -108,12 +111,12 @@ export const workflowTestDoc = {
|
|
|
108
111
|
name: "Validate Workflows Before Deploy",
|
|
109
112
|
description: "Run all workflow tests to validate before deployment",
|
|
110
113
|
steps: [
|
|
111
|
-
"List available tests: `xano workflow_test
|
|
112
|
-
"Run all tests: `xano workflow_test
|
|
114
|
+
"List available tests: `xano workflow_test list`",
|
|
115
|
+
"Run all tests: `xano workflow_test run_all`",
|
|
113
116
|
"Check results for PASS/FAIL status"
|
|
114
117
|
],
|
|
115
|
-
example: `xano workflow_test
|
|
116
|
-
xano workflow_test
|
|
118
|
+
example: `xano workflow_test list
|
|
119
|
+
xano workflow_test run_all -o json`
|
|
117
120
|
}
|
|
118
121
|
]
|
|
119
122
|
};
|