@getpeppr/cli 0.7.1 → 0.8.0

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/CHANGELOG.md CHANGED
@@ -4,6 +4,16 @@ All notable changes to `@getpeppr/cli` are documented here.
4
4
 
5
5
  The CLI bundles `@getpeppr/sdk` into its published artifact (tsup `noExternal`), so `validate`, `convert` and `init` run the SDK's validators, country rules and UBL builder locally — an SDK release only reaches CLI users once the CLI is rebundled. Rebundle-only releases are listed with the SDK version they ship.
6
6
 
7
+ ## [0.8.0] — 2026-08-19
8
+
9
+ **`getpeppr whoami`** — show the Peppol identity of the account behind your
10
+ API key (GPR-1094). Environment, company, country, and every registered
11
+ identifier with its status. Works with any key; `--prod`, `--local`, `--key`
12
+ and `--json` behave as on `send` and `lookup`. No identity yet is an answer,
13
+ not an error — the command points you at the console page where you set one up.
14
+
15
+ Bundles SDK 4.3.0 (`peppol.identity.get()` — the API this command consumes).
16
+
7
17
  ## [0.7.1] — 2026-08-18
8
18
 
9
19
  Rebundle SDK 4.1.1. This release matters for `getpeppr validate`, which runs the
package/README.md CHANGED
@@ -159,6 +159,30 @@ getpeppr send invoice.json --prod
159
159
 
160
160
  When sending through the API, getpeppr determines the seller from the API key. A `from` party can still be present for local validation and UBL conversion, but the gateway ignores it for delivery.
161
161
 
162
+ ### `getpeppr whoami` — Show your Peppol identity
163
+
164
+ Read the Peppol identity of the account behind your API key: the environment the key operates in, your legal entity as the gateway holds it, and every Peppol identifier registered for it with its status. Works with **any** key — standard keys included. This is the fastest way to check "is my identifier registered and verified?" without opening the console.
165
+
166
+ ```bash
167
+ # Sandbox identity (default)
168
+ getpeppr whoami
169
+
170
+ # Production identity (uses your live key)
171
+ getpeppr whoami --prod
172
+
173
+ # Machine-readable
174
+ getpeppr whoami --json
175
+ ```
176
+
177
+ | Flag | Description |
178
+ |------|-------------|
179
+ | `--prod` | Use the live API key (default: sandbox) |
180
+ | `--local` | Target `http://localhost:3001` (dev server) |
181
+ | `--key <key>` | Override API key. CI use only — visible in `ps`/shell history. Prefer `GETPEPPR_API_KEY`. |
182
+ | `--json` | Output the identity as JSON |
183
+
184
+ If no legal entity exists in the environment yet, `whoami` says so and points to the console page where you create one.
185
+
162
186
  ### `getpeppr logout` — Remove stored credentials
163
187
 
164
188
  ```bash
@@ -213,7 +237,7 @@ The CLI runs three validation engines from the [@getpeppr/sdk](https://www.npmjs
213
237
  2. **Business Rules** — Peppol BIS 3.0 / EN 16931 compliance (BR-xx, BR-CO-xx, PEPPOL-xx rules)
214
238
  3. **Country Rules** — Belgium (BE), France (FR), Italy (IT), Netherlands (NL), Germany (DE)
215
239
 
216
- Scaffolding (`init`), validation, and conversion run fully offline — no API key or network connection required. Only `lookup` and `send` need a network connection.
240
+ Scaffolding (`init`), validation, and conversion run fully offline — no API key or network connection required. Only `lookup`, `send`, and `whoami` need a network connection.
217
241
 
218
242
  ## Invoice format
219
243
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpeppr/cli",
3
- "version": "0.7.1",
3
+ "version": "0.8.0",
4
4
  "description": "CLI tool for Peppol e-invoice validation and development",
5
5
  "type": "module",
6
6
  "bin": {
@@ -44,7 +44,7 @@
44
44
  "access": "public"
45
45
  },
46
46
  "dependencies": {
47
- "@getpeppr/sdk": "^4.1.1",
47
+ "@getpeppr/sdk": "^4.3.0",
48
48
  "commander": "^13.1.0",
49
49
  "picocolors": "^1.1.1"
50
50
  },