From 3efdb8b6f64a4e75222422bae5263375ba30940d Mon Sep 17 00:00:00 2001 From: Siva Manivannan Date: Thu, 22 Feb 2024 16:20:26 -0600 Subject: [PATCH 1/2] Add Google Artifact Registry CLI commands --- .../replicated-cli-registry-add-gar.mdx | 47 +++++++++++++++++++ .../reference/replicated-cli-registry-add.mdx | 4 ++ sidebars.js | 1 + 3 files changed, 52 insertions(+) create mode 100644 docs/reference/replicated-cli-registry-add-gar.mdx diff --git a/docs/reference/replicated-cli-registry-add-gar.mdx b/docs/reference/replicated-cli-registry-add-gar.mdx new file mode 100644 index 0000000000..2a21454403 --- /dev/null +++ b/docs/reference/replicated-cli-registry-add-gar.mdx @@ -0,0 +1,47 @@ +import App from "../partials/replicated-cli/_app.mdx" +import SkipValidation from "../partials/replicated-cli/_skip-validation.mdx" +import Token from "../partials/replicated-cli/_token.mdx" +import Help from "../partials/replicated-cli/_help.mdx" + +# registry add gar + +Adds a Google Artifact Registry (GAR) using a service account key or token. + +## Usage + +```bash +replicated registry add gar [flags] +``` + +The following flags are supported: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FlagType (if applicable)Description
--serviceaccountkeystringThe service account key to use when authenticating to the registry.
--serviceaccountkey-stdinTake the service account key from stdin.
--tokenstringThe Google Cloud OAuth token to use when authenticating to the registry.
--token-stdinTakes the Google Cloud OAuth token from stdin.
diff --git a/docs/reference/replicated-cli-registry-add.mdx b/docs/reference/replicated-cli-registry-add.mdx index 9195e858a3..53cfc39727 100644 --- a/docs/reference/replicated-cli-registry-add.mdx +++ b/docs/reference/replicated-cli-registry-add.mdx @@ -28,6 +28,10 @@ The following `registry add` commands are supported: replicated registry add ecr Adds an Amazon Elastic Container Registry (ECR). + + replicated registry add gar + Adds a Google Artifact Registry (GAR). + replicated registry add gcr Adds a Google Container Registry (GCR). diff --git a/sidebars.js b/sidebars.js index bc59147e80..ed168bd5f3 100644 --- a/sidebars.js +++ b/sidebars.js @@ -726,6 +726,7 @@ const sidebars = { 'reference/replicated-cli-registry-add', 'reference/replicated-cli-registry-add-dockerhub', 'reference/replicated-cli-registry-add-ecr', + 'reference/replicated-cli-registry-add-gar', 'reference/replicated-cli-registry-add-gcr', 'reference/replicated-cli-registry-add-ghcr', 'reference/replicated-cli-registry-add-other', From f40091569c92feb03945f7a22c433671e4f4cf9e Mon Sep 17 00:00:00 2001 From: Siva Manivannan Date: Thu, 22 Feb 2024 16:32:41 -0600 Subject: [PATCH 2/2] Add custom-id --- docs/reference/replicated-cli-customer-create.md | 14 +++++++++++--- docs/reference/replicated-cli-customer-ls.md | 6 +++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/docs/reference/replicated-cli-customer-create.md b/docs/reference/replicated-cli-customer-create.md index f47a666ea9..a2444037bc 100644 --- a/docs/reference/replicated-cli-customer-create.md +++ b/docs/reference/replicated-cli-customer-create.md @@ -38,6 +38,11 @@ replicated customer create [Flags] duration If set, license will expire a specified number of units from the current time. For example, 2h or 1h60m or 120m are all the same duration. + + --custom-id + string + 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.) + @@ -45,7 +50,10 @@ replicated customer create [Flags] ## Examples ```bash -replicated customer create --channel Megacorp_Beta --name "Megacorp" --ensure-channel --expires-in "8760h" -ID NAME CHANNELS EXPIRES TYPE -2u4KGXSY65SAUW0ltG_pPhxBGPJ4XNSS Megacorp Megacorp_Beta 2021-01-20 00:17:38 +0000 UTC dev +replicated customer create --channel Megacorp_Beta --name "Megacorp" --ensure-channel --expires-in "8760h" --custom-id "salesforceid-123" +``` + +```bash +ID NAME CHANNELS EXPIRES TYPE CUSTOM_ID +2u4KGXSY65SAUW0ltG_pPhxBGPJ4XNSS Megacorp Megacorp_Beta 2021-01-20 00:17:38 +0000 UTC dev salesforceid-123 ``` diff --git a/docs/reference/replicated-cli-customer-ls.md b/docs/reference/replicated-cli-customer-ls.md index a0af857ab6..11e023f82f 100644 --- a/docs/reference/replicated-cli-customer-ls.md +++ b/docs/reference/replicated-cli-customer-ls.md @@ -29,9 +29,9 @@ List all customers: ```bash replicated customer ls -ID NAME CHANNELS EXPIRES TYPE -iEgJuVDHy2pi-AqOjLXbZCTX9bqlV6YH John Smith Unstable Never -YAg7ripYbK0tM5MVn_81nMy0YrhBsHrm Megacorp Megacorp_Beta Never +ID NAME CHANNELS EXPIRES TYPE CUSTOM_ID +iEgJuVDHy2pi-AqOjLXbZCTX9bqlV6YH John Smith Unstable Never Not Set +YAg7ripYbK0tM5MVn_81nMy0YrhBsHrm Megacorp Megacorp_Beta Never salesforceid-123 ``` List customers and their instances for a specific application version: