@heroku-cli/plugin-mtls 2.0.2 → 2.0.4

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 CHANGED
@@ -40,7 +40,7 @@ ARGUMENTS
40
40
  ADDON addon
41
41
 
42
42
  FLAGS
43
- -a, --app=<value> (required) app to run command against
43
+ -a, --app=<value> (required) [env: HEROKU_APP] app to run command against
44
44
 
45
45
  GLOBAL FLAGS
46
46
  --prompt interactively prompt for command arguments and flags
@@ -52,7 +52,7 @@ EXAMPLES
52
52
  $ heroku data:mtls postgresql-sushi-12345 -a example-app
53
53
  ```
54
54
 
55
- _See code: [src/commands/data/mtls/index.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v2.0.2/src/commands/data/mtls/index.ts)_
55
+ _See code: [src/commands/data/mtls/index.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v2.0.4/src/commands/data/mtls/index.ts)_
56
56
 
57
57
  ## `heroku data:mtls:certificates ADDON`
58
58
 
@@ -66,7 +66,7 @@ ARGUMENTS
66
66
  ADDON addon
67
67
 
68
68
  FLAGS
69
- -a, --app=<value> (required) app to run command against
69
+ -a, --app=<value> (required) [env: HEROKU_APP] app to run command against
70
70
 
71
71
  GLOBAL FLAGS
72
72
  --prompt interactively prompt for command arguments and flags
@@ -78,7 +78,7 @@ EXAMPLES
78
78
  $ heroku data:mtls:certificates postgresql-sushi-12345 -a example-app
79
79
  ```
80
80
 
81
- _See code: [src/commands/data/mtls/certificates/index.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v2.0.2/src/commands/data/mtls/certificates/index.ts)_
81
+ _See code: [src/commands/data/mtls/certificates/index.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v2.0.4/src/commands/data/mtls/certificates/index.ts)_
82
82
 
83
83
  ## `heroku data:mtls:certificates:create ADDON`
84
84
 
@@ -92,7 +92,7 @@ ARGUMENTS
92
92
  ADDON addon
93
93
 
94
94
  FLAGS
95
- -a, --app=<value> (required) app to run command against
95
+ -a, --app=<value> (required) [env: HEROKU_APP] app to run command against
96
96
 
97
97
  GLOBAL FLAGS
98
98
  --prompt interactively prompt for command arguments and flags
@@ -104,7 +104,7 @@ EXAMPLES
104
104
  $ heroku data:mtls:certificates:create postgresql-sushi-12345 -a example-app
105
105
  ```
106
106
 
107
- _See code: [src/commands/data/mtls/certificates/create.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v2.0.2/src/commands/data/mtls/certificates/create.ts)_
107
+ _See code: [src/commands/data/mtls/certificates/create.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v2.0.4/src/commands/data/mtls/certificates/create.ts)_
108
108
 
109
109
  ## `heroku data:mtls:certificates:delete ADDON`
110
110
 
@@ -118,7 +118,7 @@ ARGUMENTS
118
118
  ADDON addon
119
119
 
120
120
  FLAGS
121
- -a, --app=<value> (required) app to run command against
121
+ -a, --app=<value> (required) [env: HEROKU_APP] app to run command against
122
122
  --id=<value> (required) id of certificate
123
123
 
124
124
  GLOBAL FLAGS
@@ -131,7 +131,7 @@ EXAMPLES
131
131
  $ heroku data:mtls:certificates:delete postgresql-sushi-12345 --id "1862ec85-fdc1-47b3-924e-a91d26ca3a7c" -a example-app
132
132
  ```
133
133
 
134
- _See code: [src/commands/data/mtls/certificates/delete.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v2.0.2/src/commands/data/mtls/certificates/delete.ts)_
134
+ _See code: [src/commands/data/mtls/certificates/delete.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v2.0.4/src/commands/data/mtls/certificates/delete.ts)_
135
135
 
136
136
  ## `heroku data:mtls:certificates:download ADDON`
137
137
 
@@ -145,7 +145,7 @@ ARGUMENTS
145
145
  ADDON addon
146
146
 
147
147
  FLAGS
148
- -a, --app=<value> (required) app to run command against
148
+ -a, --app=<value> (required) [env: HEROKU_APP] app to run command against
149
149
  --dir=<value> directory to download files to. defaults to HOME:/.postgresql
150
150
  --id=<value> ID of certificate to download
151
151
  --prefix=<value> (required) prefix to put in front of downloaded file names
@@ -164,7 +164,7 @@ EXAMPLES
164
164
  $ heroku data:mtls:certificates:download postgresql-sushi-12345 --id "3559a4df-2c82-4473-86cf-181310a6ef4f --prefix "prefix_" -a example-app
