entando-bundle-cli 1.0.3-ENG-5433-PR-192
Install from the command line:
Learn more about npm packages
$ npm install @entando/entando-bundle-cli@1.0.3-ENG-5433-PR-192
Install via package.json:
"@entando/entando-bundle-cli": "1.0.3-ENG-5433-PR-192"
About this version
Entando Bundle CLI, a tool to create and publish Entando bundles.
$ npm install -g @entando/entando-bundle-cli
$ entando-bundle-cli COMMAND
running command...
$ entando-bundle-cli (--version)
@entando/entando-bundle-cli/1.0.3 linux-x64 node-v14.19.1
$ entando-bundle-cli --help [COMMAND]
USAGE
$ entando-bundle-cli COMMAND
...
entando-bundle-cli api add MFENAME CLAIMNAME
entando-bundle-cli api add-ext MFENAME CLAIMNAME
entando-bundle-cli api rm MFENAME CLAIMNAME
entando-bundle-cli build [component...] [--all-ms | --all-mfe | --all]
entando-bundle-cli generate-cr
entando-bundle-cli help [COMMAND]
entando-bundle-cli images
entando-bundle-cli info
entando-bundle-cli init NAME
entando-bundle-cli list
entando-bundle-cli mfe add NAME
entando-bundle-cli mfe rm NAME
entando-bundle-cli ms add NAME
entando-bundle-cli ms rm NAME
entando-bundle-cli pack
entando-bundle-cli publish
entando-bundle-cli run [component...] [--all-ms | --all-mfe | --all]
entando-bundle-cli svc disable SERVICENAME
entando-bundle-cli svc enable SERVICENAME
entando-bundle-cli svc list
entando-bundle-cli svc logs [service...] [--all]
entando-bundle-cli svc restart [service...] [--all]
entando-bundle-cli svc start [service...] [--all]
entando-bundle-cli svc stop [service...] [--all]
Add an internal API claim to the specified MFE component
USAGE
$ entando-bundle-cli api add [MFENAME] [CLAIMNAME] --serviceName <value> --serviceUrl <value>
ARGUMENTS
MFENAME Name of the Micro Frontend component
CLAIMNAME Name of the API claim
FLAGS
--serviceName=<value> (required) Microservice name within the Bundle
--serviceUrl=<value> (required) Local microservice URL
DESCRIPTION
Add an internal API claim to the specified MFE component
EXAMPLES
$ entando-bundle-cli api add mfe1 ms1-api --serviceName ms1 --serviceUrl http://localhost:8080
Add an external API claim to the specified MFE component
USAGE
$ entando-bundle-cli api add-ext [MFENAME] [CLAIMNAME] [--serviceName <value> --bundle <value>]
ARGUMENTS
MFENAME Name of the Micro Frontend component
CLAIMNAME Name of the API claim
FLAGS
--bundle=<value> Target Bundle Docker repository with the format [docker://]<organization>/<repository> or
[docker://]<registry>/<organization>/<repository>
--serviceName=<value> Microservice name within the target Bundle
DESCRIPTION
Add an external API claim to the specified MFE component
EXAMPLES
$ entando-bundle-cli api add-ext mfe1 ms1-api --bundle registry.hub.docker.com/my-org/my-bundle --serviceName ms1
Remove an API claim from the specified MFE component
USAGE
$ entando-bundle-cli api rm [MFENAME] [CLAIMNAME]
ARGUMENTS
MFENAME Name of the Micro Frontend component
CLAIMNAME Name of the API claim
DESCRIPTION
Remove an API claim from the specified MFE component
EXAMPLES
$ entando-bundle-cli api rm my-mfe my-api-claim
Build bundle components
USAGE
$ entando-bundle-cli build [component...] [--all-ms | --all-mfe | --all]
FLAGS
--all Build all the bundle components
--all-mfe Build all the bundle micro frontends
--all-ms Build all the bundle microservices
--fail-fast Allow to fail the build command as soon as one of the sub-tasks fails
--max-parallel=<value> Maximum number of processes running at the same time. Default value is 3
--stdout Print build output to stdout instead of files
DESCRIPTION
Build bundle components
EXAMPLES
$ entando-bundle-cli build my-component
$ entando-bundle-cli build my-component-1 my-component-2
$ entando-bundle-cli build --all-ms
$ entando-bundle-cli build --all-mfe
$ entando-bundle-cli build --all
See code: dist/commands/build.ts
Generate the Entando Custom Resource (CR) for a bundle project
USAGE
$ entando-bundle-cli generate-cr [-i <value>] [-d] [-f -o <value>]
FLAGS
-d, --digest Include Docker images digests
-f, --force Suppress the confirmation prompt in case of file overwrite
-i, --image=<value> Name of the bundle Docker image with the format [docker://]<organization>/<repository> or
[docker://]<registry>/<organization>/<repository>
-o, --output=<value> Write the result to the specified output file
DESCRIPTION
Generate the Entando Custom Resource (CR) for a bundle project
EXAMPLES
$ entando-bundle-cli generate-cr
$ entando-bundle-cli generate-cr --image=my-org/my-bundle
$ entando-bundle-cli generate-cr -i my-registry/my-org/my-bundle
$ entando-bundle-cli generate-cr --image=my-org/my-bundle --digest
$ entando-bundle-cli generate-cr -o my-cr.yml
See code: dist/commands/generate-cr.ts
Display help for entando-bundle-cli.
USAGE
$ entando-bundle-cli help [COMMAND] [-n]
ARGUMENTS
COMMAND Command to show help for.
FLAGS
-n, --nested-commands Include all nested commands in the output.
DESCRIPTION
Display help for entando-bundle-cli.
See code: @oclif/plugin-help
List the Docker images and their corresponding tags that are included in the bundle
USAGE
$ entando-bundle-cli images
DESCRIPTION
List the Docker images and their corresponding tags that are included in the bundle
See code: dist/commands/images.ts
Show status information for the bundle project
USAGE
$ entando-bundle-cli info
DESCRIPTION
Show status information for the bundle project
EXAMPLES
$ entando-bundle-cli info
See code: dist/commands/info.ts
Perform the scaffolding of a bundle project
USAGE
$ entando-bundle-cli init [NAME] [--version <value>] [--hub-url <value> --from-hub]
ARGUMENTS
NAME Bundle project name
FLAGS
--from-hub Initializes a bundle project from the Entando Hub
--hub-url=<value> Custom Entando Hub url
--version=<value> Project version
DESCRIPTION
Perform the scaffolding of a bundle project
EXAMPLES
$ entando-bundle-cli init my-bundle
$ entando-bundle-cli init my-bundle --version=0.0.1
$ entando-bundle-cli init my-bundle --from-hub
See code: dist/commands/init.ts
List the available components in the bundle
USAGE
$ entando-bundle-cli list [--ms] [--mfe]
FLAGS
--mfe List only Micro Frontend components
--ms List only microservice components
DESCRIPTION
List the available components in the bundle
EXAMPLES
$ entando-bundle-cli list
$ entando-bundle-cli list --ms
$ entando-bundle-cli list --ms --mfe
See code: dist/commands/list.ts
Add a Micro Frontend component to the bundle
USAGE
$ entando-bundle-cli mfe add [NAME] [--stack react|angular|custom] [--type
app-builder|widget|widget-config] [--slot primary-header|primary-menu|content]
ARGUMENTS
NAME Name of the Micro Frontend component
FLAGS
--slot=<option> Micro Frontend App Builder slot (only if type=app-builder)
<options: primary-header|primary-menu|content>
--stack=<option> [default: react] Micro Frontend stack
<options: react|angular|custom>
--type=<option> [default: widget] Micro Frontend type
<options: app-builder|widget|widget-config>
DESCRIPTION
Add a Micro Frontend component to the bundle
EXAMPLES
$ entando-bundle-cli mfe add my-mfe
$ entando-bundle-cli mfe add my-mfe --stack react
Remove a Micro Frontend component to the bundle
USAGE
$ entando-bundle-cli mfe rm [NAME]
ARGUMENTS
NAME Name of the Micro Frontend component
DESCRIPTION
Remove a Micro Frontend component to the bundle
EXAMPLES
$ entando-bundle-cli mfe rm my-mfe
Add a microservice component to the bundle
USAGE
$ entando-bundle-cli ms add [NAME] [--stack node|spring-boot|custom]
ARGUMENTS
NAME Name of the microservice component
FLAGS
--stack=<option> [default: spring-boot] Microservice stack
<options: node|spring-boot|custom>
DESCRIPTION
Add a microservice component to the bundle
EXAMPLES
$ entando-bundle-cli ms add my-ms
$ entando-bundle-cli ms add my-ms --stack spring-boot
Remove a microservice component from the current bundle
USAGE
$ entando-bundle-cli ms rm [NAME]
ARGUMENTS
NAME Microservice name
DESCRIPTION
Remove a microservice component from the current bundle
EXAMPLES
$ entando-bundle-cli ms rm my-microservice
Generate the bundle Docker images
USAGE
$ entando-bundle-cli pack [-o <value>] [-r <value>] [-f <value>] [--stdout] [--max-parallel <value>]
[-s] [--fail-fast]
FLAGS
-f, --file=<value> Bundle Dockerfile (by default it is automatically generated)
-o, --org=<value> Docker organization name
-r, --registry=<value> Docker registry (default is registry.hub.docker.com)
-s, --skip-docker-build Skip the building of Docker images
--fail-fast Allow to fail the pack command as soon as one of the sub-tasks fails
--max-parallel=<value> Maximum number of processes running at the same time. Default value is 3
--stdout Log build output to standard output
DESCRIPTION
Generate the bundle Docker images
EXAMPLES
$ entando-bundle-cli pack
$ entando-bundle-cli pack --org=my-org
$ entando-bundle-cli pack -f my-Dockerfile
See code: dist/commands/pack.ts
Publish bundle Docker images
USAGE
$ entando-bundle-cli publish [-r <value>] [-o <value>]
FLAGS
-o, --org=<value> Docker organization name
-r, --registry=<value> Docker registry (default is registry.hub.docker.com)
DESCRIPTION
Publish bundle Docker images
EXAMPLES
$ entando-bundle-cli publish --registry registry.hub.docker.com --org my-docker-organization
See code: dist/commands/publish.ts
Run bundle components
USAGE
$ entando-bundle-cli run [component...] [--all-ms | --all-mfe | --all]
FLAGS
--all Run all the bundle components
--all-mfe Run all the bundle micro frontends
--all-ms Run all the bundle microservices
DESCRIPTION
Run bundle components
EXAMPLES
$ entando-bundle-cli run my-component
$ entando-bundle-cli run my-component-1 my-component-2
$ entando-bundle-cli run --all-ms
$ entando-bundle-cli run --all-mfe
$ entando-bundle-cli run --all
See code: dist/commands/run.ts
Disable auxiliary services
USAGE
$ entando-bundle-cli svc disable [SERVICENAME] [-r]
ARGUMENTS
SERVICENAME Name of an available service
FLAGS
-r, --[no-]remove Remove service configuration and data in svc folder
DESCRIPTION
Disable auxiliary services
EXAMPLES
$ entando-bundle-cli svc disable external-service
$ entando-bundle-cli svc disable external-service --remove
$ entando-bundle-cli svc disable external-service --no-remove
Enable auxiliary services
USAGE
$ entando-bundle-cli svc enable [SERVICENAME]
ARGUMENTS
SERVICENAME Name of an available service
DESCRIPTION
Enable auxiliary services
EXAMPLES
$ entando-bundle-cli svc enable external-service
List auxiliary services
USAGE
$ entando-bundle-cli svc list [--available]
FLAGS
--available List all available services
DESCRIPTION
List auxiliary services
EXAMPLES
$ entando-bundle-cli svc list
Display running auxiliary services logs
USAGE
$ entando-bundle-cli svc logs [service...] [--all]
FLAGS
--all Display logs of all enabled services in the bundle descriptor
DESCRIPTION
Display running auxiliary services logs
EXAMPLES
$ entando-bundle-cli svc logs --all
$ entando-bundle-cli svc logs ext-service
$ entando-bundle-cli svc logs ext-service1 ext-service2
Restart running auxiliary services
USAGE
$ entando-bundle-cli svc restart [service...] [--all]
FLAGS
--all Restarts all enabled services in the bundle descriptor
DESCRIPTION
Restart running auxiliary services
EXAMPLES
$ entando-bundle-cli svc restart --all
$ entando-bundle-cli svc restart ext-service
$ entando-bundle-cli svc restart ext-service1 ext-service2
Start enabled auxiliary services
USAGE
$ entando-bundle-cli svc start [service...] [--all]
FLAGS
--all Starts all enabled services in the bundle descriptor
DESCRIPTION
Start enabled auxiliary services
EXAMPLES
$ entando-bundle-cli svc start --all
$ entando-bundle-cli svc start ext-service
$ entando-bundle-cli svc start ext-service1 ext-service2
Stop running auxiliary services
USAGE
$ entando-bundle-cli svc stop [service...] [--all]
FLAGS
--all Stops all enabled services in the bundle descriptor
DESCRIPTION
Stop running auxiliary services
EXAMPLES
$ entando-bundle-cli svc stop --all
$ entando-bundle-cli svc stop ext-service
$ entando-bundle-cli svc stop ext-service1 ext-service2
-
ENTANDO_BUNDLE_CLI_BIN_NAME
: customizes CLI name that appears inUSAGE
andEXAMPLES
sections of the help (entando-bundle-cli
by default) -
ENTANDO_BUNDLE_CLI_INIT_SUPPRESS_NO_ENTANDO_JSON_WARNING
: Disables the warning about missing entando.json in bundles initialized from Hub (false
by default) -
ENTANDO_CLI_BASE_URL
: Entando app base URL -
ENTANDO_CLI_CRANE_BIN
: path to the crane executable -
ENTANDO_CLI_DEBUG
: boolean flag (true
|false
) used to enable debug logging (false
by default) -
ENTANDO_CLI_DEFAULT_DOCKER_REGISTRY
: Default Docker registry (registry.hub.docker.com
by default) -
ENTANDO_CLI_DEFAULT_HUB
: default domain of your Entando Hub - default sets tohttps://entando.com/entando-hub-api
-
ENTANDO_CLI_ECR_TOKEN
: ECR/CM API authentication token -
ENTANDO_CLI_ECR_URL
: URL of ECR/CM API
It is suggested to install nvm. From the project root folder run:
nvm install
nvm use
If you are receiving command not found
errors while executing pre-commit hooks with Husky using nvm
, please refer to https://typicode.github.io/husky/#/?id=command-not-found
To print debug information define a static debug
function using the debugFactory
:
private static debug = debugFactory(MyClass)
Debug output can be enabled using the following environment variable:
ENTANDO_CLI_DEBUG=true
Debug output is sent to stderr, so you can redirect it to a file in the following way:
entando-bundle-cli command 2>log.txt
Details
- entando-bundle-cli
- entando
- about 1 year ago
- MIT
- 35 dependencies
Assets
- entando-bundle-cli-1.0.3-ENG-5433-PR-192.tgz
Download activity
- Total downloads 1
- Last 30 days 0
- Last week 0
- Today 0