A Flowcore CLI plugin for working with Scenarios in the Flowcore Platform
npm install @flowcore/cli-plugin-scenarioA Flowcore CLI plugin for working with Scenarios in the Flowcore Platform



``sh-session`
$ npm install -g @flowcore/cli-plugin-scenario
$ scenario COMMAND
running command...
$ scenario (--version)
@flowcore/cli-plugin-scenario/2.11.0 darwin-arm64 node-v20.15.0
$ scenario --help [COMMAND]
USAGE
$ scenario COMMAND
...
- [scenario get adapter [ADAPTER]](#scenario-get-adapter-adapter)scenario get scenario [SCENARIO]
- [](#scenario-get-scenario-scenario)scenario get scenario copy [SCENARIO]
- [](#scenario-get-scenario-copy-scenario)scenario logs adapter ADAPTER
- scenario reset adapter ADAPTER
- scenario scenario apply
- scenario scenario generate manifest
- scenario scenario generate transformer
- scenario scenario local
-
Get adapter
`
USAGE
$ scenario get adapter [ADAPTER] -t
ARGUMENTS
ADAPTER adapter name or id
FLAGS
-s, --scenario=
-t, --tenant=
--profile=
DESCRIPTION
Get adapter
EXAMPLES
$ scenario get adapter -t tenant-name -s scenario-name
$ scenario get adapter adapter-name -t tenant-name -s scenario-name
`
_See code:
src/commands/get/adapter.ts_
Get scenario
`
USAGE
$ scenario get scenario [SCENARIO] -t
ARGUMENTS
SCENARIO scenario name
FLAGS
-t, --tenant=
--profile=
DESCRIPTION
Get scenario
EXAMPLES
$ scenario get scenario -t tenant-name
$ scenario get scenario scenario-name -t tenant-name
`
_See code:
src/commands/get/scenario.ts_
Get scenario
`
USAGE
$ scenario get scenario copy [SCENARIO] -t
ARGUMENTS
SCENARIO scenario name or id
FLAGS
-t, --tenant=
--profile=
DESCRIPTION
Get scenario
EXAMPLES
$ scenario get scenario copy -t tenant-name
$ scenario get scenario copy scenario-name -t tenant-name
`
_See code: src/commands/get/scenario
copy.ts_
Get adapter logs
`
USAGE
$ scenario logs adapter ADAPTER -t
ARGUMENTS
ADAPTER adapter name or id
FLAGS
-a, --allComponents display logs for all components of the adapter, including Flowcore components
-f, --follow follow
-j, --json json
-l, --limit=
-s, --scenario=
-t, --tenant=
--profile=
DESCRIPTION
Get adapter logs
EXAMPLES
$ scenario logs adapter adapter-name -t tenant-name -s scenario-name
$ scenario logs adapter adapter-name -t tenant-name -s scenario-name -f
$ scenario logs adapter adapter-name -t tenant-name -s scenario-name -l 100
$ scenario logs adapter adapter-name -t tenant-name -s scenario-name --json
`
_See code:
src/commands/logs/adapter.ts_
Reset a adapter
`
USAGE
$ scenario reset adapter ADAPTER -s
ARGUMENTS
ADAPTER adapter name or id
FLAGS
-b, --bucket=
-e, --eventId=
-s, --scenario=
-t, --tenant=
--profile=
DESCRIPTION
Reset a adapter
EXAMPLES
$ scenario reset adapter adapter-name -t tenant-name -s scenario-name -b 20240718110000
$ scenario reset adapter adapter-name -t tenant-name -s scenario-name -b first
$ scenario reset adapter adapter-name -t tenant-name -s scenario-name -b last
$ scenario reset adapter adapter-name -t tenant-name -s scenario-name -e 9cb35da2-ba64-4bb5-86d6-ef20ebc62ab7
`
_See code:
src/commands/reset/adapter.ts_
Apply a manifest configuration for a Scenario to the Flowcore Platform
`
USAGE
$ scenario scenario apply -f
FLAGS
-d, --[no-]deploy deploy the scenario after applying
-f, --file=
-n, --name=
-t, --tenant=
url when accessing your organization
-y, --yes skip confirmation
--profile=
DESCRIPTION
Apply a manifest configuration for a Scenario to the Flowcore Platform
EXAMPLES
$ scenario scenario apply -t flowcore -f example.yaml
$ scenario scenario apply -t flowcore -n scenario-name -f example.yaml
$ cat <
_See code:
src/commands/scenario/apply.ts_
Generate a scenario manifest
`
USAGE
$ scenario scenario generate manifest -t
FLAGS
-f, --file=
-n, --name=
-o, --overwrite overwrite the existing scenario
-t, --tenant=
seen in the url when accessing your organization
--placeholder generate a placeholder manifest
--profile=
DESCRIPTION
Generate a scenario manifest
EXAMPLES
$ scenario scenario generate manifest -t flowcore
$ scenario scenario generate manifest -t flowcore --placeholder
$ scenario scenario generate manifest -t flowcore -f example.yaml
$ scenario scenario generate manifest -t flowcore -n scenario-name -f example.yaml
`
_See code:
src/commands/scenario/generate/manifest.ts_
add a transformer to a scenario manifest
`
USAGE
$ scenario scenario generate transformer [--profile
FLAGS
-d, --description=
-f, --file=
-n, --name=
--profile=
DESCRIPTION
add a transformer to a scenario manifest
EXAMPLES
$ scenario scenario generate transformer -n flow-type-name
$ scenario scenario generate transformer -n flow-type-name -d "description of the transformer"
$ scenario scenario generate transformer -n flow-type-name -d "description of the transformer" -f example.yaml
`
_See code:
src/commands/scenario/generate/transformer.ts_
Spin up local stream threads based on a scenario manifest
`
USAGE
$ scenario scenario local -e
FLAGS
-H, --header=
-c, --scan Scan the full time range
-e, --endpoint=
-f, --file=
-m, --mode=
DESCRIPTION
Spin up local stream threads based on a scenario manifest
EXAMPLES
$ scenario scenario local -f example.yaml
$ scenario scenario local -f example.yaml -s latest
$ cat <
_See code:
src/commands/scenario/local.ts_