aem-cellar

Wrapper around AEM Vault for Node.js


Keywords
AEM, Vault, CQ, Adobe, Jackrabbit FileVault
License
MIT
Install
npm install aem-cellar@1.0.5

Documentation

Cellar

AEM Vault wrapper for node

Install

CLI:

npm install -g aem-cellar

Module:

npm install --save-dev aem-cellar

#pull

cellar pull -h

cellar pull --source content/example --dest .vaulted-content

import cellar from 'aem-cellar';

cellar.pull({
    source: 'content/example',
    dest: '.vaulted-content',
    host: 'localhost',
    port: '4502',
    user: 'admin',
    pass: 'admin'
});

options

source

Type: string

Directory path on AEM/CRX instance.

dest

Type: string

Destination path on local filesystem.

host

Type: string Default: localhost

hostname to running AEM instance.

port

Type: number Default: 4502

Port for running AEM instance.

username

Type: string Default: admin

Username for authentication.

password

Type: string Default: admin

Password for authentication.

#push

cellar push -h

cellar push --source content/example --dest /

import cellar from 'aem-cellar';

cellar.push({
    source: 'content/example',
    dest: '/',
    host: 'localhost',
    port: '4502',
    user: 'admin',
    pass: 'admin'
});

options

source

Type: string

Directory path of local environment

dest

Type: string Default: /

Destination path to push to, usually just /

host

Type: string Default: localhost

hostname to running AEM instance.

port

Type: number Default: 4502

Port for running AEM instance.

username

Type: string Default: admin

Username for authentication.

password

Type: string Default: admin

Password for authentication.

#clean

cellar clean -h

cellar clean example-folder/

import cellar from 'aem-cellar';

cellar.clean('./example-folder');

This is for cleaning up a local path and removing the folder. Basically a wrapper around rm -rf