Stub out simple CLI example

This commit is contained in:
Matthew Holt 2015-12-07 19:33:40 -07:00
parent 1b07617a49
commit c4add3c81e

View file

@ -65,6 +65,23 @@ GLOBAL OPTIONS:
``` ```
##### CLI Example
Assumes the `lego` binary has permission to bind to ports 80 and 443. You can get a pre-built binary from the [releases](https://github.com/xenolf/lego/releases) page.
Obtain a certificate:
```bash
$ lego --email="foo@bar.com" --domains="example.com" run
```
(Find your certificate in the `.lego` folder of current working directory.)
To renew the certificate:
```bash
$ lego --email="foo@bar.com" --domains="example.com" renew
```
#### ACME Library Usage #### ACME Library Usage