A small repo (more of a gist) to help automate the process of :
- creating a package with a filter on a distant (dev) instance of AEM.
- building the package.
- download the package. and then :
- uploading it onto you local instance of AEM.
- install it.
More or less, the script is only a sequence of "curl" commands.
The code is really messy. The dev instance server seems to have a timeout of 1 minute. So building a package should take less than that, otherwise, it failed.
- Copy/Paste the
.env.exampleinto a.envfile. - Connect to your dev instance and look for the
login-tokencookie. Copy the value. - Replace all the values of the
.envfile with the correct ones. - If not already installed, install
poetry. Then you can install deps withpoetry install. - Edit the
helpers/package_names_and_filters.pyfile to match the packages you want to create/process. Please remember that due to the 1minute timeout, the package should be quick to build. Follow the tuple format("package-name", "filter-path"). - Run the script with
poetry run python main.py.