165
165
  ```
166
166
 
167
- _See code: [src/commands/data/mtls/certificates/download.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v2.0.2/src/commands/data/mtls/certificates/download.ts)_
167
+ _See code: [src/commands/data/mtls/certificates/download.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v2.0.4/src/commands/data/mtls/certificates/download.ts)_
168
168
 
169
169
  ## `heroku data:mtls:certificates:get ADDON`
170
170
 
@@ -178,7 +178,7 @@ ARGUMENTS
178
178
  ADDON addon
179
179
 
180
180
  FLAGS
181
- -a, --app=<value> (required) app to run command against
181
+ -a, --app=<value> (required) [env: HEROKU_APP] app to run command against
182
182
  --id=<value> (required) id of IP Rule
183
183
 
184
184
  GLOBAL FLAGS
@@ -191,7 +191,7 @@ EXAMPLES
191
191
  $ heroku data:mtls:certificates:get postgresql-sushi-12345 --id "1862ec85-fdc1-47b3-924e-a91d26ca3a7c" -a example-app
192
192
  ```
193
193
 
194
- _See code: [src/commands/data/mtls/certificates/get.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v2.0.2/src/commands/data/mtls/certificates/get.ts)_
194
+ _See code: [src/commands/data/mtls/certificates/get.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v2.0.4/src/commands/data/mtls/certificates/get.ts)_
195
195
 
196
196
  ## `heroku data:mtls:create ADDON`
197
197
 
@@ -205,7 +205,7 @@ ARGUMENTS
205
205
  ADDON addon
206
206
 
207
207
  FLAGS
208
- -a, --app=<value> (required) app to run command against
208
+ -a, --app=<value> (required) [env: HEROKU_APP] app to run command against
209
209
 
210
210
  GLOBAL FLAGS
211
211
  --prompt interactively prompt for command arguments and flags
@@ -217,7 +217,7 @@ EXAMPLES
217
217
  $ heroku data:mtls:create postgresql-sushi-12345 -a example-app
218
218
  ```
219
219
 
220
- _See code: [src/commands/data/mtls/create.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v2.0.2/src/commands/data/mtls/create.ts)_
220
+ _See code: [src/commands/data/mtls/create.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v2.0.4/src/commands/data/mtls/create.ts)_
221
221
 
222
222
  ## `heroku data:mtls:delete ADDON`
223
223
 
@@ -231,7 +231,7 @@ ARGUMENTS
231
231
  ADDON addon
232
232
 
233
233
  FLAGS
234
- -a, --app=<value> (required) app to run command against
234
+ -a, --app=<value> (required) [env: HEROKU_APP] app to run command against
235
235
 
236
236
  GLOBAL FLAGS
237
237
  --prompt interactively prompt for command arguments and flags
@@ -258,7 +258,7 @@ ARGUMENTS
258
258
  ADDON addon
259
259
 
260
260
  FLAGS
261
- -a, --app=<value> (required) app to run command against
261
+ -a, --app=<value> (required) [env: HEROKU_APP] app to run command against
262
262
 
263
263
  GLOBAL FLAGS
264
264
  --prompt interactively prompt for command arguments and flags
@@ -273,7 +273,7 @@ EXAMPLES
273
273
  $ heroku data:mtls:destroy postgresql-sushi-12345 -a example-app
274
274
  ```
275
275
 
276
- _See code: [src/commands/data/mtls/destroy.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v2.0.2/src/commands/data/mtls/destroy.ts)_
276
+ _See code: [src/commands/data/mtls/destroy.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v2.0.4/src/commands/data/mtls/destroy.ts)_
277
277
 
278
278
  ## `heroku data:mtls:ip-rules ADDON`
279
279
 
@@ -287,7 +287,7 @@ ARGUMENTS
287
287
  ADDON addon
288
288
 
289
289
  FLAGS
290
- -a, --app=<value> (required) app to run command against
290
+ -a, --app=<value> (required) [env: HEROKU_APP] app to run command against
291
291
 
292
292
  GLOBAL FLAGS
293
293
  --prompt interactively prompt for command arguments and flags
@@ -299,7 +299,7 @@ EXAMPLES
299
299
  $ heroku data:mtls:ip-rules postgresql-sushi-12345 -a example-app
