scp-next 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -26
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,16 +5,14 @@ The package uses SFTP internally through `ssh2-sftp-client` instead of implement
|
|
|
5
5
|
|
|
6
6
|
## Features
|
|
7
7
|
|
|
8
|
-
- Upload and download files.
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
- ESM `import` and CommonJS `require` library usage.
|
|
12
|
-
- Reusable transfer client.
|
|
8
|
+
- Upload and download files or directories recursively.
|
|
9
|
+
- CLI usage with clear `<source> <destination>` operands.
|
|
10
|
+
- ESM `import` and CommonJS `require` support.
|
|
13
11
|
- JSON configuration files, named profiles, and configured jobs.
|
|
14
12
|
- Environment-variable based credentials.
|
|
15
13
|
- Dry-run mode, progress callbacks, timeouts, overwrite control, and destination directory creation.
|
|
16
|
-
- Typed errors with stable error codes.
|
|
17
14
|
- Secret redaction for passwords, passphrases, and private-key contents.
|
|
15
|
+
- Reusable transfer client.
|
|
18
16
|
|
|
19
17
|
## Installation
|
|
20
18
|
|
|
@@ -65,26 +63,26 @@ scp-next download /var/log/example.log ./logs/example.log \
|
|
|
65
63
|
|
|
66
64
|
## CLI Options
|
|
67
65
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
66
|
+
| Option | Description |
|
|
67
|
+
| --- | --- |
|
|
68
|
+
| `--host <host>` | SSH server host. |
|
|
69
|
+
| `--port <port>` | SSH server port. Defaults to `22`. |
|
|
70
|
+
| `--username <username>` | SSH username. |
|
|
71
|
+
| `--password <password>` | SSH password. Prefer environment variables, SSH agents, or key files. |
|
|
72
|
+
| `--private-key <privateKey>` | Private-key content. Redacted from logs and errors. |
|
|
73
|
+
| `--private-key-file <privateKeyFile>` | Private-key file path. Supports `~` expansion. |
|
|
74
|
+
| `--passphrase <passphrase>` | Passphrase for an encrypted private key. |
|
|
75
|
+
| `--config <path>` | Explicit configuration file path. |
|
|
76
|
+
| `--profile <name>` | Named server profile from the configuration file. |
|
|
77
|
+
| `--recursive` | Transfer directories recursively. |
|
|
78
|
+
| `--overwrite` | Allow replacing existing destination files. |
|
|
79
|
+
| `--create-directories` | Create missing destination directories when supported. |
|
|
80
|
+
| `--dry-run` | Resolve and validate the operation without connecting or transferring. |
|
|
81
|
+
| `--timeout <milliseconds>` | Connection and operation timeout in milliseconds. |
|
|
82
|
+
| `--verbose` | Print non-sensitive diagnostic details. |
|
|
83
|
+
| `--quiet` | Disable progress and non-error output. |
|
|
84
|
+
| `--help` | Show command help. |
|
|
85
|
+
| `--version` | Show the package version. |
|
|
88
86
|
|
|
89
87
|
Avoid `--password` when possible because command-line arguments may be visible in shell
|
|
90
88
|
history and process listings. Prefer environment variables, SSH agents, or protected
|