commit | 9aff332ab12dad584aaa65a86530650d83dff2d0 | [log] [tgz] |
---|---|---|
author | Bertrand Delacretaz <bdelacretaz@apache.org> | Fri Jul 30 10:47:52 2021 +0200 |
committer | Bertrand Delacretaz <bdelacretaz@apache.org> | Fri Jul 30 10:47:52 2021 +0200 |
tree | a84f94950147914c67e69f4357fc01b8ab0b4e24 | |
parent | e50c4b0d1e072c2c9739618aa6df6543d776d1ca [diff] |
SLING-10676 - remove SECURITY.md which is not needed
This module is part of the Apache Sling project.
slingpackager
is a nodejs based command line tool alternative to the Content Package Maven Plugin from Adobe or the Content Package Maven Pluging from WCM.IO. It allows to work with content packages intended for any Apache Sling based product using composum as its package manager or Adobe AEM with the CRX package manager.
It covers the following use cases:
For an example project using the slingpackager
please have a look at the simple-sling-vue-example project.
To install slingpackager globally use
npm install @apache-sling/slingpackager -g
This will make the packager available as a command line tool on your system. If you'd like to install slingpackager
to your project only (or to try it before you commit to a global install), in your project folder, use
npm install @apache-sling/slingpackager --save-dev
You can then execute
npx slingpackager
to run slingpackager in your project.
slingpackager <command> Commands: slingpackager build <package> build package on server slingpackager delete <package> delete package on server slingpackager download <package> download package from server slingpackager install <package> install package on server slingpackager list list installed packages slingpackager package <folder> create a package slingpackager test test package manager service connection slingpackager uninstall <package> uninstall package on server slingpackager upload <package> upload package to server Options: --version Show version number [boolean] --help Show help [boolean] --server, -s server url [default: "http://localhost:8080"] --user, -u server credentials in the form username:password [default: "admin:admin"] --verbose, -v turn on verbose output
slingpackager list list installed packages Options: --version Show version number [boolean] --help Show help [boolean] --server, -s server url [default: "http://localhost:8080"] --user, -u server credentials in the form username:password [default: "admin:admin"] --verbose, -v turn on verbose output
slingpackager package <folder> create a package Options: --version Show version number [boolean] --help Show help [boolean] --verbose, -v turn on verbose output --destination, -d Package destination directory. Defaults to current directory. --config, -c Package configuration/properties. Package properties.xml and package name are generated from this. If this option is missing slingpackage will search for slingpackager.config.js in the parent directories.
The <folder>
should point to the parent folder of jcr_root and META_INF with your project's content.
Bellow is an example of minimal configuration required for package generation using package
command.
module.exports = { "vault-properties": { "comment": "myapp - UI Apps", "entry": { "name": "ui.apps", "version": "1.0-SNAPSHOT", "group": "myapp" } } }
This should be placed in the file named slingpackager.config.js anywhere in the folder path passed to package
command (we suggest project's root folder). Or path to configuration file can be specified via --config option.
The above example will result in a package file named ui.apps-1.0-SNAPSHOT.zip with the fillowing properties.xml file inside it's META/vault folder.
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> <properties> <comment>myapp - UI Apps</comment> <entry key="name">ui.apps</entry> <entry key="version">1.0-SNAPSHOT</entry> <entry key="group">themeclean-flex</entry> <entry key="createdBy">slingpackager</entry> <entry key="acHandling">IGNORE</entry> <entry key="allowIndexDefinitions">false</entry> <entry key="requiresRoot">false</entry> <entry key="path">/etc/packages/myapp/ui.apps-1.0-SNAPSHOT.zip</entry> </properties>
slingpackager upload <package> upload package to server Options: --version Show version number [boolean] --help Show help [boolean] --server, -s server url [default: "http://localhost:8080"] --user, -u server credentials in the form username:password [default: "admin:admin"] --verbose, -v turn on verbose output --install, -i install the package after it's uploaded
slingpackager download <package> download package from server Options: --version Show version number [boolean] --help Show help [boolean] --server, -s server url [default: "http://localhost:8080"] --user, -u server credentials in the form username:password [default: "admin:admin"] --retry, -r maximum number of service calls to attempt before failing [default: 10] --verbose, -v turn on verbose output [boolean] [default: false] --destination, -d Package destination directory. Defaults to current directory.
slingpackager install <package> install package on server Options: --version Show version number [boolean] --help Show help [boolean] --server, -s server url [default: "http://localhost:8080"] --user, -u server credentials in the form username:password [default: "admin:admin"] --verbose, -v turn on verbose output
slingpackager uninstall <package> uninstall package on server Options: --version Show version number [boolean] --help Show help [boolean] --server, -s server url [default: "http://localhost:8080"] --user, -u server credentials in the form username:password [default: "admin:admin"] --verbose, -v turn on verbose output
slingpackager build <package> build package on server Options: --version Show version number [boolean] --help Show help [boolean] --server, -s server url [default: "http://localhost:8080"] --user, -u server credentials in the form username:password [default: "admin:admin"] --verbose, -v turn on verbose output
slingpackager delete <package> delete package on server Options: --version Show version number [boolean] --help Show help [boolean] --server, -s server url [default: "http://localhost:8080"] --user, -u server credentials in the form username:password [default: "admin:admin"] --verbose, -v turn on verbose output
slingpackager package /pathToMyProject/pathToPackageContent
slingpackager upload ui.apps-1.0-SNAPSHOT.zip
slingpackager upload ui.apps-1.0-SNAPSHOT.zip -i
slingpackager upload ui.apps-1.0-SNAPSHOT.zip -u admin:somePassword -s http://localhost:4502
slingpackager list name=ui.apps group=themeclean-flex version=1.0-SNAPSHOT path=/themeclean-flex/ui.apps-1.0-SNAPSHOT.zip name=ui.apps group=themeclean version=1.0-SNAPSHOT path=/themeclean/ui.apps-1.0-SNAPSHOT.zip name=example-vue.ui.apps group=com.peregrine-cms.example version=1.0-SNAPSHOT path=/com.peregrine-cms.example/example-vue.ui.apps-1.0-SNAPSHOT.zip name=admin.sling.ui.apps group=com.peregrine-cms version=1.0-SNAPSHOT path=/com.peregrine-cms/admin.sling.ui.apps-1.0-SNAPSHOT.zip name=admin.ui.apps group=com.peregrine-cms version=1.0-SNAPSHOT path=/com.peregrine-cms/admin.ui.apps-1.0-SNAPSHOT.zip name=admin.ui.materialize group=com.peregrine-cms version=1.0-SNAPSHOT path=/com.peregrine-cms/admin.ui.materialize-1.0-SNAPSHOT.zip name=base.ui.apps group=com.peregrine-cms version=1.0-SNAPSHOT path=/com.peregrine-cms/base.ui.apps-1.0-SNAPSHOT.zip name=external group=com.peregrine-cms version=1.0-SNAPSHOT path=/com.peregrine-cms/external-1.0-SNAPSHOT.zip name=felib.ui.apps group=com.peregrine-cms version=1.0-SNAPSHOT path=/com.peregrine-cms/felib.ui.apps-1.0-SNAPSHOT.zip name=node-js.ui.apps group=com.peregrine-cms version=1.0-SNAPSHOT path=/com.peregrine-cms/node-js.ui.apps-1.0-SNAPSHOT.zip name=node-js.ui.apps.script group=com.peregrine-cms version=1.0-SNAPSHOT path=/com.peregrine-cms/node-js.ui.apps.script-1.0-SNAPSHOT.zip name=pagerender-vue.ui.apps group=com.peregrine-cms version=1.0-SNAPSHOT path=/com.peregrine-cms/pagerender-vue.ui.apps-1.0-SNAPSHOT.zip name=replication.ui.apps group=com.peregrine-cms version=1.0-SNAPSHOT path=/com.peregrine-cms/replication.ui.apps-1.0-SNAPSHOT.zip
slingpackager list -s http://localhost:4502 name=we.retail.config group=adobe/aem6 version=4.0.0 path=we.retail.config-4.0.0.zip name=aem-sample-replication-config group=adobe/aem6/sample version=0.0.2 path=aem-sample-replication-config-0.0.2.zip name=we.retail.commons.content group=adobe/aem6/sample version=4.0.0 path=we.retail.commons.content-4.0.0.zip name=we.retail.community.apps group=adobe/aem6/sample version=1.11.84 path=we.retail.community.apps-1.11.84.zip name=we.retail.community.content group=adobe/aem6/sample version=1.11.84 path=we.retail.community.content-1.11.84.zip name=we.retail.community.enablement.author group=adobe/aem6/sample version=1.11.87 path=we.retail.community.enablement.author-1.11.87.zip name=we.retail.community.enablement.common group=adobe/aem6/sample version=1.11.84 path=we.retail.community.enablement.common-1.11.84.zip name=we.retail.ui.apps group=adobe/aem6/sample version=4.0.0 path=we.retail.ui.apps-4.0.0.zip ...
slingpackager download /themeclean-flex/ui.apps-1.0-SNAPSHOT.zip
slingpackager install /themeclean-flex/ui.apps-1.0-SNAPSHOT.zip
slingpackager uninstall /themeclean-flex/ui.apps-1.0-SNAPSHOT.zip
slingpackager build /themeclean-flex/ui.apps-1.0-SNAPSHOT.zip
slingpackager delete /themeclean-flex/ui.apps-1.0-SNAPSHOT.zip