@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.
Files changed (3) hide show
  1. package/README.md +38 -8
  2. package/package.json +1 -1
  3. 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
- - 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
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@n42/cli",
3
- "version": "0.1.88",
3
+ "version": "0.1.89",
4
4
  "description": "Node42 CLI – Command-line interface for Peppol eDelivery path discovery, diagnostics, and tooling",
5
5
  "keywords": [
6
6
  "node42"
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
- console.log(`No artefacts found. (${dayFilter})`);
159
+ const filter = dayFilter !== null ? ` (${dayFilter})` : ``;
160
+ console.log(`No artefacts found.${filter}`);
160
161
  return;
161
162
  }
162
163