A utility used to debug AEM
The CLI will check the following locations in this order for configurations:
A .cqsupport file in the folder that node is running the app
cd /Users/john/Desktop
node main.js c v
Environment variables in the users shell
A .cqsupport file in the users home directory
node main.js c i
node main.js c sb <serverUrl> <serverAlias> <username> <password>
node main.js c v
A) Create a local .cqsupport file in the folder that you are currently running the app from
Example:
{
"servers" : [
{
"serverUrl": "http://localhost:4502",
"serverAlias": "localhost",
"serverUserName": "admin",
"serverPassword": "admin",
"serverAuth": "BASIC",
"isDefault": true
}
]
}
B) Configure environment variables
Example:
export CQ_SERVER_URL=http://localhost:4502
export CQ_SERVER_ALIAS=alias_1
export CQ_SERVER_AUTH=BASIC
export CQ_SERVER_PWD=admin
export CQ_SERVER_USER=test
npm install
node main.js <commands>
or node main.js help
to list all the available
commands.
npm run build
npm install
npm test
npm install
npm run build:watch