@n42/cli 0.1.88 → 0.1.89
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 +38 -8
- package/package.json +1 -1
- package/src/cli.js +2 -1
package/README.md
CHANGED
|
@@ -11,13 +11,14 @@ routing, SMP resolution, and Access Point behavior.
|
|
|
11
11
|
|
|
12
12
|
## Features
|
|
13
13
|
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
14
|
+
- Peppol eDelivery path discovery
|
|
15
|
+
- SMP and Access Point resolution diagnostics
|
|
16
|
+
- Supported document type detection
|
|
17
|
+
- PlantUML and SVG visualizations
|
|
18
|
+
- Authenticated API access
|
|
19
|
+
- Deterministic, script-friendly output
|
|
20
|
+
- No browser automation or UI side effects
|
|
21
|
+
- Local artefact history inspection
|
|
21
22
|
|
|
22
23
|
## Installation
|
|
23
24
|
|
|
@@ -43,7 +44,7 @@ n42 --version
|
|
|
43
44
|
## Authentication
|
|
44
45
|
|
|
45
46
|
Authenticate once using your Node42 account credentials.\
|
|
46
|
-
Tokens are stored locally under `~/.node42
|
|
47
|
+
Tokens are stored locally under `~/.node42/tokens.json`.
|
|
47
48
|
|
|
48
49
|
``` bash
|
|
49
50
|
n42 login
|
|
@@ -65,6 +66,35 @@ n42 me
|
|
|
65
66
|
n42 discover peppol <participantId>
|
|
66
67
|
```
|
|
67
68
|
|
|
69
|
+
#### Available options:
|
|
70
|
+
- **-e**, **--env** `<environment>` Environment (TEST | PROD)
|
|
71
|
+
- **-o**, **--output** `<type>` Result type (json | plantuml)
|
|
72
|
+
- **-f**, **--format** `<format>` When output=plantuml (svg | text)
|
|
73
|
+
- **--force-https** Force HTTPS endpoints
|
|
74
|
+
- **--insecure** Disable TLS certificate validation
|
|
75
|
+
- **--fetch-business-card** Fetch Peppol business card
|
|
76
|
+
- **--reverse-lookup** Enable reverse lookup
|
|
77
|
+
- **--probe-endpoints** Probe resolved endpoints
|
|
78
|
+
|
|
79
|
+
### History
|
|
80
|
+
|
|
81
|
+
``` bash
|
|
82
|
+
n42 history <participantId>
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Example output:
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
DATE PID FILE
|
|
89
|
+
2026-01-30 15:42:18 9915:helger ~/.node42/artefacts/discovery/b91f83e2.svg
|
|
90
|
+
2026-01-30 15:42:10 9915:helger ~/.node42/artefacts/discovery/ba1cbc8d.svg
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
#### Available options:
|
|
94
|
+
- **--today** Show only today's artefacts
|
|
95
|
+
- **--day** `<yyyy-mm-dd>` Show artefacts for a specific day
|
|
96
|
+
- **--last** `<n>` Show only last N results
|
|
97
|
+
|
|
68
98
|
------------------------------------------------------------------------
|
|
69
99
|
|
|
70
100
|
## Artefacts
|
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -156,7 +156,8 @@ program
|
|
|
156
156
|
|
|
157
157
|
if (!artefacts.length) {
|
|
158
158
|
clearScreen(`Node42 CLI v${pkg.version}`);
|
|
159
|
-
|
|
159
|
+
const filter = dayFilter !== null ? ` (${dayFilter})` : ``;
|
|
160
|
+
console.log(`No artefacts found.${filter}`);
|
|
160
161
|
return;
|
|
161
162
|
}
|
|
162
163
|
|