@getxflow/cli 1.2.0 → 1.2.1
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 -2
- package/dist/commands/auth.js +1 -0
- package/dist/commands/connections.js +1 -1
- package/dist/commands/projects.js +1 -1
- package/dist/help.js +2 -1
- package/dist/version.js +1 -1
- package/package.json +24 -24
- package/skills/xflow/SKILL.md +722 -718
package/README.md
CHANGED
|
@@ -6,9 +6,8 @@ CLI for the [XFlow](https://getxflow.com) platform: source sync, builds and rele
|
|
|
6
6
|
npm i -g @getxflow/cli
|
|
7
7
|
xflow login
|
|
8
8
|
xflow init my-app
|
|
9
|
-
cd my-app && npm install
|
|
9
|
+
cd my-app/apps/my-app && npm install && xflow dev
|
|
10
10
|
xflow deploy -m "First version"
|
|
11
|
-
xflow publish
|
|
12
11
|
```
|
|
13
12
|
|
|
14
13
|
Requires Node 20+. The package has no dependencies: it holds an access key, and nobody
|
package/dist/commands/auth.js
CHANGED
|
@@ -79,6 +79,7 @@ async function awaitConfirmation(client, start) {
|
|
|
79
79
|
const others = (0, credentials_1.listOrgs)(client.apiUrl).length - 1;
|
|
80
80
|
if (others > 0)
|
|
81
81
|
(0, ui_1.note)((0, ui_1.dim)(` ${others} more stored: xflow org`));
|
|
82
|
+
(0, ui_1.note)((0, ui_1.dim)(' Documentation: https://docs.getxflow.com'));
|
|
82
83
|
return;
|
|
83
84
|
}
|
|
84
85
|
}
|
|
@@ -70,7 +70,7 @@ async function connectionsList(args) {
|
|
|
70
70
|
const data = await (0, api_1.apiJson)(client, endpoint(projectId));
|
|
71
71
|
if (data.connections.length === 0) {
|
|
72
72
|
(0, ui_1.note)('No connections you can use in this organization');
|
|
73
|
-
(0, ui_1.note)((0, ui_1.dim)(' Somebody connects an account first:
|
|
73
|
+
(0, ui_1.note)((0, ui_1.dim)(' Somebody connects an account first: Integrations in the xflow sidebar'));
|
|
74
74
|
return;
|
|
75
75
|
}
|
|
76
76
|
(0, ui_1.table)(data.connections.map((row) => [
|
|
@@ -95,7 +95,7 @@ async function init(args) {
|
|
|
95
95
|
(0, ui_1.note)((0, ui_1.dim)(` Its database goes to the own server "${project.server.name}"`));
|
|
96
96
|
(0, ui_1.out)('');
|
|
97
97
|
(0, ui_1.out)(` ${(0, ui_1.bold)('Next:')}`);
|
|
98
|
-
(0, ui_1.out)(` cd ${(0, node_path_1.basename)(target)}
|
|
98
|
+
(0, ui_1.out)(` cd ${(0, node_path_1.basename)(target)}`);
|
|
99
99
|
if (folder) {
|
|
100
100
|
(0, ui_1.out)(` cd ${config_1.APPS_DIR}/${folder} && npm install && xflow dev # the app on 127.0.0.1:3000`);
|
|
101
101
|
(0, ui_1.out)(` xflow deploy ${config_1.APPS_DIR}/${folder} -m "First version"`);
|
package/dist/help.js
CHANGED
|
@@ -131,7 +131,8 @@ ${(0, ui_1.bold)('Environment')}
|
|
|
131
131
|
XFLOW_TOKEN access key (for CI, instead of xflow login)
|
|
132
132
|
XFLOW_API_URL platform address when it is not app.getxflow.com
|
|
133
133
|
|
|
134
|
-
More about one command: xflow help <command
|
|
134
|
+
More about one command: xflow help <command>
|
|
135
|
+
Documentation: https://docs.getxflow.com (for agents: https://docs.getxflow.com/llms.txt)`);
|
|
135
136
|
}
|
|
136
137
|
const TOPICS = {
|
|
137
138
|
org: `${(0, ui_1.bold)('xflow org')}: several organizations, one terminal
|
package/dist/version.js
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DEFAULT_API_URL = exports.CLI_VERSION = void 0;
|
|
4
4
|
/** Keep in sync with cli/package.json. */
|
|
5
|
-
exports.CLI_VERSION = '1.2.
|
|
5
|
+
exports.CLI_VERSION = '1.2.1';
|
|
6
6
|
/** Overridden by XFLOW_API_URL or the `api` field in xflow.json. */
|
|
7
7
|
exports.DEFAULT_API_URL = 'https://app.getxflow.com';
|
package/package.json
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@getxflow/cli",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"description": "CLI for the XFlow platform: projects with apps, functions and a database; source sync, deployment and publishing",
|
|
5
|
-
"license": "UNLICENSED",
|
|
6
|
-
"engines": {
|
|
7
|
-
"node": ">=20"
|
|
8
|
-
},
|
|
9
|
-
"bin": {
|
|
10
|
-
"xflow": "dist/bin.js"
|
|
11
|
-
},
|
|
12
|
-
"files": [
|
|
13
|
-
"dist",
|
|
14
|
-
"skills"
|
|
15
|
-
],
|
|
16
|
-
"scripts": {
|
|
17
|
-
"clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
|
|
18
|
-
"build": "npm run clean && tsc -p tsconfig.json",
|
|
19
|
-
"prepublishOnly": "npm run build"
|
|
20
|
-
},
|
|
21
|
-
"publishConfig": {
|
|
22
|
-
"access": "public"
|
|
23
|
-
}
|
|
24
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@getxflow/cli",
|
|
3
|
+
"version": "1.2.1",
|
|
4
|
+
"description": "CLI for the XFlow platform: projects with apps, functions and a database; source sync, deployment and publishing",
|
|
5
|
+
"license": "UNLICENSED",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": ">=20"
|
|
8
|
+
},
|
|
9
|
+
"bin": {
|
|
10
|
+
"xflow": "dist/bin.js"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"dist",
|
|
14
|
+
"skills"
|
|
15
|
+
],
|
|
16
|
+
"scripts": {
|
|
17
|
+
"clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
|
|
18
|
+
"build": "npm run clean && tsc -p tsconfig.json",
|
|
19
|
+
"prepublishOnly": "npm run build"
|
|
20
|
+
},
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public"
|
|
23
|
+
}
|
|
24
|
+
}
|