update docs
This commit is contained in:
		
							parent
							
								
									e6a008d498
								
							
						
					
					
						commit
						bae832d65a
					
				| @ -140,11 +140,12 @@ cat .greenlockrc | |||||||
| </details> | </details> | ||||||
| 
 | 
 | ||||||
| ```bash | ```bash | ||||||
| # show the global defaults | # show the global defaults with the CLI | ||||||
| npx greenlock defaults | npx greenlock defaults | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| ```js | ```js | ||||||
|  | // show the global defaults with the API | ||||||
| var defaults = await greenlock.defaults(); | var defaults = await greenlock.defaults(); | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| @ -174,11 +175,12 @@ var defaults = await greenlock.defaults(); | |||||||
| </details> | </details> | ||||||
| 
 | 
 | ||||||
| ```bash | ```bash | ||||||
| # show per-site configs | # show per-site configs with the CLI | ||||||
| npx greenlock config --subject example.com | npx greenlock config --subject example.com | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| ```js | ```js | ||||||
|  | // show a site config with the API | ||||||
| greenlock.sites.get({ subject: "example.com" }); | greenlock.sites.get({ subject: "example.com" }); | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| @ -213,11 +215,12 @@ You need to create a Let's Encrypt _subscriber account_, which can be done globa | |||||||
| All individuals, and most businesses, should set this globally: | All individuals, and most businesses, should set this globally: | ||||||
| 
 | 
 | ||||||
| ```bash | ```bash | ||||||
| # Set a global subscriber account | # Set a global subscriber account with the CLI | ||||||
| npx greenlock defaults --subscriber-email 'mycompany@example.com' --agree-to-terms true | npx greenlock defaults --subscriber-email 'mycompany@example.com' --agree-to-terms true | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| ```js | ```js | ||||||
|  | // set a global subscriber account with the API | ||||||
| greenlock.manager.defaults({ | greenlock.manager.defaults({ | ||||||
|     subscriberEmail: "mycompany@example.com", |     subscriberEmail: "mycompany@example.com", | ||||||
|     agreeToTerms: true |     agreeToTerms: true | ||||||
| @ -230,11 +233,12 @@ A Let's Encrypt SSL certificate has a "Subject" (Primary Domain) and up to 100 " | |||||||
| (of which the first _must_ be the subject). | (of which the first _must_ be the subject). | ||||||
| 
 | 
 | ||||||
| ```bash | ```bash | ||||||
| # Add a certificate with specific domains | # Add a certificate with specific domains with the CLI | ||||||
| npx greenlock add --subject example.com --altnames example.com,www.example.com | npx greenlock add --subject example.com --altnames example.com,www.example.com | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| ```js | ```js | ||||||
|  | // Add a certificate with specific domains with the API | ||||||
| greenlock.sites.add({ | greenlock.sites.add({ | ||||||
|     subject: "example.com", |     subject: "example.com", | ||||||
|     altnames: ["example.com"] |     altnames: ["example.com"] | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user