@xano/developer-mcp 1.0.73 → 1.0.74
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/package.json +1 -1
|
@@ -21,7 +21,7 @@ When you pull, the CLI splits these into individual \`.xs\` files organized by t
|
|
|
21
21
|
|
|
22
22
|
## Directory Structure
|
|
23
23
|
|
|
24
|
-
After \`workspace
|
|
24
|
+
After \`workspace pull\`, files are organized using snake_case naming:
|
|
25
25
|
|
|
26
26
|
\`\`\`
|
|
27
27
|
./xano-code/
|
|
@@ -45,26 +45,43 @@ After \`workspace:pull\`, files are organized using snake_case naming:
|
|
|
45
45
|
│ ├── users.xs # Table schema
|
|
46
46
|
│ └── trigger/
|
|
47
47
|
│ └── on_user_create.xs # Table triggers
|
|
48
|
-
├──
|
|
49
|
-
│ ├──
|
|
50
|
-
│
|
|
51
|
-
│
|
|
52
|
-
└──
|
|
53
|
-
|
|
48
|
+
├── ai/
|
|
49
|
+
│ ├── agent/
|
|
50
|
+
│ │ ├── support_bot.xs # AI agents
|
|
51
|
+
│ │ └── trigger/
|
|
52
|
+
│ │ └── on_message.xs # Agent triggers
|
|
53
|
+
│ ├── mcp_server/
|
|
54
|
+
│ │ ├── my_server.xs # MCP server definitions
|
|
55
|
+
│ │ └── trigger/
|
|
56
|
+
│ │ └── on_connect.xs # MCP server triggers
|
|
57
|
+
│ └── tool/
|
|
58
|
+
│ └── my_tool.xs # AI tools
|
|
59
|
+
└── realtime/
|
|
60
|
+
├── channel/
|
|
61
|
+
│ └── my_channel.xs # Realtime channels
|
|
54
62
|
└── trigger/
|
|
55
|
-
└── on_connect.xs #
|
|
56
|
-
|
|
63
|
+
└── on_connect.xs # Realtime triggers
|
|
64
|
+
\`\`\`
|
|
65
|
+
|
|
66
|
+
## Syntax note
|
|
67
|
+
|
|
68
|
+
Xano CLI commands are SPACE-separated (e.g. \`xano workspace pull\`), not colon-separated.
|
|
69
|
+
|
|
70
|
+
## Alternatives
|
|
71
|
+
|
|
72
|
+
For lighter-weight iterative development without pulling the whole workspace, see the \`sandbox\` topic. Sandboxes give you an ephemeral copy of a workspace for quick testing.`,
|
|
57
73
|
ai_hints: `**Key concepts:**
|
|
58
74
|
- \`pull\` downloads workspace code and splits into organized .xs files
|
|
59
75
|
- \`push\` combines .xs files and uploads to Xano
|
|
60
76
|
- Files use snake_case naming for folders and filenames
|
|
61
77
|
- API endpoints are nested under their API group folder
|
|
78
|
+
- The target directory is passed via \`-d/--directory\` (default: current directory); it is NOT a positional argument
|
|
62
79
|
|
|
63
80
|
**Typical workflow:**
|
|
64
|
-
1. \`xano workspace
|
|
81
|
+
1. \`xano workspace pull -d ./xano-code\` - download
|
|
65
82
|
2. Navigate to \`api/{group}/\` for API endpoints, \`function/\` for functions, etc.
|
|
66
83
|
3. Edit .xs files with your editor/IDE
|
|
67
|
-
4. \`xano workspace
|
|
84
|
+
4. \`xano workspace push -d ./xano-code\` - deploy
|
|
68
85
|
|
|
69
86
|
**File naming:**
|
|
70
87
|
- All folders and files use snake_case (e.g., \`my_function.xs\`, \`user_profile/\`)
|
|
@@ -85,161 +102,169 @@ After \`workspace:pull\`, files are organized using snake_case naming:
|
|
|
85
102
|
- \`--sync\`: Full push of all files
|
|
86
103
|
- \`--sync --delete\`: Full push AND removes remote objects not in local
|
|
87
104
|
- \`--dry-run\`: Preview what would change without applying
|
|
88
|
-
- \`--include/-i\` and \`--exclude/-e\`: Glob patterns for selective push
|
|
105
|
+
- \`--include/-i\` and \`--exclude/-e\`: Glob patterns for selective push (repeatable)
|
|
106
|
+
- \`--no-transaction\` and \`--no-guids\` disable the default transaction wrapping and GUID write-back
|
|
89
107
|
|
|
90
108
|
**Git integration:**
|
|
91
|
-
- \`workspace
|
|
92
|
-
- Supports private repos with
|
|
93
|
-
- Can pull from a specific subdirectory with \`--path
|
|
94
|
-
|
|
109
|
+
- \`workspace git pull\` pulls XanoScript directly from GitHub/GitLab repos
|
|
110
|
+
- Supports private repos with \`-t/--token\` flag (falls back to GITHUB_TOKEN env var)
|
|
111
|
+
- Can pull from a specific subdirectory with \`--path\`
|
|
112
|
+
|
|
113
|
+
**When to use sandbox instead:**
|
|
114
|
+
- \`sandbox\` is a lighter-weight alternative for ephemeral, isolated iteration
|
|
115
|
+
- Use workspace pull/push for canonical sync, version control, and CI/CD`,
|
|
116
|
+
related_topics: ["start", "branch", "function", "release", "sandbox", "integration"],
|
|
95
117
|
commands: [
|
|
96
118
|
{
|
|
97
|
-
name: "workspace
|
|
119
|
+
name: "workspace list",
|
|
98
120
|
description: "List all workspaces accessible to your account",
|
|
99
|
-
usage: "xano workspace
|
|
100
|
-
|
|
121
|
+
usage: "xano workspace list [options]",
|
|
122
|
+
flags: [
|
|
123
|
+
{ name: "latest", type: "boolean", required: false, default: "false", description: "Sort results by newest first (descending ID)" },
|
|
124
|
+
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" },
|
|
125
|
+
{ name: "profile", short: "p", type: "string", required: false, description: "Profile name to use" }
|
|
126
|
+
],
|
|
127
|
+
examples: ["xano workspace list", "xano workspace list -p production", "xano workspace list --output json"]
|
|
101
128
|
},
|
|
102
129
|
{
|
|
103
|
-
name: "workspace
|
|
130
|
+
name: "workspace get",
|
|
104
131
|
description: "Get details of a specific workspace",
|
|
105
|
-
usage: "xano workspace
|
|
106
|
-
args: [
|
|
107
|
-
{ name: "workspace_id", required: false, description: "Workspace ID (uses profile workspace if not provided)" }
|
|
108
|
-
],
|
|
132
|
+
usage: "xano workspace get [options]",
|
|
109
133
|
flags: [
|
|
134
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
|
|
110
135
|
{ name: "profile", short: "p", type: "string", required: false, description: "Profile name to use" },
|
|
111
136
|
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
112
137
|
],
|
|
113
138
|
examples: [
|
|
114
|
-
"xano workspace
|
|
115
|
-
"xano workspace
|
|
116
|
-
"xano workspace
|
|
139
|
+
"xano workspace get",
|
|
140
|
+
"xano workspace get -w 123",
|
|
141
|
+
"xano workspace get -w 456 -p production -o json"
|
|
117
142
|
]
|
|
118
143
|
},
|
|
119
144
|
{
|
|
120
|
-
name: "workspace
|
|
145
|
+
name: "workspace create",
|
|
121
146
|
description: "Create a new workspace via the Xano Metadata API",
|
|
122
|
-
usage: "xano workspace
|
|
147
|
+
usage: "xano workspace create <name> [options]",
|
|
148
|
+
args: [
|
|
149
|
+
{ name: "name", required: true, description: "Name for the new workspace" }
|
|
150
|
+
],
|
|
123
151
|
flags: [
|
|
124
|
-
{ name: "name", short: "n", type: "string", required: true, description: "Name of the workspace" },
|
|
125
152
|
{ name: "description", short: "d", type: "string", required: false, description: "Description for the workspace" },
|
|
126
153
|
{ name: "profile", short: "p", type: "string", required: false, description: "Profile name to use" },
|
|
127
154
|
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
128
155
|
],
|
|
129
156
|
examples: [
|
|
130
|
-
|
|
131
|
-
'xano workspace
|
|
132
|
-
'xano workspace
|
|
157
|
+
"xano workspace create my-workspace",
|
|
158
|
+
'xano workspace create my-app --description "My application workspace"',
|
|
159
|
+
'xano workspace create new-project -d "New project workspace" -o json'
|
|
133
160
|
]
|
|
134
161
|
},
|
|
135
162
|
{
|
|
136
|
-
name: "workspace
|
|
163
|
+
name: "workspace edit",
|
|
137
164
|
description: "Edit an existing workspace via the Xano Metadata API",
|
|
138
|
-
usage: "xano workspace
|
|
139
|
-
args: [
|
|
140
|
-
{ name: "workspace_id", required: false, description: "Workspace ID to edit (uses profile workspace if not provided)" }
|
|
141
|
-
],
|
|
165
|
+
usage: "xano workspace edit [options]",
|
|
142
166
|
flags: [
|
|
167
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID to edit (uses profile workspace if not provided)" },
|
|
143
168
|
{ name: "name", short: "n", type: "string", required: false, description: "New name for the workspace" },
|
|
144
169
|
{ name: "description", short: "d", type: "string", required: false, description: "New description for the workspace" },
|
|
145
170
|
{ name: "swagger", type: "boolean", required: false, description: "Enable or disable swagger documentation (--swagger or --no-swagger)" },
|
|
146
171
|
{ name: "require-token", type: "boolean", required: false, description: "Require token for documentation access (--require-token or --no-require-token)" },
|
|
172
|
+
{ name: "allow-push", type: "boolean", required: false, description: "Allow CLI push to the workspace (--allow-push or --no-allow-push)" },
|
|
147
173
|
{ name: "profile", short: "p", type: "string", required: false, description: "Profile name to use" },
|
|
148
174
|
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
149
175
|
],
|
|
150
176
|
examples: [
|
|
151
|
-
'xano workspace
|
|
152
|
-
'xano workspace
|
|
153
|
-
"xano workspace
|
|
154
|
-
"xano workspace
|
|
177
|
+
'xano workspace edit -w 123 --name "new-name"',
|
|
178
|
+
'xano workspace edit --name "updated-workspace" --description "Updated description"',
|
|
179
|
+
"xano workspace edit -w 123 --swagger --require-token",
|
|
180
|
+
"xano workspace edit -w 123 --no-swagger -o json"
|
|
155
181
|
]
|
|
156
182
|
},
|
|
157
183
|
{
|
|
158
|
-
name: "workspace
|
|
184
|
+
name: "workspace delete",
|
|
159
185
|
description: "Delete a workspace via the Xano Metadata API. Cannot delete workspaces with active tenants.",
|
|
160
|
-
usage: "xano workspace
|
|
161
|
-
args: [
|
|
162
|
-
{ name: "workspace_id", required: true, description: "Workspace ID to delete" }
|
|
163
|
-
],
|
|
186
|
+
usage: "xano workspace delete [options]",
|
|
164
187
|
flags: [
|
|
188
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID to delete (uses profile workspace if not provided)" },
|
|
165
189
|
{ name: "force", short: "f", type: "boolean", required: false, default: "false", description: "Skip confirmation prompt" },
|
|
166
190
|
{ name: "profile", short: "p", type: "string", required: false, description: "Profile name to use" },
|
|
167
191
|
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
168
192
|
],
|
|
169
193
|
examples: [
|
|
170
|
-
"xano workspace
|
|
171
|
-
"xano workspace
|
|
172
|
-
"xano workspace
|
|
194
|
+
"xano workspace delete -w 123",
|
|
195
|
+
"xano workspace delete -w 123 --force",
|
|
196
|
+
"xano workspace delete -w 123 -f -o json"
|
|
173
197
|
]
|
|
174
198
|
},
|
|
175
199
|
{
|
|
176
|
-
name: "workspace
|
|
177
|
-
description: "Download workspace code to local directory. Splits multidoc into individual .xs files organized by type.",
|
|
178
|
-
usage: "xano workspace
|
|
179
|
-
args: [
|
|
180
|
-
{ name: "directory", required: true, description: "Local directory to save files" }
|
|
181
|
-
],
|
|
200
|
+
name: "workspace pull",
|
|
201
|
+
description: "Download workspace code to a local directory. Splits the multidoc response into individual .xs files organized by type. The target directory is the -d/--directory flag (default: current directory), not a positional argument.",
|
|
202
|
+
usage: "xano workspace pull [options]",
|
|
182
203
|
flags: [
|
|
204
|
+
{ name: "directory", short: "d", type: "string", required: false, default: ".", description: "Output directory for pulled documents (defaults to current directory)" },
|
|
183
205
|
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile default if not set)" },
|
|
184
|
-
{ name: "branch", short: "b", type: "string", required: false, description: "Branch label to pull from" },
|
|
185
|
-
{ name: "env", type: "boolean", required: false, description: "Include environment variables" },
|
|
186
|
-
{ name: "draft", type: "boolean", required: false, description: "Include draft versions of functions" },
|
|
187
|
-
{ name: "records", type: "boolean", required: false, description: "Include table records" }
|
|
206
|
+
{ name: "branch", short: "b", type: "string", required: false, description: "Branch label to pull from (defaults to live branch or profile branch)" },
|
|
207
|
+
{ name: "env", type: "boolean", required: false, default: "false", description: "Include environment variables" },
|
|
208
|
+
{ name: "draft", type: "boolean", required: false, default: "false", description: "Include draft versions of functions" },
|
|
209
|
+
{ name: "records", type: "boolean", required: false, default: "false", description: "Include table records" },
|
|
210
|
+
{ name: "profile", short: "p", type: "string", required: false, description: "Profile name to use" }
|
|
188
211
|
],
|
|
189
212
|
examples: [
|
|
190
|
-
"xano workspace
|
|
191
|
-
"xano workspace
|
|
192
|
-
"xano workspace
|
|
213
|
+
"xano workspace pull",
|
|
214
|
+
"xano workspace pull -d ./my-app",
|
|
215
|
+
"xano workspace pull -d ./staging-code -b dev",
|
|
216
|
+
"xano workspace pull -d ./backup --env --records --draft"
|
|
193
217
|
]
|
|
194
218
|
},
|
|
195
219
|
{
|
|
196
|
-
name: "workspace
|
|
197
|
-
description: "Upload local XanoScript files to workspace.
|
|
198
|
-
usage: "xano workspace
|
|
199
|
-
args: [
|
|
200
|
-
{ name: "directory", required: true, description: "Local directory containing .xs files" }
|
|
201
|
-
],
|
|
220
|
+
name: "workspace push",
|
|
221
|
+
description: "Upload local XanoScript files to a workspace. Default mode is partial (only changed files). Use --sync for a full push. The source directory is the -d/--directory flag (default: current directory), not a positional argument.",
|
|
222
|
+
usage: "xano workspace push [options]",
|
|
202
223
|
flags: [
|
|
224
|
+
{ name: "directory", short: "d", type: "string", required: false, default: ".", description: "Directory containing documents to push (defaults to current directory)" },
|
|
203
225
|
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile default if not set)" },
|
|
204
|
-
{ name: "branch", short: "b", type: "string", required: false, description: "Branch label to push to" },
|
|
205
|
-
{ name: "sync", type: "boolean", required: false, description: "Full push (default is partial/changed-only)" },
|
|
206
|
-
{ name: "delete", type: "boolean", required: false, description: "Delete remote objects not in local files (requires --sync)" },
|
|
207
|
-
{ name: "dry-run", type: "boolean", required: false, description: "Preview changes without applying" },
|
|
208
|
-
{ name: "force", type: "boolean", required: false, description: "Skip confirmation prompt" },
|
|
209
|
-
{ name: "env", type: "boolean", required: false, description: "Include environment variables" },
|
|
210
|
-
{ name: "records", type: "boolean", required: false, description: "Include table records" },
|
|
211
|
-
{ name: "truncate", type: "boolean", required: false, description: "Truncate tables before importing records" },
|
|
212
|
-
{ name: "transaction", type: "boolean", required: false, default: "true", description: "Wrap
|
|
213
|
-
{ name: "guids", type: "boolean", required: false, default: "true", description: "Write GUIDs back to local files after push (--no-guids to disable)" },
|
|
214
|
-
{ name: "include", short: "i", type: "string", required: false, description: "Glob pattern to include
|
|
215
|
-
{ name: "exclude", short: "e", type: "string", required: false, description: "Glob pattern to exclude
|
|
226
|
+
{ name: "branch", short: "b", type: "string", required: false, description: "Branch label to push to (defaults to live branch or profile branch)" },
|
|
227
|
+
{ name: "sync", type: "boolean", required: false, default: "false", description: "Full push (default is partial/changed-only). Required for --delete." },
|
|
228
|
+
{ name: "delete", type: "boolean", required: false, default: "false", description: "Delete remote objects not present in local files (requires --sync)" },
|
|
229
|
+
{ name: "dry-run", type: "boolean", required: false, default: "false", description: "Preview changes without applying" },
|
|
230
|
+
{ name: "force", type: "boolean", required: false, default: "false", description: "Skip preview and confirmation prompt (for CI/CD)" },
|
|
231
|
+
{ name: "env", type: "boolean", required: false, default: "false", description: "Include environment variables" },
|
|
232
|
+
{ name: "records", type: "boolean", required: false, default: "false", description: "Include table records" },
|
|
233
|
+
{ name: "truncate", type: "boolean", required: false, default: "false", description: "Truncate tables before importing records" },
|
|
234
|
+
{ name: "transaction", type: "boolean", required: false, default: "true", description: "Wrap import in a database transaction (--no-transaction to disable)" },
|
|
235
|
+
{ name: "guids", type: "boolean", required: false, default: "true", description: "Write server-assigned GUIDs back to local files after push (--no-guids to disable)" },
|
|
236
|
+
{ name: "include", short: "i", type: "string", required: false, description: "Glob pattern to include files, matched against relative paths (repeatable)" },
|
|
237
|
+
{ name: "exclude", short: "e", type: "string", required: false, description: "Glob pattern to exclude files, matched against relative paths (repeatable)" },
|
|
238
|
+
{ name: "profile", short: "p", type: "string", required: false, description: "Profile name to use" }
|
|
216
239
|
],
|
|
217
240
|
examples: [
|
|
218
|
-
"xano workspace
|
|
219
|
-
"xano workspace
|
|
220
|
-
"xano workspace
|
|
221
|
-
"xano workspace
|
|
222
|
-
"xano workspace
|
|
223
|
-
|
|
241
|
+
"xano workspace push",
|
|
242
|
+
"xano workspace push -d ./my-app",
|
|
243
|
+
"xano workspace push -d ./my-app -b dev",
|
|
244
|
+
"xano workspace push --dry-run",
|
|
245
|
+
"xano workspace push --sync --delete --force",
|
|
246
|
+
'xano workspace push -i "api/**" -i "function/**"',
|
|
247
|
+
'xano workspace push -e "table/**" --records --truncate',
|
|
248
|
+
"xano workspace push --no-transaction --no-guids"
|
|
224
249
|
]
|
|
225
250
|
},
|
|
226
251
|
{
|
|
227
|
-
name: "workspace
|
|
228
|
-
description: "Pull XanoScript files directly from a git repository (GitHub, GitLab,
|
|
229
|
-
usage: "xano workspace
|
|
230
|
-
args: [
|
|
231
|
-
{ name: "directory", required: true, description: "Local directory to save files" }
|
|
232
|
-
],
|
|
252
|
+
name: "workspace git pull",
|
|
253
|
+
description: "Pull XanoScript files directly from a git repository (GitHub, GitLab, or any git URL). Destination directory is passed via -d/--directory.",
|
|
254
|
+
usage: "xano workspace git pull -r <repo_url> [options]",
|
|
233
255
|
flags: [
|
|
234
|
-
{ name: "repo", short: "r", type: "string", required: true, description: "Git repository URL (HTTPS or
|
|
235
|
-
{ name: "
|
|
236
|
-
{ name: "
|
|
237
|
-
{ name: "
|
|
256
|
+
{ name: "repo", short: "r", type: "string", required: true, description: "Git repository URL (GitHub HTTPS, SSH, or any git URL)" },
|
|
257
|
+
{ name: "directory", short: "d", type: "string", required: false, default: ".", description: "Output directory for imported files (defaults to current directory)" },
|
|
258
|
+
{ name: "branch", short: "b", type: "string", required: false, description: "Branch, tag, or ref to fetch (defaults to repository default branch)" },
|
|
259
|
+
{ name: "path", type: "string", required: false, description: "Subdirectory within the repo to import from" },
|
|
260
|
+
{ name: "token", short: "t", type: "string", required: false, description: "Personal access token for private repos (falls back to GITHUB_TOKEN env var)" }
|
|
238
261
|
],
|
|
239
262
|
examples: [
|
|
240
|
-
"xano workspace
|
|
241
|
-
"xano workspace
|
|
242
|
-
"xano workspace
|
|
263
|
+
"xano workspace git pull -r https://github.com/owner/repo",
|
|
264
|
+
"xano workspace git pull -d ./code -r https://github.com/owner/repo",
|
|
265
|
+
"xano workspace git pull -r https://github.com/owner/repo -b main --path src/xano",
|
|
266
|
+
"xano workspace git pull -r https://github.com/owner/private-repo -t ghp_token123",
|
|
267
|
+
"xano workspace git pull -r git@github.com:owner/repo.git"
|
|
243
268
|
]
|
|
244
269
|
}
|
|
245
270
|
],
|
|
@@ -248,35 +273,45 @@ After \`workspace:pull\`, files are organized using snake_case naming:
|
|
|
248
273
|
name: "Local Development Cycle",
|
|
249
274
|
description: "Edit Xano code locally with your preferred tools",
|
|
250
275
|
steps: [
|
|
251
|
-
"Pull workspace: `xano workspace
|
|
276
|
+
"Pull workspace: `xano workspace pull -d ./code`",
|
|
252
277
|
"Navigate to organized folders: `api/{group}/`, `function/`, `table/`, etc.",
|
|
253
278
|
"Edit .xs files in your IDE (files use snake_case naming)",
|
|
254
279
|
"Validate changes: Use xanoscript_docs MCP tool",
|
|
255
|
-
"Push changes: `xano workspace
|
|
280
|
+
"Push changes: `xano workspace push -d ./code`",
|
|
256
281
|
"Test in Xano dashboard or via API"
|
|
257
282
|
],
|
|
258
|
-
example: `xano workspace
|
|
283
|
+
example: `xano workspace pull -d ./my-app
|
|
259
284
|
# Files organized: api/users/create_post.xs, function/validate_token.xs, etc.
|
|
260
|
-
xano workspace
|
|
285
|
+
xano workspace push -d ./my-app`
|
|
261
286
|
},
|
|
262
287
|
{
|
|
263
288
|
name: "Version Control Setup",
|
|
264
289
|
description: "Track Xano code changes in git",
|
|
265
290
|
steps: [
|
|
266
|
-
"Pull workspace: `xano workspace
|
|
291
|
+
"Pull workspace: `xano workspace pull -d ./xano`",
|
|
267
292
|
"Initialize git: `cd xano && git init`",
|
|
268
293
|
"Add files: `git add . && git commit -m 'Initial import'`",
|
|
269
294
|
"Make changes and commit regularly",
|
|
270
|
-
"Push to Xano when ready: `xano workspace
|
|
295
|
+
"Push to Xano when ready: `xano workspace push -d ./xano`"
|
|
271
296
|
]
|
|
272
297
|
},
|
|
273
298
|
{
|
|
274
299
|
name: "Cross-Branch Deployment",
|
|
275
300
|
description: "Promote code from staging to production",
|
|
276
301
|
steps: [
|
|
277
|
-
"Pull from staging: `xano workspace
|
|
302
|
+
"Pull from staging: `xano workspace pull -d ./deploy -b staging`",
|
|
278
303
|
"Review changes",
|
|
279
|
-
"Push to production: `xano workspace
|
|
304
|
+
"Push to production: `xano workspace push -d ./deploy -b production`"
|
|
305
|
+
]
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
name: "Selective Push with Dry Run",
|
|
309
|
+
description: "Preview and selectively push only some files",
|
|
310
|
+
steps: [
|
|
311
|
+
"Preview first: `xano workspace push --dry-run`",
|
|
312
|
+
"Include only functions: `xano workspace push -i 'function/**'`",
|
|
313
|
+
"Exclude tables: `xano workspace push -e 'table/**'`",
|
|
314
|
+
"Force full sync with deletes: `xano workspace push --sync --delete --force`"
|
|
280
315
|
]
|
|
281
316
|
}
|
|
282
317
|
]
|
package/package.json
CHANGED