# automation-scripts-cli

> Automate tasks effortlessly via terminal scripts. Save time and boost productivity! ✨

Latest version **1.0.0** (published 2023-08-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install automation-scripts-cli
pnpm add automation-scripts-cli
yarn add automation-scripts-cli
bun add automation-scripts-cli
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2023-08-19 |
| First published | 2023-08-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 9.1 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Author | PedroFnseca |
| Maintainers | pedrofnseca |

## Links

- npm: https://www.npmjs.com/package/automation-scripts-cli
- Repository: https://github.com/PedroFnseca/Automation-scripts-cli
- Homepage: https://github.com/PedroFnseca/Automation-scripts-cli#readme
- Issues: https://github.com/PedroFnseca/Automation-scripts-cli/issues
- npm.io page: https://npm.io/package/automation-scripts-cli

## Dependencies (4)

- [fs](https://npm.io/package/fs.md) 0.0.1-security
- [path](https://npm.io/package/path.md) ^0.12.7
- [chalk](https://npm.io/package/chalk.md) ^5.3.0
- [yargs](https://npm.io/package/yargs.md) ^17.7.2

## Recent versions

- 1.0.0 (latest) — 2023-08-19

## README

# Automation-script-cli

### The Automation-script-cli is a powerful command-line tool designed to simplify task automation using terminal scripts. It allows users to define custom commands in a JSON configuration file, making it easy to execute complex operations with a single command.

---

<br>

## Getting Started

### Installation

```bash
npm install -g automation-scripts-cli
```

### Upload configuration file

```bash
automation-scripts-cli --upload <path-to-config-file>
```

### Execute command

```bash
automation-scripts-cli --command-name
```

<br>

## Example configuration
> The configuration file must be a JSON file with the following structure:

```json
[
  {
    "name": "example",
    "description": "Description of the example",
    "options": [
      {
        "name": "--verbose",
        "alias": "-v",
        "description": "Activate verbose mode"
      },
      {
        "name": "--output",
        "alias": "-o",
        "description": "Specify the output file",
        "required": true
      }
    ],
    "exec": [
      "echo 'Executing the example command'", 
      "node script.js example"
    ]
  }
]
```

<br>

<div>

| Field         | Type            | Value                                   |
| ------------- | --------------- | --------------------------------------- |
| `name`        | String          | example                                 |
| `description` | String          | Description of the example              |
| `options`     | Array -> object |                                         |
|               | String          | 1. `name` --verbose                     |
|               | String          | - `alias` -v                            |
|               | String          | - `description` Activate verbose mode   |
|               | String          | 2. `name` --output                      |
|               | String          | - `alias` -o                            |
|               | String          | - `description` Specify the output file |
|               | Boolean         | - `required` true                       |
| `exec`        | Array -> String |                                         |
|               | String          | 1. echo 'Executing the example command' |
|               | String          | 2. node script.js example               |

</div>

<br>

## More examples of configuration files
> in this repository: [examples](./examples/) have more examples of configuration files

- [x] [backup](./examples/backup.json) - Backup files and folders
- [x] [start development](./examples/start-development.json) - Start development environment

<br>

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