Entando Bundle CLI
Purpose
This CLI application has the purpose of converting EntandoBundles published as an NPM module into EntandoDEBundle custom resource for Entando 6 digital-exchange consumption
For details on EntandoBundles structure, how to compose them and publish them to an NPM registry, please refer to the documentation in the entando-sample-bundle
Install the CLI globally
To install the tool globally for development
npm install -g ./
This CLI tool is able to convert npm module(s) into EntandoDeBundle custom resources. You can see the help for the tool by invoking the --help
command
entando-bundle --help
To generate a bundle using npm repository you can use the from-npm
command. Check the details for the generate command
entando-bundle from-npm --help
To generate a bundle using git repository you can use the from-git
command. Check the details for the generate command
entando-bundle from-git --help
entando-bundle from-git
--repository
option will clone the repository to /tmp/tmp-ecr-bundle-repo_<TIMESTAMP>
folder, gather the needed information and will remove the folder.
descriptor.yaml
is expected to be at the root of repository or repository path.
Tag sorting and filtration
Currently, tags are sorted using semver logic and are filtered out using /^v?\d+\.\d+.\d+/
regex, which would match tags like: v2.0.0
, v1.0.12
, v2.0.1-rc
, etc.
Thumbnails
Thumbnail URLs (--thumbnail-url
option) have to be surrounded with quotation marks.