pat-lego / aem-debugging-cli

2 stars 3 forks source link

AEM Debbuging Utility

A utility used to debug AEM

How to configure the CLI

The CLI will check the following locations in this order for configurations:

  1. A .cqsupport file in the folder that node is running the app

    • Example:
    • cd /Users/john/Desktop
    • node main.js c v
    • The .cqsupport file needs to be in the Desktop folder since node is running from there
  2. Environment variables in the users shell

  3. A .cqsupport file in the users home directory

Using the CLI

  1. Init the cli: node main.js c i
  2. Set the config: node main.js c sb <serverUrl> <serverAlias> <username> <password>
  3. View the configs: node main.js c v

Alternatives

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

How to Install

npm install

How to run

node main.js <commands> or node main.js help to list all the available commands.

How to build

Run Tests

How to enable watch

Example

How to submit a PR

Alias Commands

MacOSX

Contributors