Skip to content

Commit 6ea58dc

Browse files
authored
Merge pull request #2030 from replicatedhq/sm-add-gar-and-custom-id
Add Google Artifact Registry and custom-id
2 parents 61e9746 + f400915 commit 6ea58dc

File tree

5 files changed

+66
-6
lines changed

5 files changed

+66
-6
lines changed

docs/reference/replicated-cli-customer-create.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,22 @@ replicated customer create [Flags]
3838
<td>duration</td>
3939
<td>If set, license will expire a specified number of units from the current time. For example, <code>2h</code> or <code>1h60m</code> or <code>120m</code> are all the same duration.</td>
4040
</tr>
41+
<tr>
42+
<td><code>--custom-id</code></td>
43+
<td>string</td>
44+
<td>If set, this custom alphanumeric ID is associated with this customer to more easily tie this record to your external data systems (i.e. Salesforce, Hubspot, etc.) </td>
45+
</tr>
4146
<Help/>
4247
<App/>
4348
<Token/>
4449
</table>
4550

4651
## Examples
4752
```bash
48-
replicated customer create --channel Megacorp_Beta --name "Megacorp" --ensure-channel --expires-in "8760h"
49-
ID NAME CHANNELS EXPIRES TYPE
50-
2u4KGXSY65SAUW0ltG_pPhxBGPJ4XNSS Megacorp Megacorp_Beta 2021-01-20 00:17:38 +0000 UTC dev
53+
replicated customer create --channel Megacorp_Beta --name "Megacorp" --ensure-channel --expires-in "8760h" --custom-id "salesforceid-123"
54+
```
55+
56+
```bash
57+
ID NAME CHANNELS EXPIRES TYPE CUSTOM_ID
58+
2u4KGXSY65SAUW0ltG_pPhxBGPJ4XNSS Megacorp Megacorp_Beta 2021-01-20 00:17:38 +0000 UTC dev salesforceid-123
5159
```

docs/reference/replicated-cli-customer-ls.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ List all customers:
2929

3030
```bash
3131
replicated customer ls
32-
ID NAME CHANNELS EXPIRES TYPE
33-
iEgJuVDHy2pi-AqOjLXbZCTX9bqlV6YH John Smith Unstable Never
34-
YAg7ripYbK0tM5MVn_81nMy0YrhBsHrm Megacorp Megacorp_Beta Never
32+
ID NAME CHANNELS EXPIRES TYPE CUSTOM_ID
33+
iEgJuVDHy2pi-AqOjLXbZCTX9bqlV6YH John Smith Unstable Never Not Set
34+
YAg7ripYbK0tM5MVn_81nMy0YrhBsHrm Megacorp Megacorp_Beta Never salesforceid-123
3535
```
3636

3737
List customers and their instances for a specific application version:
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
import App from "../partials/replicated-cli/_app.mdx"
2+
import SkipValidation from "../partials/replicated-cli/_skip-validation.mdx"
3+
import Token from "../partials/replicated-cli/_token.mdx"
4+
import Help from "../partials/replicated-cli/_help.mdx"
5+
6+
# registry add gar
7+
8+
Adds a Google Artifact Registry (GAR) using a service account key or token.
9+
10+
## Usage
11+
12+
```bash
13+
replicated registry add gar [flags]
14+
```
15+
16+
The following flags are supported:
17+
18+
<table>
19+
<tr>
20+
<th width="30%">Flag</th>
21+
<th width="20%">Type (if applicable)</th>
22+
<th width="50%">Description</th>
23+
</tr>
24+
<App/>
25+
<Help/>
26+
<tr>
27+
<td><code>--serviceaccountkey</code></td>
28+
<td>string</td>
29+
<td>The service account key to use when authenticating to the registry.</td>
30+
</tr>
31+
<tr>
32+
<td><code>--serviceaccountkey-stdin</code></td>
33+
<td></td>
34+
<td>Take the service account key from stdin.</td>
35+
</tr>
36+
<tr>
37+
<td><code>--token</code></td>
38+
<td>string</td>
39+
<td>The Google Cloud OAuth token to use when authenticating to the registry.</td>
40+
</tr>
41+
<tr>
42+
<td><code>--token-stdin</code></td>
43+
<td></td>
44+
<td>Takes the Google Cloud OAuth token from stdin.</td>
45+
</tr>
46+
<SkipValidation/>
47+
</table>

docs/reference/replicated-cli-registry-add.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ The following `registry add` commands are supported:
2828
<td><a href="replicated-cli-registry-add-ecr"><code>replicated registry add ecr</code></a></td>
2929
<td>Adds an Amazon Elastic Container Registry (ECR).</td>
3030
</tr>
31+
<tr>
32+
<td><a href="replicated-cli-registry-add-gar"><code>replicated registry add gar</code></a></td>
33+
<td>Adds a Google Artifact Registry (GAR).</td>
34+
</tr>
3135
<tr>
3236
<td><a href="replicated-cli-registry-add-gcr"><code>replicated registry add gcr</code></a></td>
3337
<td>Adds a Google Container Registry (GCR).</td>

sidebars.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,7 @@ const sidebars = {
726726
'reference/replicated-cli-registry-add',
727727
'reference/replicated-cli-registry-add-dockerhub',
728728
'reference/replicated-cli-registry-add-ecr',
729+
'reference/replicated-cli-registry-add-gar',
729730
'reference/replicated-cli-registry-add-gcr',
730731
'reference/replicated-cli-registry-add-ghcr',
731732
'reference/replicated-cli-registry-add-other',

0 commit comments

Comments
 (0)