@cloud-cli/le 1.3.0 → 1.4.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/dist/index.d.ts +2 -14
- package/dist/index.js +18 -15
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CertificateOptions, CreateCertificateOptions } from "./certificate-manager.js";
|
|
2
|
+
import { help } from "@cloud-cli/cli";
|
|
2
3
|
declare const _default: {
|
|
3
4
|
add(certificate: CreateCertificateOptions): true | Promise<string>;
|
|
4
5
|
remove(options: CertificateOptions): boolean;
|
|
@@ -6,19 +7,6 @@ declare const _default: {
|
|
|
6
7
|
exists(options: CertificateOptions): boolean;
|
|
7
8
|
show(options: CertificateOptions): Promise<string>;
|
|
8
9
|
showDomains(options: CertificateOptions): Promise<string[]>;
|
|
9
|
-
help: () =>
|
|
10
|
-
description: string;
|
|
11
|
-
commands: {
|
|
12
|
-
"le add [domain]": string;
|
|
13
|
-
"le remove [domain]": string;
|
|
14
|
-
"le list": string;
|
|
15
|
-
"le exists [domain]": string;
|
|
16
|
-
"le show [domain]": string;
|
|
17
|
-
};
|
|
18
|
-
options: {
|
|
19
|
-
domain: string;
|
|
20
|
-
email: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
10
|
+
[help]: () => string;
|
|
23
11
|
};
|
|
24
12
|
export default _default;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { CertificateManager
|
|
1
|
+
import { CertificateManager } from "./certificate-manager.js";
|
|
2
|
+
import { help } from "@cloud-cli/cli";
|
|
2
3
|
const manager = new CertificateManager();
|
|
3
4
|
const readDomain = (options) => {
|
|
4
5
|
options.domain || (options.domain = options._.shift());
|
|
@@ -27,18 +28,20 @@ export default {
|
|
|
27
28
|
readDomain(options);
|
|
28
29
|
return manager.getDomainsFromCert(options);
|
|
29
30
|
},
|
|
30
|
-
help: () =>
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
31
|
+
[help]: () => `Manage SSL/TLS certificates
|
|
32
|
+
|
|
33
|
+
Available commands:
|
|
34
|
+
le.add --domain <domain> [--domains <comma-separated-domains>] [--useWildcard] [--update] [--additionalOptions <args>] - Create/update a certificate
|
|
35
|
+
le.remove --domain <domain> - Remove a certificate
|
|
36
|
+
le.list - List certificates
|
|
37
|
+
le.exists --domain <domain> - Check whether a certificate exists
|
|
38
|
+
le.show --domain <domain> - Show certificate details
|
|
39
|
+
le.showDomains --domain <domain> - Show domains in a certificate
|
|
40
|
+
|
|
41
|
+
Options:
|
|
42
|
+
domain - Certificate root domain
|
|
43
|
+
domains - Optional comma-separated domain list
|
|
44
|
+
useWildcard - Include wildcard names
|
|
45
|
+
update - Replace an existing certificate
|
|
46
|
+
additionalOptions - Additional certbot arguments`,
|
|
44
47
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloud-cli/le",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "LetsEncrypt integration for Cloudy",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"access": "public"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@cloud-cli/cli": "^2.
|
|
25
|
+
"@cloud-cli/cli": "^2.2.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@cloud-cli/typescript-config": "^1.0.1",
|