Skip to content

Commit db0257c

Browse files
authored
gcloud: add CLI example (#1808)
1 parent 0122506 commit db0257c

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

docs/content/dns/zz_gen_gcloud.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,16 @@ Configuration for [Google Cloud](https://cloud.google.com).
2323
- Since: v0.3.0
2424

2525

26-
{{% notice note %}}
27-
_Please contribute by adding a CLI example._
28-
{{% /notice %}}
26+
Here is an example bash command using the Google Cloud provider:
27+
28+
```bash
29+
GCE_PROJECT="gc-project-id" GCE_SERVICE_ACCOUNT_FILE="/path/to/svc/account/file.json" lego \
30+
--email="[email protected]" \
31+
--domains="example.com" \
32+
--dns="gcloud" \
33+
--path="${HOME}/.lego" \
34+
run
35+
```
2936

3037

3138

providers/dns/gcloud/gcloud.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@ URL = "https://cloud.google.com"
44
Code = "gcloud"
55
Since = "v0.3.0"
66

7-
Example = ''''''
7+
Example = '''
8+
GCE_PROJECT="gc-project-id" GCE_SERVICE_ACCOUNT_FILE="/path/to/svc/account/file.json" lego \
9+
--email="[email protected]" \
10+
--domains="example.com" \
11+
--dns="gcloud" \
12+
--path="${HOME}/.lego" \
13+
run
14+
'''
815

916
[Configuration]
1017
[Configuration.Credentials]

0 commit comments

Comments
 (0)