# aem-debugging-cli

> A utility used to debug AEM

Latest version **1.0.0** (published 2022-07-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install aem-debugging-cli
pnpm add aem-debugging-cli
yarn add aem-debugging-cli
bun add aem-debugging-cli
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-07-14 |
| First published | 2022-07-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 6 |
| Unpacked size | 60.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Pat Legault |
| Maintainers | pat-lego |
| Keywords | nodejs, logfiles, analysis |

## Links

- npm: https://www.npmjs.com/package/aem-debugging-cli
- Repository: https://github.com/pat-lego/js-log-file-reader
- Homepage: https://github.com/pat-lego/js-log-file-reader#readme
- Issues: https://github.com/pat-lego/js-log-file-reader/issues
- npm.io page: https://npm.io/package/aem-debugging-cli

## Dependencies (6)

- [chalk](https://npm.io/package/chalk.md) ^4.1.2
- [eslint](https://npm.io/package/eslint.md) ^8.19.0
- [commander](https://npm.io/package/commander.md) ^9.3.0
- [typescript](https://npm.io/package/typescript.md) ^4.7.4
- [properties-file](https://npm.io/package/properties-file.md) ^2.0.5
- [console-table-printer](https://npm.io/package/console-table-printer.md) ^2.11.0

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2022-07-14

## README

# JS Log File

A utility used to debug AEM 

# How to configure 

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 tryingitout/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 

- Init the cli: node main.js c i
- Set the config: node main.js c sb <serverUrl> <serverAlias> <username> <password>
- 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:
```
CQ_SERVER_URL=https://google.com
CQ_SERVER_ALIAS=alias_1
CQ_SERVER_AUTH=BASIC
CQ_SERVER_PWD=test
CQ_SERVER_USER=test
```
B) Configure environment variables

Example:
```
export CQ_SERVER_URL=https://abc.com
export CQ_SERVER_ALIAS=alias_1
export CQ_SERVER_AUTH=BASIC
export CQ_SERVER_PWD=test
export CQ_SERVER_USER=test
```

## Project Stuff
## How to run

`node main.js`

## How to build

- npm install 
- npm run build:esm

## How to test

- npm install
- npm test

## How to enable watch

- npm install
- npm run build:watch

# Contributors

- [Patrique Legault](https://twitter.com/_patlego)

---
_Source: https://npm.io/package/aem-debugging-cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
