@getxflow/cli 0.1.7 → 0.1.9
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 +45 -44
- package/dist/api.js +10 -15
- package/dist/args.js +1 -1
- package/dist/bin.js +11 -7
- package/dist/commands/auth.js +33 -18
- package/dist/commands/db.js +18 -18
- package/dist/commands/deploy.js +18 -18
- package/dist/commands/env.js +36 -25
- package/dist/commands/functions.js +21 -21
- package/dist/commands/logs.js +6 -6
- package/dist/commands/mcp.js +14 -14
- package/dist/commands/projects.js +23 -23
- package/dist/commands/schedules.js +8 -8
- package/dist/commands/skills.js +6 -6
- package/dist/commands/sources.js +32 -32
- package/dist/config.js +5 -5
- package/dist/help.js +252 -250
- package/dist/limits.js +78 -0
- package/dist/session.js +1 -1
- package/dist/template.js +22 -22
- package/dist/ui.js +12 -12
- package/dist/version.js +1 -1
- package/dist/zip.js +7 -7
- package/package.json +22 -22
- package/skills/xflow/SKILL.md +19 -1
package/dist/help.js
CHANGED
|
@@ -12,256 +12,258 @@ function help(topic) {
|
|
|
12
12
|
(0, ui_1.out)(TOPICS[topic]);
|
|
13
13
|
return;
|
|
14
14
|
}
|
|
15
|
-
(0, ui_1.out)(`${(0, ui_1.bold)('xflow')} ${(0, ui_1.dim)(version_1.CLI_VERSION)}
|
|
16
|
-
|
|
17
|
-
${(0, ui_1.bold)('
|
|
18
|
-
xflow login
|
|
19
|
-
xflow init [
|
|
20
|
-
xflow templates
|
|
21
|
-
xflow link <id>
|
|
22
|
-
xflow skills [--global]
|
|
23
|
-
xflow mcp install
|
|
24
|
-
|
|
25
|
-
${(0, ui_1.bold)('
|
|
26
|
-
xflow status
|
|
27
|
-
xflow push [--force]
|
|
28
|
-
xflow pull [--into dir] [--revision N]
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
${(0, ui_1.bold)('
|
|
32
|
-
xflow deploy [--no-push]
|
|
33
|
-
xflow publish
|
|
34
|
-
xflow rollback
|
|
35
|
-
xflow deployments
|
|
36
|
-
|
|
37
|
-
${(0, ui_1.bold)('
|
|
38
|
-
xflow functions list
|
|
39
|
-
xflow functions deploy [
|
|
40
|
-
xflow functions invoke
|
|
41
|
-
|
|
42
|
-
xflow functions logs [
|
|
43
|
-
xflow schedules list
|
|
44
|
-
xflow schedules set
|
|
45
|
-
|
|
46
|
-
xflow schedules rm
|
|
47
|
-
xflow env [check]
|
|
48
|
-
xflow env set
|
|
49
|
-
xflow env rm
|
|
50
|
-
|
|
51
|
-
${(0, ui_1.bold)('
|
|
52
|
-
xflow db status
|
|
53
|
-
xflow db migrate [--dry-run] [--allow-destructive]
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
${(0, ui_1.bold)('
|
|
57
|
-
xflow logs [--limit N]
|
|
58
|
-
xflow projects list
|
|
59
|
-
xflow projects get [id]
|
|
60
|
-
xflow whoami
|
|
61
|
-
xflow logout
|
|
62
|
-
|
|
63
|
-
${(0, ui_1.bold)('
|
|
64
|
-
XFLOW_TOKEN
|
|
65
|
-
XFLOW_API_URL
|
|
66
|
-
|
|
67
|
-
|
|
15
|
+
(0, ui_1.out)(`${(0, ui_1.bold)('xflow')} ${(0, ui_1.dim)(version_1.CLI_VERSION)} XFlow application hosting
|
|
16
|
+
|
|
17
|
+
${(0, ui_1.bold)('Getting started')}
|
|
18
|
+
xflow login sign in through the browser
|
|
19
|
+
xflow init [dir] new project from the platform template
|
|
20
|
+
xflow templates which templates are available
|
|
21
|
+
xflow link <id> link this folder to a project (id: xflow projects list)
|
|
22
|
+
xflow skills [--global] refresh the platform instructions for an AI agent
|
|
23
|
+
xflow mcp install give the agent platform access without a terminal
|
|
24
|
+
|
|
25
|
+
${(0, ui_1.bold)('Code')}
|
|
26
|
+
xflow status what is on the server and how the local copy differs
|
|
27
|
+
xflow push [--force] send the sources as a new revision
|
|
28
|
+
xflow pull [--into dir] [--revision N]
|
|
29
|
+
fetch the sources (the latest revision by default)
|
|
30
|
+
|
|
31
|
+
${(0, ui_1.bold)('Releasing')}
|
|
32
|
+
xflow deploy [--no-push] send the code, build on the platform, release to dev
|
|
33
|
+
xflow publish show the dev version to visitors
|
|
34
|
+
xflow rollback <version number> return the project to an earlier version
|
|
35
|
+
xflow deployments version history
|
|
36
|
+
|
|
37
|
+
${(0, ui_1.bold)('Functions')}
|
|
38
|
+
xflow functions list what is deployed
|
|
39
|
+
xflow functions deploy [name] build and ship a function
|
|
40
|
+
xflow functions invoke <name> [--data '{"a":1}']
|
|
41
|
+
call a function and print the answer
|
|
42
|
+
xflow functions logs [name] function crashes: stack and console output
|
|
43
|
+
xflow schedules list what runs on a timer
|
|
44
|
+
xflow schedules set <name> "0 3 ? * * *"
|
|
45
|
+
run a function on a schedule (UTC)
|
|
46
|
+
xflow schedules rm <name> take a schedule off
|
|
47
|
+
xflow env [check] function variables: what is stored, what is missing
|
|
48
|
+
xflow env set NAME=value store a variable
|
|
49
|
+
xflow env rm NAME delete a variable
|
|
50
|
+
|
|
51
|
+
${(0, ui_1.bold)('Database')}
|
|
52
|
+
xflow db status which migrations are applied and which are waiting
|
|
53
|
+
xflow db migrate [--dry-run] [--allow-destructive]
|
|
54
|
+
apply the migrations from migrations/*.sql
|
|
55
|
+
|
|
56
|
+
${(0, ui_1.bold)('Reference')}
|
|
57
|
+
xflow logs [--limit N] browser errors from the released application
|
|
58
|
+
xflow projects list projects of the organization
|
|
59
|
+
xflow projects get [id] project card
|
|
60
|
+
xflow whoami whose key this is and what it can do
|
|
61
|
+
xflow logout forget the key
|
|
62
|
+
|
|
63
|
+
${(0, ui_1.bold)('Environment')}
|
|
64
|
+
XFLOW_TOKEN access key (for CI, instead of xflow login)
|
|
65
|
+
XFLOW_API_URL platform address when it is not app.getxflow.com
|
|
66
|
+
|
|
67
|
+
More about one command: xflow help <command>`);
|
|
68
68
|
}
|
|
69
69
|
const TOPICS = {
|
|
70
|
-
db: `${(0, ui_1.bold)('xflow db migrate')}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
--dry-run
|
|
78
|
-
--allow-destructive
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
${(0, ui_1.bold)('DROP TABLE')}, ${(0, ui_1.bold)('DROP COLUMN')}, ${(0, ui_1.bold)('TRUNCATE')}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
${(0, ui_1.bold)('DROP DATABASE')}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
xflow env
|
|
119
|
-
xflow env
|
|
120
|
-
xflow env
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
xflow schedules set
|
|
139
|
-
xflow schedules
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
--method
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
.
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
AGENTS.md
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
--
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
--
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
${(0, ui_1.bold)('xflow
|
|
70
|
+
db: `${(0, ui_1.bold)('xflow db migrate')}: apply migrations
|
|
71
|
+
|
|
72
|
+
The files live in the repository: ${(0, ui_1.bold)('migrations/0001_init.sql')}, ${(0, ui_1.bold)('migrations/0002_orders.sql')}
|
|
73
|
+
and so on. The order comes from the file name, which is why the leading number is
|
|
74
|
+
required. Every migration runs in its own transaction, the history is kept in the
|
|
75
|
+
database itself, and anything already applied is not run again.
|
|
76
|
+
|
|
77
|
+
--dry-run report what would be applied without touching the database
|
|
78
|
+
--allow-destructive allow operations that destroy data
|
|
79
|
+
|
|
80
|
+
About destructive ones. The platform keeps no database history and makes no backups,
|
|
81
|
+
so ${(0, ui_1.bold)('DROP TABLE')}, ${(0, ui_1.bold)('DROP COLUMN')}, ${(0, ui_1.bold)('TRUNCATE')} and ${(0, ui_1.bold)('DELETE FROM')} without a
|
|
82
|
+
condition are rejected unless the flag is given. With the flag, the contents of the
|
|
83
|
+
affected tables are dumped and kept for 7 days: that is a "caught it right away"
|
|
84
|
+
safety net, not a backup. ${(0, ui_1.bold)('DROP DATABASE')} is never allowed, because the database
|
|
85
|
+
is shared across the organization.
|
|
86
|
+
|
|
87
|
+
Editing an already applied file achieves nothing: the comparison is by name, not by
|
|
88
|
+
content. ${(0, ui_1.bold)('xflow db status')} lists such a file separately, so write a new migration
|
|
89
|
+
instead.
|
|
90
|
+
|
|
91
|
+
One logical database can be attached to several projects, so the history may hold
|
|
92
|
+
migrations that are not in your repository. That is normal, but it also means your
|
|
93
|
+
migration can break somebody else's application.`,
|
|
94
|
+
logs: `${(0, ui_1.bold)('xflow logs')} and ${(0, ui_1.bold)('xflow functions logs')}: project errors
|
|
95
|
+
|
|
96
|
+
One stream per project: crashes of the released application in the browser and
|
|
97
|
+
crashes of the cloud functions. The last 200 entries are kept, older ones fall off.
|
|
98
|
+
|
|
99
|
+
--limit N how many to show (10 by default)
|
|
100
|
+
|
|
101
|
+
A function reports its own crashes: Yandex exposes its logs only over gRPC, so the
|
|
102
|
+
wrapper catches the exception, carries the tail of the console with it (the last 40
|
|
103
|
+
${(0, ui_1.bold)('console.log')} lines of that call) and sends it to the platform. Successful calls
|
|
104
|
+
write nothing, otherwise every request would pay for it in latency.
|
|
105
|
+
|
|
106
|
+
What never reaches this list: a crash while the module is starting (the function
|
|
107
|
+
never gets as far as the wrapper), going over 90 seconds, and running out of memory.
|
|
108
|
+
Those show up in the answer to ${(0, ui_1.bold)('xflow functions invoke')}.
|
|
109
|
+
|
|
110
|
+
Browser errors are collected by ${(0, ui_1.bold)('src/utils/error-logger.ts')} of the template and
|
|
111
|
+
only from released addresses: a local ${(0, ui_1.bold)('npm run dev')} writes nothing here.`,
|
|
112
|
+
env: `${(0, ui_1.bold)('xflow env')}: environment variables of the functions
|
|
113
|
+
|
|
114
|
+
Keys, passwords and third-party addresses are kept by the platform, not by the
|
|
115
|
+
repository. A value goes up and never comes back: the only place to see it is inside
|
|
116
|
+
the function. So keep your own copy wherever you got it from.
|
|
117
|
+
|
|
118
|
+
xflow env what is stored (names, not values)
|
|
119
|
+
xflow env check what the functions of this project are missing
|
|
120
|
+
xflow env set SMTP_PASSWORD=… store
|
|
121
|
+
xflow env rm SMTP_PASSWORD delete
|
|
122
|
+
|
|
123
|
+
--scope project visible to this project only, not the whole organization
|
|
124
|
+
|
|
125
|
+
${(0, ui_1.bold)('check')} reads the sources in ${(0, ui_1.bold)('functions/')} and looks for ${(0, ui_1.bold)('process.env.NAME')}
|
|
126
|
+
references. The same rule applies on deploy: a function receives only the variables it
|
|
127
|
+
mentions by name. A name assembled from an expression (${(0, ui_1.bold)("process.env['KEY_' + n]")})
|
|
128
|
+
never reaches the environment, so read variables literally.
|
|
129
|
+
|
|
130
|
+
The value reaches the function on deploy, not at the moment it is stored: after
|
|
131
|
+
${(0, ui_1.bold)('env set')} you need ${(0, ui_1.bold)('xflow functions deploy')} for the functions involved. The same
|
|
132
|
+
after a delete: a function already deployed keeps the old value until its next deploy.`,
|
|
133
|
+
schedules: `${(0, ui_1.bold)('xflow schedules')}: running functions on a timer
|
|
134
|
+
|
|
135
|
+
A schedule is a Yandex timer trigger: it calls the function itself, with no
|
|
136
|
+
application and no browser involved.
|
|
137
|
+
|
|
138
|
+
xflow schedules set report "0 3 ? * * *" every day at 03:00
|
|
139
|
+
xflow schedules set digest "0 */4 ? * * *" every 4 hours
|
|
140
|
+
xflow schedules rm report take off every schedule of a function
|
|
141
|
+
|
|
142
|
+
Six fields: ${(0, ui_1.bold)('minutes hours day-of-month month day-of-week year')}. Exactly one of
|
|
143
|
+
the day-of-month and day-of-week fields has to be ${(0, ui_1.bold)('?')}, which is not our quirk but
|
|
144
|
+
how Yandex works. ${(0, ui_1.bold)('The time is always UTC')}, local time is not understood.
|
|
145
|
+
|
|
146
|
+
--payload '{"mode":"full"}' the body the function will receive
|
|
147
|
+
|
|
148
|
+
A scheduled run arrives at the handler as a POST with no headers, and the project
|
|
149
|
+
token is not checked on it: such an event cannot be forged from outside. The function
|
|
150
|
+
has to be deployed already, since the schedule points at it and not the other way round.
|
|
151
|
+
|
|
152
|
+
A failed run shows up in ${(0, ui_1.bold)('xflow functions logs')}: nobody is watching a scheduled
|
|
153
|
+
function, so the wrapper reports a crash the same way it does on an ordinary call.`,
|
|
154
|
+
invoke: `${(0, ui_1.bold)('xflow functions invoke')} <name>: call a function
|
|
155
|
+
|
|
156
|
+
Calls it exactly the way the application does, with the X-Project-Token header. The
|
|
157
|
+
token is taken from the project card on the platform, no local .env is needed.
|
|
158
|
+
|
|
159
|
+
--data '{"a":1}' request body (the method becomes POST by default)
|
|
160
|
+
--method GET a different method
|
|
161
|
+
|
|
162
|
+
Prints the status, the response time and the body. A non-zero exit code on 4xx and
|
|
163
|
+
5xx: in CI such a call has to fail the step. The cause of a crash is shown by
|
|
164
|
+
${(0, ui_1.bold)('xflow functions logs <name>')}.`,
|
|
165
|
+
mcp: `${(0, ui_1.bold)('xflow mcp install')}: connect the agent to the platform directly
|
|
166
|
+
|
|
167
|
+
Writes the MCP server into the configuration of a client that has its own connect
|
|
168
|
+
command: today that is Claude Code, and for the rest the command prints what to enter
|
|
169
|
+
by hand. After that the agent runs the platform without a terminal: it inspects the
|
|
170
|
+
database, applies migrations, ships and calls functions, sets schedules, reads logs.
|
|
171
|
+
The commands stay: code, builds and releases are still done by the CLI, because
|
|
172
|
+
pushing sources through MCP means filling the agent context and spending your money.
|
|
173
|
+
|
|
174
|
+
The command takes the access key from your own login and does not print it: usually
|
|
175
|
+
the agent runs this command itself, and everything printed lands in its context and in
|
|
176
|
+
the chat history.
|
|
177
|
+
|
|
178
|
+
--show-token print the key anyway (not while under an agent)
|
|
179
|
+
|
|
180
|
+
There is one key per person per organization and its scope is not narrowed: the agent
|
|
181
|
+
sees every project of the organization and names the one it needs. It takes the
|
|
182
|
+
project from the ${(0, ui_1.bold)('project_id')} argument, not from your folder, which it cannot see.`,
|
|
183
|
+
skills: `${(0, ui_1.bold)('xflow skills')}: platform instructions for an AI agent
|
|
184
|
+
|
|
185
|
+
An agent has no way to know about XFlow: the platform is not in its training. The
|
|
186
|
+
instructions explain how to release and publish, where the design system components
|
|
187
|
+
come from, and where to look for production errors. ${(0, ui_1.bold)('init')} and ${(0, ui_1.bold)('link')} lay them
|
|
188
|
+
down on their own, so this command is for refreshing them after a CLI update: the two
|
|
189
|
+
ship as one version.
|
|
190
|
+
|
|
191
|
+
The format is shared (agentskills.io) but the folders differ per tool, so we write all:
|
|
192
|
+
|
|
193
|
+
.claude/skills/xflow/SKILL.md Claude Code
|
|
194
|
+
.agents/skills/xflow/SKILL.md Codex, OpenClaw
|
|
195
|
+
.cursor/rules/xflow.mdc Cursor: it does not read the shared format
|
|
196
|
+
|
|
197
|
+
--global the same in the home folder, which makes the skill visible in every
|
|
198
|
+
project. There ~/.codex/skills is added as well, because Codex looks in
|
|
199
|
+
its shared catalog only inside a repository. The Cursor rule and
|
|
200
|
+
AGENTS.md stay per project, they have no global counterpart
|
|
201
|
+
|
|
202
|
+
Plus a few pointer lines in ${(0, ui_1.bold)('AGENTS.md')}. A skill is picked up lazily, only when its
|
|
203
|
+
description matches the task, and "add a customers table" will not trigger it. AGENTS.md
|
|
204
|
+
is always read by the agent, which is why the pointer is appended there, at the end of
|
|
205
|
+
the file and once. ${(0, ui_1.bold)('CLAUDE.md')} is left alone: Claude Code reads .claude/skills anyway.`,
|
|
206
|
+
push: `${(0, ui_1.bold)('xflow push')}: send the sources
|
|
207
|
+
|
|
208
|
+
The whole working copy goes up at once, as one revision. What is not sent:
|
|
209
|
+
node_modules, .git, dist, build, .next, any .env, plus everything listed in
|
|
210
|
+
.xflowignore and in the ignore field of xflow.json.
|
|
211
|
+
|
|
212
|
+
If the server holds a revision newer than the one you worked from, the push is
|
|
213
|
+
rejected. That means somebody pushed before you: fetch their changes alongside
|
|
214
|
+
(${(0, ui_1.bold)('xflow pull --into ./server-copy')}), merge them in git on your side, and retry.
|
|
215
|
+
|
|
216
|
+
--force overwrites the server revision. Before that the CLI shows whose work you are
|
|
217
|
+
about to destroy and asks for confirmation by typing the project name. In a
|
|
218
|
+
non-interactive run (CI, an agent) there is no way to confirm: a version conflict has
|
|
219
|
+
to fail the build rather than silently destroy somebody else's work.`,
|
|
220
|
+
pull: `${(0, ui_1.bold)('xflow pull')}: fetch the sources
|
|
221
|
+
|
|
222
|
+
By default it fetches the latest revision into the project folder and refuses to write
|
|
223
|
+
into a non-empty one: the platform cannot merge changes, that is git's job.
|
|
224
|
+
|
|
225
|
+
--into <dir> unpack alongside, to compare
|
|
226
|
+
--revision <N> a specific revision (the list: xflow deployments)
|
|
227
|
+
--force overwrite the folder completely`,
|
|
228
|
+
deploy: `${(0, ui_1.bold)('xflow deploy')}: build and release
|
|
229
|
+
|
|
230
|
+
Two steps: sending the sources and building on the platform. The build command and the
|
|
231
|
+
output directory come from xflow.json (npm run build and dist by default).
|
|
232
|
+
|
|
233
|
+
--no-push do not send sources, build from the latest server revision
|
|
234
|
+
--force allow overwriting the server revision while sending
|
|
235
|
+
|
|
236
|
+
The platform builds, in a clean sandbox on one Node version for everybody, so "it
|
|
237
|
+
worked on my machine" no longer depends on your machine. Before the build the project
|
|
238
|
+
is checked against the template: mismatches are printed as a list and the build does
|
|
239
|
+
not start at all.
|
|
240
|
+
|
|
241
|
+
The built version is visible on the project page, and the CLI prints the link. Visitors
|
|
242
|
+
see it after ${(0, ui_1.bold)('xflow publish')}. The address of the build itself is not printed:
|
|
243
|
+
it carries the version number, and after the next publish such a link quietly serves an
|
|
244
|
+
old copy.`,
|
|
245
|
+
init: `${(0, ui_1.bold)('xflow init')} [dir]: a new project
|
|
246
|
+
|
|
247
|
+
Lays down the platform template: React on Vite, Tailwind, a set of components
|
|
248
|
+
(${(0, ui_1.bold)('src/components/ui')}) and ready-made blocks (${(0, ui_1.bold)('src/components/blocks')}): table,
|
|
249
|
+
form, filters, kanban, charts. Projects created in the web get the same template, which
|
|
250
|
+
is what makes the applications look alike.
|
|
251
|
+
|
|
252
|
+
Building the interface on top of these components and the tokens in ${(0, ui_1.bold)('src/index.css')}
|
|
253
|
+
is not a formality: your own palette on top of them looks foreign inside the platform.
|
|
254
|
+
|
|
255
|
+
--name <name> project name (the folder name by default)
|
|
256
|
+
--template <id> a different template (the list: xflow templates)
|
|
257
|
+
--database <id> attach a logical database of the organization
|
|
258
|
+
|
|
259
|
+
The order: the project is created on the platform first, because without it there is
|
|
260
|
+
nowhere to get the token for .env. If writing the files fails, the project stays empty
|
|
261
|
+
and the CLI explains how to pick it up with the link command.`,
|
|
262
|
+
rollback: `${(0, ui_1.bold)('xflow rollback')} <version number>: return an earlier build
|
|
263
|
+
|
|
264
|
+
Switches the project to the chosen build. Only the build comes back: the sources stay
|
|
265
|
+
at their own revision, and returning them is a separate decision
|
|
266
|
+
(${(0, ui_1.bold)('xflow pull --revision N --into ./old-version')}).
|
|
267
|
+
|
|
268
|
+
Visitors keep seeing the published version until ${(0, ui_1.bold)('xflow publish')} is run.`,
|
|
267
269
|
};
|