From db0257c6f8ab1aa9a726975f74c876b6063851c7 Mon Sep 17 00:00:00 2001 From: KuberDriver <28806564+KuberDriver@users.noreply.github.com> Date: Wed, 18 Jan 2023 08:55:46 +0000 Subject: [PATCH] gcloud: add CLI example (#1808) --- docs/content/dns/zz_gen_gcloud.md | 13 ++++++++++--- providers/dns/gcloud/gcloud.toml | 9 ++++++++- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/docs/content/dns/zz_gen_gcloud.md b/docs/content/dns/zz_gen_gcloud.md index ba60f1df..adde36d7 100644 --- a/docs/content/dns/zz_gen_gcloud.md +++ b/docs/content/dns/zz_gen_gcloud.md @@ -23,9 +23,16 @@ Configuration for [Google Cloud](https://cloud.google.com). - Since: v0.3.0 -{{% notice note %}} -_Please contribute by adding a CLI example._ -{{% /notice %}} +Here is an example bash command using the Google Cloud provider: + +```bash +GCE_PROJECT="gc-project-id" GCE_SERVICE_ACCOUNT_FILE="/path/to/svc/account/file.json" lego \ + --email="abc@email.com" \ + --domains="example.com" \ + --dns="gcloud" \ + --path="${HOME}/.lego" \ + run +``` diff --git a/providers/dns/gcloud/gcloud.toml b/providers/dns/gcloud/gcloud.toml index 29931ba5..c08824b9 100644 --- a/providers/dns/gcloud/gcloud.toml +++ b/providers/dns/gcloud/gcloud.toml @@ -4,7 +4,14 @@ URL = "https://cloud.google.com" Code = "gcloud" Since = "v0.3.0" -Example = '''''' +Example = ''' +GCE_PROJECT="gc-project-id" GCE_SERVICE_ACCOUNT_FILE="/path/to/svc/account/file.json" lego \ + --email="abc@email.com" \ + --domains="example.com" \ + --dns="gcloud" \ + --path="${HOME}/.lego" \ + run +''' [Configuration] [Configuration.Credentials]