@flowcore/cli 3.1.0 → 3.2.0

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/CHANGELOG.md CHANGED
@@ -10,12 +10,20 @@
10
10
 
11
11
  * added description to start that includes week ([58687a7](https://github.com/flowcore-io/flowcore-cli/commit/58687a7bbb66aaa5d6da26af88e555cbb1e72467))
12
12
 
13
- ## [3.1.0](https://github.com/flowcore-io/flowcore-cli/compare/v3.0.1...v3.1.0) (2024-08-30)
13
+ ## [3.2.0](https://github.com/flowcore-io/flowcore-cli/compare/v3.1.1...v3.2.0) (2024-08-30)
14
14
 
15
15
 
16
16
  ### Features
17
17
 
18
- * added auth management of api keys ([cf65b6e](https://github.com/flowcore-io/flowcore-cli/commit/cf65b6e50cfaec64cd8aed02974e978be5a6a66a))
18
+ * added get tenant resources ([c800ba7](https://github.com/flowcore-io/flowcore-cli/commit/c800ba740153098b229361a86d1449d71ebdf8e9))
19
+
20
+ ## [3.1.1](https://github.com/flowcore-io/flowcore-cli/compare/v3.1.0...v3.1.1) (2024-08-30)
21
+
22
+
23
+ ### Bug Fixes
24
+
25
+ * added flowcore auth management as default plugin ([659585d](https://github.com/flowcore-io/flowcore-cli/commit/659585d6f78970e9aad025f2d3c030f07d3b6401))
26
+ * character typo ([7bd332f](https://github.com/flowcore-io/flowcore-cli/commit/7bd332f3bb62941649675d9c8c4a3f277399912b))
19
27
 
20
28
  ## [3.0.1](https://github.com/flowcore-io/flowcore-cli/compare/v3.0.0...v3.0.1) (2024-08-29)
21
29
 
package/README.md CHANGED
@@ -18,7 +18,7 @@ $ npm install -g @flowcore/cli
18
18
  $ flowcore COMMAND
19
19
  running command...
20
20
  $ flowcore (--version)
21
- @flowcore/cli/3.1.0 linux-x64 node-v20.17.0
21
+ @flowcore/cli/3.2.0 linux-x64 node-v20.17.0
22
22
  $ flowcore --help [COMMAND]
23
23
  USAGE
24
24
  $ flowcore COMMAND
@@ -28,6 +28,9 @@ USAGE
28
28
  # Commands
29
29
  <!-- commands -->
30
30
  * [`flowcore apply`](#flowcore-apply)
31
+ * [`flowcore auth delete key API_KEY_NAME`](#flowcore-auth-delete-key-api_key_name)
32
+ * [`flowcore auth list key`](#flowcore-auth-list-key)
33
+ * [`flowcore auth new key NAME`](#flowcore-auth-new-key-name)
31
34
  * [`flowcore autocomplete [SHELL]`](#flowcore-autocomplete-shell)
32
35
  * [`flowcore config set`](#flowcore-config-set)
33
36
  * [`flowcore config show`](#flowcore-config-show)
@@ -38,6 +41,7 @@ USAGE
38
41
  * [`flowcore generate nextjs-entity NAME`](#flowcore-generate-nextjs-entity-name)
39
42
  * [`flowcore get adapter [ADAPTER]`](#flowcore-get-adapter-adapter)
40
43
  * [`flowcore get scenario [SCENARIO]`](#flowcore-get-scenario-scenario)
44
+ * [`flowcore get tenant [NAME]`](#flowcore-get-tenant-name)
41
45
  * [`flowcore help [COMMANDS]`](#flowcore-help-commands)
42
46
  * [`flowcore login`](#flowcore-login)
43
47
  * [`flowcore logs adapter ADAPTER`](#flowcore-logs-adapter-adapter)
@@ -86,7 +90,78 @@ EXAMPLES
86
90
  $ flowcore apply -f ./path/to/manifest.yml
87
91
  ```
88
92
 
89
- _See code: [src/commands/apply.ts](https://github.com/flowcore-io/flowcore-cli/blob/v3.1.0/src/commands/apply.ts)_
93
+ _See code: [src/commands/apply.ts](https://github.com/flowcore-io/flowcore-cli/blob/v3.2.0/src/commands/apply.ts)_
94
+
95
+ ## `flowcore auth delete key API_KEY_NAME`
96
+
97
+ Delete an API key
98
+
99
+ ```
100
+ USAGE
101
+ $ flowcore auth delete key API_KEY_NAME -t <value> [--profile <value>]
102
+
103
+ ARGUMENTS
104
+ API_KEY_NAME Name of the API key to delete
105
+
106
+ FLAGS
107
+ -t, --tenant=<value> (required) tenant where the API keys should be listed
108
+ --profile=<value> Specify the configuration profile to use
109
+
110
+ DESCRIPTION
111
+ Delete an API key
112
+
113
+ EXAMPLES
114
+ $ flowcore auth delete key --tenant=tenant-id <api-key-name>
115
+ ```
116
+
117
+ _See code: [@flowcore/cli-plugin-auth-management](https://github.com/flowcore-io/cli-plugin-auth-management/blob/v1.0.1/src/commands/auth/delete/key.ts)_
118
+
119
+ ## `flowcore auth list key`
120
+
121
+ List all API keys
122
+
123
+ ```
124
+ USAGE
125
+ $ flowcore auth list key -t <value> [--profile <value>] [-j]
126
+
127
+ FLAGS
128
+ -j, --json output the API key in JSON format
129
+ -t, --tenant=<value> (required) tenant where the API keys should be listed
130
+ --profile=<value> Specify the configuration profile to use
131
+
132
+ DESCRIPTION
133
+ List all API keys
134
+
135
+ EXAMPLES
136
+ $ flowcore auth list key --tenant=tenant-id
137
+ ```
138
+
139
+ _See code: [@flowcore/cli-plugin-auth-management](https://github.com/flowcore-io/cli-plugin-auth-management/blob/v1.0.1/src/commands/auth/list/key.ts)_
140
+
141
+ ## `flowcore auth new key NAME`
142
+
143
+ Create a new API key
144
+
145
+ ```
146
+ USAGE
147
+ $ flowcore auth new key NAME -t <value> [--profile <value>] [-j]
148
+
149
+ ARGUMENTS
150
+ NAME name of the API key
151
+
152
+ FLAGS
153
+ -j, --json output the API key in JSON format
154
+ -t, --tenant=<value> (required) tenant where the API key should be created
155
+ --profile=<value> Specify the configuration profile to use
156
+
157
+ DESCRIPTION
158
+ Create a new API key
159
+
160
+ EXAMPLES
161
+ $ flowcore auth new key --tenant=tenant-id --name=key-name
162
+ ```
163
+
164
+ _See code: [@flowcore/cli-plugin-auth-management](https://github.com/flowcore-io/cli-plugin-auth-management/blob/v1.0.1/src/commands/auth/new/key.ts)_
90
165
 
91
166
  ## `flowcore autocomplete [SHELL]`
92
167
 
@@ -360,6 +435,35 @@ EXAMPLES
360
435
 
361
436
  _See code: [@flowcore/cli-plugin-scenario](https://github.com/flowcore/flowcore-cli-plugin-scenario/blob/v3.0.1/src/commands/get/scenario.ts)_
362
437
 
438
+ ## `flowcore get tenant [NAME]`
439
+
440
+ Get tenant
441
+
442
+ ```
443
+ USAGE
444
+ $ flowcore get tenant [NAME] [--profile <value>] [-j] [-t <value>]
445
+
446
+ ARGUMENTS
447
+ NAME name
448
+
449
+ FLAGS
450
+ -j, --json output in json
451
+ -t, --tenant=<value> tenant
452
+ --profile=<value> Specify the configuration profile to use
453
+
454
+ DESCRIPTION
455
+ Get tenant
456
+
457
+ EXAMPLES
458
+ $ flowcore get tenant
459
+
460
+ $ flowcore get tenant --tenant=tenant-name
461
+
462
+ $ flowcore get tenant --tenant=tenant-name --json
463
+ ```
464
+
465
+ _See code: [@flowcore/cli-plugin-tenant-management](https://github.com/flowcore-io/tenant-management/blob/v1.0.0/src/commands/get/tenant.ts)_
466
+
363
467
  ## `flowcore help [COMMANDS]`
364
468
 
365
469
  Display help for flowcore.
@@ -48,5 +48,5 @@
48
48
  ]
49
49
  }
50
50
  },
51
- "version": "3.1.0"
51
+ "version": "3.2.0"
52
52
  }
package/package.json CHANGED
@@ -1,117 +1,120 @@
1
1
  {
2
- "author": "Flowcore",
3
- "bin": {
4
- "flowcore": "./bin/run.js"
5
- },
6
- "dependencies": {
7
- "@datastructures-js/queue": "^4.2.3",
8
- "@flowcore/cli-plugin-auth-management": "^1.0.1",
9
- "@flowcore/cli-plugin-config": "^1.1.0",
10
- "@flowcore/cli-plugin-core": "^2.0.0",
11
- "@flowcore/cli-plugin-data-core": "^2.2.2",
12
- "@flowcore/cli-plugin-generator": "^1.3.0",
13
- "@flowcore/cli-plugin-scenario": "^3.0.1",
14
- "@flowcore/time-bucket": "^1.1.0",
15
- "@oclif/core": "^3",
16
- "@oclif/plugin-autocomplete": "^3.0.2",
17
- "@oclif/plugin-help": "^5",
18
- "@oclif/plugin-not-found": "^3.0.4",
19
- "@oclif/plugin-plugins": "^4",
20
- "@oclif/plugin-version": "^2.0.8",
21
- "axios": "^1.6.2",
22
- "cassandra-uuid": "^0.1.0",
23
- "cross-fetch": "^4.0.0",
24
- "dayjs": "^1.11.10",
25
- "enquirer": "^2.4.1",
26
- "graphql": "^16.8.1",
27
- "graphql-request": "^6.1.0",
28
- "jwt-decode": "^4.0.0",
29
- "lodash": "^4.17.21",
30
- "merge": "^2.1.1",
31
- "oclif-plugin-update-notifier": "^1.5.84",
32
- "rxjs": "^7.8.1",
33
- "session": "^0.1.0"
34
- },
35
- "description": "Flowcore CLI for interacting with the Flowcore platform",
36
- "devDependencies": {
37
- "@oclif/prettier-config": "^0.2.1",
38
- "@oclif/test": "^3",
39
- "@types/chai": "^4",
40
- "@types/express": "^4.17.21",
41
- "@types/lodash": "^4.14.202",
42
- "@types/mocha": "^10",
43
- "@types/node": "^18",
44
- "chai": "^4",
45
- "eslint": "^8",
46
- "eslint-config-oclif": "^5",
47
- "eslint-config-oclif-typescript": "^3",
48
- "eslint-config-prettier": "^9.0.0",
49
- "mocha": "^10",
50
- "oclif": "^4.0.4",
51
- "shx": "^0.3.4",
52
- "ts-node": "^10.9.1",
53
- "typescript": "^5"
54
- },
55
- "engines": {
56
- "node": ">=18.0.0"
57
- },
58
- "files": [
59
- "/bin",
60
- "/dist",
61
- "/oclif.manifest.json"
62
- ],
63
- "homepage": "https://github.com/flowcore-io/flowcore-cli",
64
- "license": "MIT",
65
- "main": "",
66
- "name": "@flowcore/cli",
67
- "oclif": {
68
- "bin": "flowcore",
69
- "dirname": "flowcore",
70
- "commands": "./dist/commands",
71
- "plugins": [
72
- "@oclif/plugin-help",
73
- "@oclif/plugin-warn-if-update-available",
74
- "@oclif/plugin-version",
75
- "@oclif/plugin-plugins",
76
- "@oclif/plugin-autocomplete",
77
- "@oclif/plugin-not-found",
78
- "oclif-plugin-update-notifier",
79
- "@flowcore/cli-plugin-config",
80
- "@flowcore/cli-plugin-data-core",
81
- "@flowcore/cli-plugin-scenario",
82
- "@flowcore/cli-plugin-core",
83
- "@flowcore/cli-plugin-generator"
84
- ],
85
- "warnIfUpdateAvailable": {
86
- "timeoutInDays": 2
87
- },
88
- "topicSeparator": " "
89
- },
90
- "repository": "flowcore-io/flowcore-cli",
91
- "scripts": {
92
- "build": "shx rm -rf dist && tsc -b",
93
- "lint": "eslint . --ext .ts",
94
- "postpack": "shx rm -f oclif.manifest.json",
95
- "posttest": "npm run lint",
96
- "prepack": "npm run build && oclif manifest && oclif readme",
97
- "prepare": "npm run build",
98
- "test": "mocha --forbid-only \"test/**/*.test.ts\"",
99
- "version": "oclif readme && git add README.md",
100
- "start": "./bin/run.js",
101
- "prestart": "npm run build",
102
- "update-schema": "rover graph introspect https://graph.api.staging.flowcore.io/graphql -o schema.gql"
103
- },
104
- "version": "3.1.0",
105
- "bugs": "https://github.com/flowcore-io/flowcore-cli/issues",
106
- "keywords": [
107
- "flowcore",
108
- "cli",
109
- "flowcore-cli",
110
- "streaming",
111
- "events",
112
- "data"
113
- ],
114
- "types": "dist/index.d.ts",
115
- "exports": "./lib/index.js",
116
- "type": "module"
2
+ "author": "Flowcore",
3
+ "bin": {
4
+ "flowcore": "./bin/run.js"
5
+ },
6
+ "dependencies": {
7
+ "@datastructures-js/queue": "^4.2.3",
8
+ "@flowcore/cli-plugin-auth-management": "^1.0.1",
9
+ "@flowcore/cli-plugin-config": "^1.1.0",
10
+ "@flowcore/cli-plugin-core": "^2.0.0",
11
+ "@flowcore/cli-plugin-data-core": "^2.2.2",
12
+ "@flowcore/cli-plugin-generator": "^1.3.0",
13
+ "@flowcore/cli-plugin-scenario": "^3.0.1",
14
+ "@flowcore/cli-plugin-tenant-management": "^1.0.0",
15
+ "@flowcore/time-bucket": "^1.1.0",
16
+ "@oclif/core": "^3",
17
+ "@oclif/plugin-autocomplete": "^3.0.2",
18
+ "@oclif/plugin-help": "^5",
19
+ "@oclif/plugin-not-found": "^3.0.4",
20
+ "@oclif/plugin-plugins": "^4",
21
+ "@oclif/plugin-version": "^2.0.8",
22
+ "axios": "^1.6.2",
23
+ "cassandra-uuid": "^0.1.0",
24
+ "cross-fetch": "^4.0.0",
25
+ "dayjs": "^1.11.10",
26
+ "enquirer": "^2.4.1",
27
+ "graphql": "^16.8.1",
28
+ "graphql-request": "^6.1.0",
29
+ "jwt-decode": "^4.0.0",
30
+ "lodash": "^4.17.21",
31
+ "merge": "^2.1.1",
32
+ "oclif-plugin-update-notifier": "^1.5.84",
33
+ "rxjs": "^7.8.1",
34
+ "session": "^0.1.0"
35
+ },
36
+ "description": "Flowcore CLI for interacting with the Flowcore platform",
37
+ "devDependencies": {
38
+ "@oclif/prettier-config": "^0.2.1",
39
+ "@oclif/test": "^3",
40
+ "@types/chai": "^4",
41
+ "@types/express": "^4.17.21",
42
+ "@types/lodash": "^4.14.202",
43
+ "@types/mocha": "^10",
44
+ "@types/node": "^18",
45
+ "chai": "^4",
46
+ "eslint": "^8",
47
+ "eslint-config-oclif": "^5",
48
+ "eslint-config-oclif-typescript": "^3",
49
+ "eslint-config-prettier": "^9.0.0",
50
+ "mocha": "^10",
51
+ "oclif": "^4.0.4",
52
+ "shx": "^0.3.4",
53
+ "ts-node": "^10.9.1",
54
+ "typescript": "^5"
55
+ },
56
+ "engines": {
57
+ "node": ">=18.0.0"
58
+ },
59
+ "files": [
60
+ "/bin",
61
+ "/dist",
62
+ "/oclif.manifest.json"
63
+ ],
64
+ "homepage": "https://github.com/flowcore-io/flowcore-cli",
65
+ "license": "MIT",
66
+ "main": "",
67
+ "name": "@flowcore/cli",
68
+ "oclif": {
69
+ "bin": "flowcore",
70
+ "dirname": "flowcore",
71
+ "commands": "./dist/commands",
72
+ "plugins": [
73
+ "@oclif/plugin-help",
74
+ "@oclif/plugin-warn-if-update-available",
75
+ "@oclif/plugin-version",
76
+ "@oclif/plugin-plugins",
77
+ "@oclif/plugin-autocomplete",
78
+ "@oclif/plugin-not-found",
79
+ "oclif-plugin-update-notifier",
80
+ "@flowcore/cli-plugin-config",
81
+ "@flowcore/cli-plugin-data-core",
82
+ "@flowcore/cli-plugin-scenario",
83
+ "@flowcore/cli-plugin-core",
84
+ "@flowcore/cli-plugin-generator",
85
+ "@flowcore/cli-plugin-auth-management",
86
+ "@flowcore/cli-plugin-tenant-management"
87
+ ],
88
+ "warnIfUpdateAvailable": {
89
+ "timeoutInDays": 2
90
+ },
91
+ "topicSeparator": " "
92
+ },
93
+ "repository": "flowcore-io/flowcore-cli",
94
+ "scripts": {
95
+ "build": "shx rm -rf dist && tsc -b",
96
+ "lint": "eslint . --ext .ts",
97
+ "postpack": "shx rm -f oclif.manifest.json",
98
+ "posttest": "npm run lint",
99
+ "prepack": "npm run build && oclif manifest && oclif readme",
100
+ "prepare": "npm run build",
101
+ "test": "mocha --forbid-only \"test/**/*.test.ts\"",
102
+ "version": "oclif readme && git add README.md",
103
+ "start": "./bin/run.js",
104
+ "prestart": "npm run build",
105
+ "update-schema": "rover graph introspect https://graph.api.staging.flowcore.io/graphql -o schema.gql"
106
+ },
107
+ "version": "3.2.0",
108
+ "bugs": "https://github.com/flowcore-io/flowcore-cli/issues",
109
+ "keywords": [
110
+ "flowcore",
111
+ "cli",
112
+ "flowcore-cli",
113
+ "streaming",
114
+ "events",
115
+ "data"
116
+ ],
117
+ "types": "dist/index.d.ts",
118
+ "exports": "./lib/index.js",
119
+ "type": "module"
117
120
  }