300
300
  ```
301
301
 
302
- _See code: [src/commands/data/mtls/ip-rules/index.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v2.0.2/src/commands/data/mtls/ip-rules/index.ts)_
302
+ _See code: [src/commands/data/mtls/ip-rules/index.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v2.0.4/src/commands/data/mtls/ip-rules/index.ts)_
303
303
 
304
304
  ## `heroku data:mtls:ip-rules:create ADDON`
305
305
 
@@ -313,7 +313,7 @@ ARGUMENTS
313
313
  ADDON addon
314
314
 
315
315
  FLAGS
316
- -a, --app=<value> (required) app to run command against
316
+ -a, --app=<value> (required) [env: HEROKU_APP] app to run command against
317
317
  --cidr=<value> (required) CIDR block to allow
318
318
  --description=<value> description of the IP rule
319
319
 
@@ -327,7 +327,7 @@ EXAMPLES
327
327
  $ heroku data:mtls:ip-rules:create postgresql-sushi-12345 --cidr "1.2.3.4/32" --description "home IP address" -a example-app
328
328
  ```
329
329
 
330
- _See code: [src/commands/data/mtls/ip-rules/create.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v2.0.2/src/commands/data/mtls/ip-rules/create.ts)_
330
+ _See code: [src/commands/data/mtls/ip-rules/create.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v2.0.4/src/commands/data/mtls/ip-rules/create.ts)_
331
331
 
332
332
  ## `heroku data:mtls:ip-rules:delete ADDON`
333
333
 
@@ -341,7 +341,7 @@ ARGUMENTS
341
341
  ADDON addon
342
342
 
343
343
  FLAGS
344
- -a, --app=<value> (required) app to run command against
344
+ -a, --app=<value> (required) [env: HEROKU_APP] app to run command against
345
345
  --cidr=<value> cidr of IP Rule
346
346
  --id=<value> id of IP Rule
347
347
 
@@ -355,7 +355,7 @@ EXAMPLES
355
355
  $ heroku data:mtls:ip-rules:delete postgresql-sushi-12345 --id "1862ec85-fdc1-47b3-924e-a91d26ca3a7c" -a example-app
356
356
  ```
357
357
 
358
- _See code: [src/commands/data/mtls/ip-rules/delete.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v2.0.2/src/commands/data/mtls/ip-rules/delete.ts)_
358
+ _See code: [src/commands/data/mtls/ip-rules/delete.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v2.0.4/src/commands/data/mtls/ip-rules/delete.ts)_
359
359
 
360
360
  ## `heroku data:mtls:ip-rules:get ADDON`
361
361
 
@@ -369,7 +369,7 @@ ARGUMENTS
369
369
  ADDON addon
370
370
 
371
371
  FLAGS
372
- -a, --app=<value> (required) app to run command against
372
+ -a, --app=<value> (required) [env: HEROKU_APP] app to run command against
373
373
  --id=<value> (required) id of IP Rule
374
374
 
375
375
  GLOBAL FLAGS
@@ -382,5 +382,5 @@ EXAMPLES
382
382
  $ heroku data:mtls:ip-rules:get postgresql-sushi-12345 --id "1862ec85-fdc1-47b3-924e-a91d26ca3a7c" -a example-app
383
383
  ```
384
384
 
385
- _See code: [src/commands/data/mtls/ip-rules/get.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v2.0.2/src/commands/data/mtls/ip-rules/get.ts)_
385
+ _See code: [src/commands/data/mtls/ip-rules/get.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v2.0.4/src/commands/data/mtls/ip-rules/get.ts)_
386
386
  <!-- commandsstop -->
package/dist/base.js CHANGED
@@ -5,10 +5,6 @@ export default class MTLSCommand extends Command {
5
5
  super(argv, config);
6
6
  const client = new APIClient(this.config, {});
7
7
  client.defaults.host = process.env.HEROKU_DATA_HOST || 'api.data.heroku.com';
8
- client.defaults.headers = {
9
- ...this.heroku.defaults.headers,
10
- authorization: `Basic ${Buffer.from(':' + this.heroku.auth).toString('base64')}`,
11
- };
12
8
  this.shogun = client;
13
9
  }
14
10
  }
