scp-next 1.0.0 → 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.
Files changed (2) hide show
  1. package/README.md +24 -26
  2. 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
- - Upload and download directories recursively.
10
- - CLI usage with `<source> <destination>` operands.
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
- ```text
69
- --host
70
- --port
71
- --username
72
- --password
73
- --private-key
74
- --private-key-file
75
- --passphrase
76
- --config
77
- --profile
78
- --recursive
79
- --overwrite
80
- --create-directories
81
- --dry-run
82
- --timeout
83
- --verbose
84
- --quiet
85
- --help
86
- --version
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scp-next",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "A SCP CLI and library for secure SSH file transfers using SFTP.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",