# deployx

> node deploy

Latest version **0.0.1** (published 2019-03-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install deployx
pnpm add deployx
yarn add deployx
bun add deployx
```

Provides the command `deployx`.

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2019-03-07 |
| First published | 2019-03-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 15.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | yale |
| Maintainers | yale8848 |
| Keywords | node, ssh, sftp, deploy |

## Links

- npm: https://www.npmjs.com/package/deployx
- Repository: https://github.com/yale8848/deployx
- Homepage: https://github.com/yale8848/deployx#readme
- Issues: https://github.com/yale8848/deployx/issues
- npm.io page: https://npm.io/package/deployx

## Dependencies (4)

- [zip-dir](https://npm.io/package/zip-dir.md) ^1.0.2
- [fs-extra](https://npm.io/package/fs-extra.md) ^7.0.1
- [commander](https://npm.io/package/commander.md) ^2.19.0
- [ssh2-promise](https://npm.io/package/ssh2-promise.md) ^0.1.3

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2019-03-07

## README

## deployx

Node deploy cli utils.

## cmd

```
#: npm install deployx -g

```

```
#: cd <workdir>
#: deployx init
   create deploy.json finish
```

deploy.json

```json


{
    "prod": [{
        "urls": ["root:123456@111.111.111.111:22"],
        "cmds": [{
                "type": "local-cmd",
                "cmd": "npm run build"
            },
            {
                "type": "remote-cmd",
                "cmd": "mkdir -p /home/test"
            },
            {
                "type": "upload-file",
                "files": ["dist", "server.js"],
                "remote": "/home/test"
            },
            {
                "type": "remote-cmd",
                "cmd": "npm i && node server.js"
            }
        ]
    }],
    "dev": [],
    "test": []
}


```

```
#: deployx -h

Usage: index [options] [command]

Options:
  -V, --version                          output the version number
  -e, --env <env>                        deploy by env[dev/test/prod]
  -c, --configJsonName <configJsonName>  deploy config json name
  -d, --debug                            show debug message
  -h, --help                             output usage information

Commands:
  init                                   create deploy.json


```

## deploy

```
#: deployx -e prod

```
or

```
   "scripts": {
        "deploy": "deployx -e prod"
    }

#: npm run deploy
```

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