@@ -24,6 +24,7 @@
24
24
  "app": {
25
25
  "char": "a",
26
26
  "description": "app to run command against",
27
+ "env": "HEROKU_APP",
27
28
  "name": "app",
28
29
  "required": true,
29
30
  "hasDynamicHelp": true,
@@ -73,6 +74,7 @@
73
74
  "app": {
74
75
  "char": "a",
75
76
  "description": "app to run command against",
77
+ "env": "HEROKU_APP",
76
78
  "name": "app",
77
79
  "required": true,
78
80
  "hasDynamicHelp": true,
@@ -120,6 +122,7 @@
120
122
  "app": {
121
123
  "char": "a",
122
124
  "description": "app to run command against",
125
+ "env": "HEROKU_APP",
123
126
  "name": "app",
124
127
  "required": true,
125
128
  "hasDynamicHelp": true,
@@ -167,6 +170,7 @@
167
170
  "app": {
168
171
  "char": "a",
169
172
  "description": "app to run command against",
173
+ "env": "HEROKU_APP",
170
174
  "name": "app",
171
175
  "required": true,
172
176
  "hasDynamicHelp": true,
@@ -215,6 +219,7 @@
215
219
  "app": {
216
220
  "char": "a",
217
221
  "description": "app to run command against",
222
+ "env": "HEROKU_APP",
218
223
  "name": "app",
219
224
  "required": true,
220
225
  "hasDynamicHelp": true,
@@ -273,6 +278,7 @@
273
278
  "app": {
274
279
  "char": "a",
275
280
  "description": "app to run command against",
281
+ "env": "HEROKU_APP",
276
282
  "name": "app",
277
283
  "required": true,
278
284
  "hasDynamicHelp": true,
@@ -346,6 +352,7 @@
346
352
  "app": {
347
353
  "char": "a",
348
354
  "description": "app to run command against",
355
+ "env": "HEROKU_APP",
349
356
  "name": "app",
350
357
  "required": true,
351
358
  "hasDynamicHelp": true,
@@ -402,6 +409,7 @@
402
409
  "app": {
403
410
  "char": "a",
404
411
  "description": "app to run command against",
412
+ "env": "HEROKU_APP",
405
413
  "name": "app",
406
414
  "required": true,
407
415
  "hasDynamicHelp": true,
@@ -450,6 +458,7 @@
450
458
  "app": {
451
459
  "char": "a",
452
460
  "description": "app to run command against",
461
+ "env": "HEROKU_APP",
453
462
  "name": "app",
454
463
  "required": true,
455
464
  "hasDynamicHelp": true,
@@ -513,6 +522,7 @@
513
522
  "app": {
514
523
  "char": "a",
515
524
  "description": "app to run command against",
525
+ "env": "HEROKU_APP",
516
526
  "name": "app",
517
527
  "required": true,
518
528
  "hasDynamicHelp": true,
@@ -575,6 +585,7 @@
575
585
  "app": {
576
586
  "char": "a",
577
587
  "description": "app to run command against",
588
+ "env": "HEROKU_APP",
578
589
  "name": "app",
579
590
  "required": true,
580
591
  "hasDynamicHelp": true,
@@ -631,6 +642,7 @@
631
642
  "app": {
632
643
  "char": "a",
633
644
  "description": "app to run command against",
645
+ "env": "HEROKU_APP",
634
646
  "name": "app",
635
647
  "required": true,
636
648
  "hasDynamicHelp": true,
@@ -656,5 +668,5 @@
656
668
  ]
657
669
  }
658
670
  },
659
- "version": "2.0.2"
671
+ "version": "2.0.4"
660
672
  }
package/package.json CHANGED
@@ -1,29 +1,29 @@
1
1
  {
2
2
  "name": "@heroku-cli/plugin-mtls",
3
3
  "description": "heroku mtls cli",
4
- "version": "2.0.2",
4
+ "version": "2.0.4",
5
5
  "author": "Heroku",
6
6
  "type": "module",
7
7
  "bugs": "https://github.com/heroku/heroku-cli-plugin-mtls/issues",
8
8
  "dependencies": {
9
9
  "@heroku-cli/command": "^13.0.0",
10
- "@heroku-cli/schema": "^1.0.25",
10
+ "@heroku-cli/schema": "^2.0.1",
11
11
  "@heroku/heroku-cli-util": "^10.9.0",
12
12
  "@inquirer/prompts": "^7.10.1",
13
13
  "@oclif/core": "^4.3.0",
14
14
  "tslib": "~2.8.1"
15
15
  },
16
16
  "devDependencies": {
17
- "@heroku-cli/test-utils": "^0.3.0",
17
+ "@heroku-cli/test-utils": "^1.0.1",
18
18
  "@types/chai": "^4",
19
19
  "@types/mocha": "^10.0.6",
20
- "@types/node": "^20.10.4",
20
+ "@types/node": "^26.5.1",
21
21
  "@types/sinon": "^17.0.2",
22
22
  "ansis": "^3.17.0",
23
- "c8": "^10.1.3",
24
- "chai": "^5.1.2",
25
- "conventional-changelog": "^7.1.1",
26
- "conventional-changelog-conventionalcommits": "^9.1.0",
23
+ "c8": "^12.0.0",
24
+ "chai": "^6.2.2",
25
+ "conventional-changelog": "^8.1.3",
26
+ "conventional-changelog-conventionalcommits": "^10.4.0",
27
27
  "eslint": "^9",
28
28
  "mocha": "^11",
29
29
  "nock": "^14.0.1",