From c4add3c81ed1bac4f8df20d9ca76e47521a82401 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Mon, 7 Dec 2015 19:33:40 -0700 Subject: [PATCH] Stub out simple CLI example --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index e76a3d99..a5a89b9e 100644 --- a/README.md +++ b/README.md @@ -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