@flowcore/cli 4.17.0 → 4.17.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/CHANGELOG.md +7 -0
- package/README.md +129 -14
- package/oclif.manifest.json +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,13 @@
|
|
|
10
10
|
|
|
11
11
|
* added description to start that includes week ([58687a7](https://github.com/flowcore-io/flowcore-cli/commit/58687a7bbb66aaa5d6da26af88e555cbb1e72467))
|
|
12
12
|
|
|
13
|
+
## [4.17.1](https://github.com/flowcore-io/flowcore-cli/compare/v4.17.0...v4.17.1) (2025-08-19)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* **package:** :arrow_up: update @flowcore/cli-plugin-scenario to version 4.5.0 ([f02c587](https://github.com/flowcore-io/flowcore-cli/commit/f02c5870c9dc84c3c731d4cc27716c1b77bf7ba9))
|
|
19
|
+
|
|
13
20
|
## [4.17.0](https://github.com/flowcore-io/flowcore-cli/compare/v4.16.0...v4.17.0) (2025-07-10)
|
|
14
21
|
|
|
15
22
|
|
package/README.md
CHANGED
|
@@ -10,6 +10,11 @@ Flowcore CLI is a command line interface for interacting with the Flowcore Platf
|
|
|
10
10
|
<!-- toc -->
|
|
11
11
|
* [Usage](#usage)
|
|
12
12
|
* [Commands](#commands)
|
|
13
|
+
* [or](#or)
|
|
14
|
+
* [or](#or-1)
|
|
15
|
+
* [Dry-run differences](#dry-run-differences)
|
|
16
|
+
* [Apply changes (confirm prompt unless -y)](#apply-changes-confirm-prompt-unless--y)
|
|
17
|
+
* [Delete resources from a manifest or stdin](#delete-resources-from-a-manifest-or-stdin)
|
|
13
18
|
<!-- tocstop -->
|
|
14
19
|
# Usage
|
|
15
20
|
<!-- usage -->
|
|
@@ -18,7 +23,7 @@ $ npm install -g @flowcore/cli
|
|
|
18
23
|
$ flowcore COMMAND
|
|
19
24
|
running command...
|
|
20
25
|
$ flowcore (--version)
|
|
21
|
-
@flowcore/cli/4.17.
|
|
26
|
+
@flowcore/cli/4.17.1 linux-x64 node-v20.16.0
|
|
22
27
|
$ flowcore --help [COMMAND]
|
|
23
28
|
USAGE
|
|
24
29
|
$ flowcore COMMAND
|
|
@@ -109,7 +114,7 @@ EXAMPLES
|
|
|
109
114
|
$ flowcore apply -f ./path/to/manifest.yml
|
|
110
115
|
```
|
|
111
116
|
|
|
112
|
-
_See code: [src/commands/apply.ts](https://github.com/flowcore-io/flowcore-cli/blob/v4.17.
|
|
117
|
+
_See code: [src/commands/apply.ts](https://github.com/flowcore-io/flowcore-cli/blob/v4.17.1/src/commands/apply.ts)_
|
|
113
118
|
|
|
114
119
|
## `flowcore auth delete key API_KEY_NAME`
|
|
115
120
|
|
|
@@ -562,7 +567,7 @@ EXAMPLES
|
|
|
562
567
|
cat ./path/to/manifest.yml | flowcore delete -f -
|
|
563
568
|
```
|
|
564
569
|
|
|
565
|
-
_See code: [src/commands/delete.ts](https://github.com/flowcore-io/flowcore-cli/blob/v4.17.
|
|
570
|
+
_See code: [src/commands/delete.ts](https://github.com/flowcore-io/flowcore-cli/blob/v4.17.1/src/commands/delete.ts)_
|
|
566
571
|
|
|
567
572
|
## `flowcore delete policy NAME`
|
|
568
573
|
|
|
@@ -629,7 +634,7 @@ EXAMPLES
|
|
|
629
634
|
$ flowcore diff -f ./path/to/manifest.yml
|
|
630
635
|
```
|
|
631
636
|
|
|
632
|
-
_See code: [src/commands/diff.ts](https://github.com/flowcore-io/flowcore-cli/blob/v4.17.
|
|
637
|
+
_See code: [src/commands/diff.ts](https://github.com/flowcore-io/flowcore-cli/blob/v4.17.1/src/commands/diff.ts)_
|
|
633
638
|
|
|
634
639
|
## `flowcore edit policy NAME`
|
|
635
640
|
|
|
@@ -731,7 +736,7 @@ EXAMPLES
|
|
|
731
736
|
$ flowcore get adapter adapter-name -t tenant-name -s scenario-name
|
|
732
737
|
```
|
|
733
738
|
|
|
734
|
-
_See code: [@flowcore/cli-plugin-scenario](https://github.com/flowcore/flowcore-cli-plugin-scenario/blob/v4.
|
|
739
|
+
_See code: [@flowcore/cli-plugin-scenario](https://github.com/flowcore/flowcore-cli-plugin-scenario/blob/v4.5.0/src/commands/get/adapter.ts)_
|
|
735
740
|
|
|
736
741
|
## `flowcore get policy [NAME]`
|
|
737
742
|
|
|
@@ -804,7 +809,7 @@ EXAMPLES
|
|
|
804
809
|
$ flowcore get scenario scenario-name -t tenant-name
|
|
805
810
|
```
|
|
806
811
|
|
|
807
|
-
_See code: [@flowcore/cli-plugin-scenario](https://github.com/flowcore/flowcore-cli-plugin-scenario/blob/v4.
|
|
812
|
+
_See code: [@flowcore/cli-plugin-scenario](https://github.com/flowcore/flowcore-cli-plugin-scenario/blob/v4.5.0/src/commands/get/scenario.ts)_
|
|
808
813
|
|
|
809
814
|
## `flowcore get tenant [NAME]`
|
|
810
815
|
|
|
@@ -873,7 +878,7 @@ EXAMPLES
|
|
|
873
878
|
$ flowcore info
|
|
874
879
|
```
|
|
875
880
|
|
|
876
|
-
_See code: [src/commands/info.ts](https://github.com/flowcore-io/flowcore-cli/blob/v4.17.
|
|
881
|
+
_See code: [src/commands/info.ts](https://github.com/flowcore-io/flowcore-cli/blob/v4.17.1/src/commands/info.ts)_
|
|
877
882
|
|
|
878
883
|
## `flowcore login`
|
|
879
884
|
|
|
@@ -930,7 +935,7 @@ EXAMPLES
|
|
|
930
935
|
$ flowcore logs adapter adapter-name -t tenant-name -s scenario-name --json
|
|
931
936
|
```
|
|
932
937
|
|
|
933
|
-
_See code: [@flowcore/cli-plugin-scenario](https://github.com/flowcore/flowcore-cli-plugin-scenario/blob/v4.
|
|
938
|
+
_See code: [@flowcore/cli-plugin-scenario](https://github.com/flowcore/flowcore-cli-plugin-scenario/blob/v4.5.0/src/commands/logs/adapter.ts)_
|
|
934
939
|
|
|
935
940
|
## `flowcore new bun-service NAME`
|
|
936
941
|
|
|
@@ -1385,7 +1390,7 @@ EXAMPLES
|
|
|
1385
1390
|
$ flowcore reset adapter adapter-name -t tenant-name -s scenario-name -e 9cb35da2-ba64-4bb5-86d6-ef20ebc62ab7
|
|
1386
1391
|
```
|
|
1387
1392
|
|
|
1388
|
-
_See code: [@flowcore/cli-plugin-scenario](https://github.com/flowcore/flowcore-cli-plugin-scenario/blob/v4.
|
|
1393
|
+
_See code: [@flowcore/cli-plugin-scenario](https://github.com/flowcore/flowcore-cli-plugin-scenario/blob/v4.5.0/src/commands/reset/adapter.ts)_
|
|
1389
1394
|
|
|
1390
1395
|
## `flowcore scenario apply`
|
|
1391
1396
|
|
|
@@ -1415,7 +1420,7 @@ EXAMPLES
|
|
|
1415
1420
|
$ cat <<EOF | flowcore scenario apply -f -
|
|
1416
1421
|
```
|
|
1417
1422
|
|
|
1418
|
-
_See code: [@flowcore/cli-plugin-scenario](https://github.com/flowcore/flowcore-cli-plugin-scenario/blob/v4.
|
|
1423
|
+
_See code: [@flowcore/cli-plugin-scenario](https://github.com/flowcore/flowcore-cli-plugin-scenario/blob/v4.5.0/src/commands/scenario/apply.ts)_
|
|
1419
1424
|
|
|
1420
1425
|
## `flowcore scenario generate transformer`
|
|
1421
1426
|
|
|
@@ -1442,7 +1447,7 @@ EXAMPLES
|
|
|
1442
1447
|
$ flowcore scenario generate transformer -n flow-type-name -d "description of the transformer" -f example.yaml
|
|
1443
1448
|
```
|
|
1444
1449
|
|
|
1445
|
-
_See code: [@flowcore/cli-plugin-scenario](https://github.com/flowcore/flowcore-cli-plugin-scenario/blob/v4.
|
|
1450
|
+
_See code: [@flowcore/cli-plugin-scenario](https://github.com/flowcore/flowcore-cli-plugin-scenario/blob/v4.5.0/src/commands/scenario/generate/transformer.ts)_
|
|
1446
1451
|
|
|
1447
1452
|
## `flowcore scenario init`
|
|
1448
1453
|
|
|
@@ -1474,7 +1479,7 @@ EXAMPLES
|
|
|
1474
1479
|
$ flowcore scenario init -t flowcore -n scenario-name -f example.yaml
|
|
1475
1480
|
```
|
|
1476
1481
|
|
|
1477
|
-
_See code: [@flowcore/cli-plugin-scenario](https://github.com/flowcore/flowcore-cli-plugin-scenario/blob/v4.
|
|
1482
|
+
_See code: [@flowcore/cli-plugin-scenario](https://github.com/flowcore/flowcore-cli-plugin-scenario/blob/v4.5.0/src/commands/scenario/init.ts)_
|
|
1478
1483
|
|
|
1479
1484
|
## `flowcore scenario local`
|
|
1480
1485
|
|
|
@@ -1507,7 +1512,7 @@ EXAMPLES
|
|
|
1507
1512
|
$ cat <<EOF | flowcore scenario local -f -
|
|
1508
1513
|
```
|
|
1509
1514
|
|
|
1510
|
-
_See code: [@flowcore/cli-plugin-scenario](https://github.com/flowcore/flowcore-cli-plugin-scenario/blob/v4.
|
|
1515
|
+
_See code: [@flowcore/cli-plugin-scenario](https://github.com/flowcore/flowcore-cli-plugin-scenario/blob/v4.5.0/src/commands/scenario/local.ts)_
|
|
1511
1516
|
|
|
1512
1517
|
## `flowcore stream STREAM`
|
|
1513
1518
|
|
|
@@ -1621,7 +1626,7 @@ EXAMPLES
|
|
|
1621
1626
|
$ flowcore update
|
|
1622
1627
|
```
|
|
1623
1628
|
|
|
1624
|
-
_See code: [src/commands/update.ts](https://github.com/flowcore-io/flowcore-cli/blob/v4.17.
|
|
1629
|
+
_See code: [src/commands/update.ts](https://github.com/flowcore-io/flowcore-cli/blob/v4.17.1/src/commands/update.ts)_
|
|
1625
1630
|
|
|
1626
1631
|
## `flowcore version`
|
|
1627
1632
|
|
|
@@ -1660,3 +1665,113 @@ DESCRIPTION
|
|
|
1660
1665
|
|
|
1661
1666
|
_See code: [@flowcore/cli-plugin-config](https://github.com/flowcore/flowcore-cli-plugin-config/blob/v2.5.0/src/commands/whoami.ts)_
|
|
1662
1667
|
<!-- commandsstop -->
|
|
1668
|
+
|
|
1669
|
+
### What is this CLI?
|
|
1670
|
+
|
|
1671
|
+
The `flowcore` CLI is the main entrypoint for the Flowcore Platform. It aggregates a set of official plugins to help you configure projects, manage Data Cores and Scenarios, stream events, scaffold apps, and administer tenants and access.
|
|
1672
|
+
|
|
1673
|
+
This repository provides the binary (`flowcore`), wires plugin loading, and ships a few core commands (`apply`, `diff`, `delete`, `info`). All other functionality is provided by bundled plugins (see below).
|
|
1674
|
+
|
|
1675
|
+
### Requirements
|
|
1676
|
+
|
|
1677
|
+
* Node.js >= 18
|
|
1678
|
+
* macOS, Linux, or Windows (PowerShell supported via autocompletion)
|
|
1679
|
+
|
|
1680
|
+
### Installation
|
|
1681
|
+
|
|
1682
|
+
```bash
|
|
1683
|
+
npm install -g @flowcore/cli
|
|
1684
|
+
# or
|
|
1685
|
+
yarn global add @flowcore/cli
|
|
1686
|
+
# or
|
|
1687
|
+
pnpm add -g @flowcore/cli
|
|
1688
|
+
```
|
|
1689
|
+
|
|
1690
|
+
Verify installation:
|
|
1691
|
+
|
|
1692
|
+
```bash
|
|
1693
|
+
flowcore --version
|
|
1694
|
+
flowcore help
|
|
1695
|
+
```
|
|
1696
|
+
|
|
1697
|
+
### Quick start
|
|
1698
|
+
|
|
1699
|
+
1) Configure the CLI (GraphQL and Auth endpoints, client credentials):
|
|
1700
|
+
|
|
1701
|
+
```bash
|
|
1702
|
+
flowcore config set -u https://graph.api.flowcore.io/graphql \
|
|
1703
|
+
-l https://auth.flowcore.io/realms/flowcore/.well-known/openid-configuration \
|
|
1704
|
+
-c <client-id>
|
|
1705
|
+
```
|
|
1706
|
+
|
|
1707
|
+
2) Login:
|
|
1708
|
+
|
|
1709
|
+
```bash
|
|
1710
|
+
flowcore login
|
|
1711
|
+
```
|
|
1712
|
+
|
|
1713
|
+
3) Work with manifests:
|
|
1714
|
+
|
|
1715
|
+
```bash
|
|
1716
|
+
# Dry-run differences
|
|
1717
|
+
flowcore diff -f ./flowcore.yaml
|
|
1718
|
+
|
|
1719
|
+
# Apply changes (confirm prompt unless -y)
|
|
1720
|
+
flowcore apply -f ./flowcore.yaml
|
|
1721
|
+
|
|
1722
|
+
# Delete resources from a manifest or stdin
|
|
1723
|
+
flowcore delete -f ./flowcore.yaml
|
|
1724
|
+
cat ./flowcore.yaml | flowcore delete -f -
|
|
1725
|
+
```
|
|
1726
|
+
|
|
1727
|
+
4) Stream events (via Core plugin):
|
|
1728
|
+
|
|
1729
|
+
```bash
|
|
1730
|
+
flowcore stream "https://flowcore.io/<org>/<data core>/<flow type>/<event type>.stream" -s 1w --json
|
|
1731
|
+
```
|
|
1732
|
+
|
|
1733
|
+
### Configuration profiles
|
|
1734
|
+
|
|
1735
|
+
Most commands accept `--profile <name>` to select a saved configuration profile. Use `flowcore config set --profile <name>` to create/update profiles and `flowcore config show` to view active settings. Profiles are respected by all bundled plugins that support them.
|
|
1736
|
+
|
|
1737
|
+
### Included plugins
|
|
1738
|
+
|
|
1739
|
+
These are loaded by default (see `package.json -> oclif.plugins`):
|
|
1740
|
+
|
|
1741
|
+
* @flowcore/cli-plugin-config: Configuration and auth utilities. [Repository](https://github.com/flowcore/flowcore-cli-plugin-config)
|
|
1742
|
+
* @flowcore/cli-plugin-data-core: Data Core authoring commands. [Repository](https://github.com/flowcore/flowcore-cli-data-core)
|
|
1743
|
+
* @flowcore/cli-plugin-scenario: Scenario authoring, logs and local runners. [Repository](https://github.com/flowcore/flowcore-cli-plugin-scenario)
|
|
1744
|
+
* @flowcore/cli-plugin-core: Streaming (`stream`, `stream http`). [Repository](https://github.com/flowcore/flowcore-cli-plugin-core)
|
|
1745
|
+
* @flowcore/cli-plugin-generator: Scaffolding for apps, services, plugins, transformers. [Repository](https://github.com/flowcore/flowcore-cli-plugin-generator)
|
|
1746
|
+
* @flowcore/cli-plugin-auth-management: API keys and secrets management. [Repository](https://github.com/flowcore-io/cli-plugin-auth-management)
|
|
1747
|
+
* @flowcore/cli-plugin-tenant-management: Tenant retrieval and management. [Repository](https://github.com/flowcore-io/tenant-management)
|
|
1748
|
+
* @flowcore/cli-plugin-ai: AI configuration helpers. [Repository](https://github.com/flowcore-io/cli-plugin-ai)
|
|
1749
|
+
* @flowcore/cli-plugin-iam: Identity and access management helpers. [Repository](https://github.com/flowcore-io/cli-plugin-iam)
|
|
1750
|
+
|
|
1751
|
+
Refer to each plugin’s README for complete command references. The autogenerated section above also lists available commands as detected at build time.
|
|
1752
|
+
|
|
1753
|
+
### Shell autocompletion
|
|
1754
|
+
|
|
1755
|
+
Enable autocompletion for your shell:
|
|
1756
|
+
|
|
1757
|
+
```bash
|
|
1758
|
+
flowcore autocomplete
|
|
1759
|
+
```
|
|
1760
|
+
|
|
1761
|
+
### Update checks and first-run behavior
|
|
1762
|
+
|
|
1763
|
+
* The CLI periodically checks for updates and will warn if a newer version is available.
|
|
1764
|
+
* On first run, a small hook adds the JSR registry mapping to the CLI data directory’s `.npmrc` so JSR-scoped packages resolve correctly.
|
|
1765
|
+
|
|
1766
|
+
### Environment variables
|
|
1767
|
+
|
|
1768
|
+
| Variable | Type | Description | Default | Required |
|
|
1769
|
+
|----------|------|-------------|----------|----------|
|
|
1770
|
+
| FLOWCORE_NPM_LOG_LEVEL | string | Log level for npm operations used by plugin management | - | |
|
|
1771
|
+
| FLOWCORE_NPM_REGISTRY | string | Custom npm registry for plugin installation and updates | - | |
|
|
1772
|
+
|
|
1773
|
+
### Troubleshooting
|
|
1774
|
+
|
|
1775
|
+
* Run `flowcore info` to print locations for data, config, and cache directories.
|
|
1776
|
+
* Use `--json` on commands that support it for machine-readable output.
|
|
1777
|
+
* If you see permission issues with global installs, consider using a Node version manager (nvm) or `corepack`.
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"@flowcore/cli-plugin-data-core": "^3.3.0",
|
|
14
14
|
"@flowcore/cli-plugin-generator": "^1.6.0",
|
|
15
15
|
"@flowcore/cli-plugin-iam": "^1.7.0",
|
|
16
|
-
"@flowcore/cli-plugin-scenario": "^4.
|
|
16
|
+
"@flowcore/cli-plugin-scenario": "^4.5.0",
|
|
17
17
|
"@flowcore/cli-plugin-tenant-management": "^1.1.1",
|
|
18
18
|
"@flowcore/sdk": "^1.50.0",
|
|
19
19
|
"@flowcore/time-bucket": "^1.1.0",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"prestart": "npm run build",
|
|
120
120
|
"update-schema": "rover graph introspect https://graph.api.staging.flowcore.io/graphql -o schema.gql"
|
|
121
121
|
},
|
|
122
|
-
"version": "4.17.
|
|
122
|
+
"version": "4.17.1",
|
|
123
123
|
"bugs": "https://github.com/flowcore-io/flowcore-cli/issues",
|
|
124
124
|
"keywords": [
|
|
125
125
|
"flowcore",
|