diff --git a/docs/reference/replicated-cli-api-get.mdx b/docs/reference/replicated-cli-api-get.mdx new file mode 100644 index 0000000000..2bd23144c9 --- /dev/null +++ b/docs/reference/replicated-cli-api-get.mdx @@ -0,0 +1,43 @@ +# replicated api get + +Make ad-hoc GET API calls to the Replicated API + +### Synopsis + +This is essentially like curl for the Replicated API, but +uses your local credentials and prints the response unmodified. + +We recommend piping the output to jq for easier reading. + +Pass the PATH of the request as the final argument. Do not include the host or version. + +``` +replicated api get [flags] +``` + +### Examples + +``` +replicated api get /v3/apps +``` + +### Options + +``` + -h, --help help for get +``` + +### Options inherited from parent commands + +``` + --app string The app slug or app id to use in all calls + --integration-test string Set to the name of the integration test to run + --log-api-calls string Log the API calls to the specified file + --token string The API token to use to access your app in the Vendor API +``` + +### SEE ALSO + +* [replicated api](replicated-cli-api) - Make ad-hoc API calls to the Replicated API + +###### Auto generated by spf13/cobra on 22-Jan-2025 diff --git a/docs/reference/replicated-cli-api-patch.mdx b/docs/reference/replicated-cli-api-patch.mdx new file mode 100644 index 0000000000..b0600f17b8 --- /dev/null +++ b/docs/reference/replicated-cli-api-patch.mdx @@ -0,0 +1,44 @@ +# replicated api patch + +Make ad-hoc PATCH API calls to the Replicated API + +### Synopsis + +This is essentially like curl for the Replicated API, but +uses your local credentials and prints the response unmodified. + +We recommend piping the output to jq for easier reading. + +Pass the PATH of the request as the final argument. Do not include the host or version. + +``` +replicated api patch [flags] +``` + +### Examples + +``` +replicated api patch /v3/customer/2VffY549paATVfHSGpJhjh6Ehpy -b '{"name":"Valuable Customer"}' +``` + +### Options + +``` + -b, --body string JSON body to send with the request + -h, --help help for patch +``` + +### Options inherited from parent commands + +``` + --app string The app slug or app id to use in all calls + --integration-test string Set to the name of the integration test to run + --log-api-calls string Log the API calls to the specified file + --token string The API token to use to access your app in the Vendor API +``` + +### SEE ALSO + +* [replicated api](replicated-cli-api) - Make ad-hoc API calls to the Replicated API + +###### Auto generated by spf13/cobra on 22-Jan-2025 diff --git a/docs/reference/replicated-cli-api-post.mdx b/docs/reference/replicated-cli-api-post.mdx new file mode 100644 index 0000000000..b9f9993ea3 --- /dev/null +++ b/docs/reference/replicated-cli-api-post.mdx @@ -0,0 +1,44 @@ +# replicated api post + +Make ad-hoc POST API calls to the Replicated API + +### Synopsis + +This is essentially like curl for the Replicated API, but +uses your local credentials and prints the response unmodified. + +We recommend piping the output to jq for easier reading. + +Pass the PATH of the request as the final argument. Do not include the host or version. + +``` +replicated api post [flags] +``` + +### Examples + +``` +replicated api post /v3/app/2EuFxKLDxKjPNk2jxMTmF6Vxvxu/channel -b '{"name":"marc-waz-here"}' +``` + +### Options + +``` + -b, --body string JSON body to send with the request + -h, --help help for post +``` + +### Options inherited from parent commands + +``` + --app string The app slug or app id to use in all calls + --integration-test string Set to the name of the integration test to run + --log-api-calls string Log the API calls to the specified file + --token string The API token to use to access your app in the Vendor API +``` + +### SEE ALSO + +* [replicated api](replicated-cli-api) - Make ad-hoc API calls to the Replicated API + +###### Auto generated by spf13/cobra on 22-Jan-2025 diff --git a/docs/reference/replicated-cli-api-put.mdx b/docs/reference/replicated-cli-api-put.mdx new file mode 100644 index 0000000000..1010f0a90d --- /dev/null +++ b/docs/reference/replicated-cli-api-put.mdx @@ -0,0 +1,44 @@ +# replicated api put + +Make ad-hoc PUT API calls to the Replicated API + +### Synopsis + +This is essentially like curl for the Replicated API, but +uses your local credentials and prints the response unmodified. + +We recommend piping the output to jq for easier reading. + +Pass the PATH of the request as the final argument. Do not include the host or version. + +``` +replicated api put [flags] +``` + +### Examples + +``` +replicated api put /v3/app/2EuFxKLDxKjPNk2jxMTmF6Vxvxu/channel/2QLPm10JPkta7jO3Z3Mk4aXTPyZ -b '{"name":"marc-waz-here2"}' +``` + +### Options + +``` + -b, --body string JSON body to send with the request + -h, --help help for put +``` + +### Options inherited from parent commands + +``` + --app string The app slug or app id to use in all calls + --integration-test string Set to the name of the integration test to run + --log-api-calls string Log the API calls to the specified file + --token string The API token to use to access your app in the Vendor API +``` + +### SEE ALSO + +* [replicated api](replicated-cli-api) - Make ad-hoc API calls to the Replicated API + +###### Auto generated by spf13/cobra on 22-Jan-2025 diff --git a/docs/reference/replicated-cli-api.md b/docs/reference/replicated-cli-api.md deleted file mode 100644 index b988c15b88..0000000000 --- a/docs/reference/replicated-cli-api.md +++ /dev/null @@ -1,59 +0,0 @@ -import Help from "../partials/replicated-cli/_help.mdx" - -# api - -Make adhoc calls to the Vendor API v3. Uses your local credentials and prints the response unmodified. For more information, see the [Vendor API v3 documentation](https://replicated-vendor-api.readme.io/reference/createapp). - -## Usage - -```bash -replicated api [command] -``` - -Pass the PATH of the request as the final argument. Do not include the host or version. Replicated recommends piping the output to jq for easier reading. - -### Available Commands - -
| Command | -Description | -
|---|---|
| get | -Make adhoc GET API calls to the Vendor API v3 | -
| post | -Make adhoc POST API calls to the Vendor API v3 | -
| put | -Make adhoc PUT API calls to the Vendor API v3 | -
| Flag | -Type (if applicable) | -Description | -
|---|
| Flag | -Type (if applicable) | -Description | -
|---|
| Flag | -Type (if applicable) | -Description | -
|---|---|---|
-f, --force |
- - | Skip the confirmation prompt. This action cannot be undone. | -
| Flag | -Type (if applicable) | -Description | -
|---|
| Flag | -Type (if applicable) | -Description | -
|---|---|---|
--description |
- string | -A longer description of this channel | -
--name |
- string | -The name of this channel. (Required) | -
| Flag | -Type (if applicable) | -Description | -
|---|
| Flag | -Type (if applicable) | -Description | -
|---|
| Flag | -Type (if applicable) | -Description | -
|---|
| Flag | -Type (if applicable) | -Description | -
|---|
| Flag | -Type (if applicable) | -Description | -
|---|
| Flag | -Type (if applicable) | -Description | -
|---|---|---|
| --bucket-prefix | -string | -A prefix for the bucket name to be created. (Required) | -
| --wait | -bool | -Wait duration for add-on to be ready before exiting (leave empty to not wait). | -
| --dry-run | -bool | -Simulate creation to verify that your inputs are valid without actually creating an add-on. | -
| --output | -string | -The output format to use. Value values: json, table or wide. Default: table | -
| Command | -Description | -
|---|---|
replicated cluster addon create object-store |
- Create an object store bucket for a cluster. | -
| Flag | -Type (if applicable) | -Description | -
|---|
| Flag | -Type (if applicable) | -Description | -
|---|---|---|
| --output | -string | -The output format to use. Value values: json, table or wide. Default: table | -
| Flag | -Type (if applicable) | -Description | -
|---|---|---|
| --id | -string | -The ID of the cluster add-on to remove. (Required) | -
| Flag | -Type (if applicable) | -Description | -
|---|---|---|
| --addon | -string | -Add-ons to install in the cluster. Can be specified multiple times. | -
| --bucket-prefix | -string | -A prefix for the bucket name to be created. Required by `--addon object-store`. | -
| --disk | -integer | -The disk size (GiB) to request per node. Default: 50 | -
| --distribution | -string | -The Kubernetes cluster distribution type to provision. Default: kind | -
| --dry-run | -- | The dry run option runs a simulated test to verify that your inputs are valid without actually creating a cluster. | -
| --instance-type | -string | -The type of instance to use for nodes in the cluster. For supported instance types, see Supported Compatibility Matrix Cluster Types (Beta). | -
| --ip-family | -string | -IP Family to use for the cluster (ipv4|ipv6|dual). Default: ipv4 | -
| --license-id | -string | -A valid customer license ID. Required for Replicated embedded cluster distribution. | -
| --name | -string | -The name of the cluster. If no name is specified, a name will be generated. | -
| --nodes | -integer | -The node count. Default: 1 | -
| --min-nodes | -string | -Minimum Node count (only for EKS, AKS and GKE clusters). | -
| --max-nodes | -string | -Maximum Node count (only for EKS, AKS and GKE clusters). | -
| --nodegroup | -string | -Node group to create (name=?,instance-type=?,nodes=?,min-nodes=?,max-nodes=?,disk=? format, can be specified multiple times). For each nodegroup, at least one flag must be specified. The flags min-nodes and max-nodes are mutually dependent. | -
| --tag | -string | -Tag to apply to the cluster (key=value format, can be specified multiple times) | -
| --ttl | -string | -The cluster Time to Live (TTL) duration, in hours or minutes. When the TTL expires, the cluster is automatically deleted. Valid values: 10m through 48h. For example, |
-
| --version | -string | -The Kubernetes version to provision. For OpenShift clusters, provide the supported OpenShift version. The format is distribution dependent. For supported versions, see Supported Compatibility Matrix Cluster Types. | -
| --wait | -duration | -The wait duration for the cluster to be ready. Leave the value empty to avoid waiting. | -
| Flag | -Type (if applicable) | -Description | -
|---|---|---|
| --id | -string | -The ID of the cluster to download credentials for, when the a name is not specified. | -
| --name | -string | -The name of the cluster to download credentials for, when an ID is not provided. | -
| --output-path | -string | -The path to kubeconfig file to write to. If a path is not specified, the output will be merged to your existing kubeconfig. | -
| --stdout | -- | Writes kubeconfig to stdout. | -
| Flag | -Type (if applicable) | -Description | -
|---|---|---|
| --end-time | -string | -The end time for the query. Format: 2006-01-02T15:04:05Z | -
| --output | -string | -The output format to use. Value values: json, table or wide. Default: table | -
| --show-terminated | -- | When set, only shows terminated clusters. | -
| --start-time | -string | -The start time for the query. Format: 2006-01-02T15:04:05Z | -
| -w, --watch | -- | Watches the clusters. | -
| Flag | -Type (if applicable) | -Description | -
|---|
| Flag | -Type (if applicable) | -Description | -
|---|---|---|
| --port | -string | -Port to expose. (Required) | -
| --protocol | -string | -Protocol to expose (valid values are "http" and "https"). Specify multiple or separate values with commas. | -
| --wildcard | -bool | -Create a wildcard DNS entry and TLS certificate for this port. | -
| --output | -string | -The output format to use. Value values: json, table or wide. Default: table | -
| Flag | -Type (if applicable) | -Description | -
|---|---|---|
| --output | -string | -The output format to use. Value values: json, table or wide. Default: table | -
| Flag | -Type (if applicable) | -Description | -
|---|---|---|
| --id | -string | -ID of the port to remove. (Required) | -
| --output | -string | -The output format to use. Value values: json, table or wide. Default: table | -
| Flag | -Type (if applicable) | -Description | -
|---|---|---|
| --disk | -integer | -The disk size (GiB) to request per node. Default: 50 | -
| --distribution | -string | -The Kubernetes cluster distribution type to provision. Default: kind | -
| --instance-type | -string | -The type of instance to use for nodes in the cluster. See Supported Compatibility Matrix Cluster Types (Beta). | -
| --name | -string | -The name of the cluster. If no name is specified, a name will be generated. | -
| --nodes | -integer | -The node count. Default: 1 | -
| --ttl | -string | -The cluster Time to Live (TTL) duration, in hours, before the cluster is automatically deleted by the service. TTL starts when the cluster is in a Ready state. Valid values: 1 - 48. Default: 1 | -
| --version | -string | -(Required) The Kubernetes version to provision. For OpenShift clusters, provide the supported OpenShift version. The format is distribution dependent. For supported versions, see Supported Compatibility Matrix Cluster Types (Beta). | -
| --wait | -duration | -The wait duration for the cluster to be ready. Default: 5 minutes | -
| --cluster-id | -string | -The ID of an existing cluster to use instead of creating a new ID. | -
| --entitlements | -string | -The entitlements to set on the customer. You can specify multiple entitlements. | -
| --namespace | -string | -The namespace in which to deploy the KOTS or Helm chart application. Default: default | -
| --app-ready-timeout | -string | -Timeout to wait for the application to be ready. Requires the Go duration format (e.g., 10s, 2m). Default: 5 minutes | -
| --chart | -string | -The path to the Helm chart for a release. | -
| --values | -string | -Specify values in a YAML file or a URL. You can specify multiple values. | -
| --set | -string | -Set values using the command line. Specify multiple or separate values with commas: key1=val1,key2=val2. | -
| --set-string | -string | -Set String values using the command line. Specify multiple or separate values with commas: key1=val1,key2=val2. | -
| --set-file | -string | -Set values from respective files specified using the command line. Specify multiple or separate values with commas: key1=path1,key2=path2. | -
| --set-json | -string | -Set JSON values using the command line. Specify multiple or separate values with commas: key1=jsonval1,key2=jsonval2. | -
| --set-literal | -string | -Set a literal String value using the command line. | -
| --yaml | -string | -The YAML config for this release. Use - to read from stdin. Cannot be used with the --yaml-file flag. |
-
| --yaml-file | -string | -The YAML config for this release. Cannot be used with the --yaml flag. |
-
| --yaml-dir | -string | -The directory containing multiple YAML files for a KOTS release. Cannot be used with the --yaml flag. |
-
| --config-values-file | -string | -Path to a manifest containing config values. Must use apiVersion: kots.io/v1beta1, kind: ConfigValues. |
-
| --shared-password | -string | -Shared password for the KOTS admin console. | -
| Flag | -Type (if applicable) | -Description | -
|---|---|---|
| --name | -stringArray | -Name of the cluster to remove (can be specified multiple times). | -
| --tag | -stringArray | -Tag of the cluster to remove (key=value format, can be specified multiple times). | -
| --all | -- | Removes all clusters. | -
| Flag | -Type (if applicable) | -Description | -
|---|---|---|
| --id | -string | -ID of the cluster to have kubectl access to (when name is not provided) | -
| --name | -string | -Name of the cluster to have kubectl access to. | -
| Flag | -Type (if applicable) | -Description | -
|---|---|---|
--ttl |
- string | -
- The updated TTL for the cluster, in hours or minutes. Must be a duration longer than the current lifespan of the cluster. Valid values: 10m through 48h. For example, |
-
--id |
- string | -
- ID of the cluster to update TTL (when |
-
--name |
- string | -
- Name of the cluster to update TTL. - |
-
| Flag | -Type (if applicable) | -Description | -
|---|---|---|
--dry-run |
- - | The dry run option runs a simulated test to verify that your inputs are valid without actually creating a cluster. | -
--version |
- string | -(Required) Kubernetes version to upgrade to (format is distribution dependent). For supported versions, see Supported Compatibility Matrix Cluster Types (Beta). | -
--wait |
- duration | -Wait duration for cluster to be ready (leave empty to not wait) | -
| Flag | -Type (if applicable) | -Description | -
|---|---|---|
| --output | -string | -The output format to use. Value values: json or table. Default: table | -
| --distribution | -string | -The Kuberntes distribution to filter by. For example, openshift |
-
| Flag | -Type (if applicable) | -Description | -
|---|
| Flag | -Type (if applicable) | -Description | -
|---|
| Flag | -Type (if applicable) | -Description | -
|---|
| Flag | -Type (if applicable) | -Description | -
|---|
| Command | -Description | -
|---|---|
replicated completion bash |
- Generates bash completion script |
-
replicated completion fish |
- Generates fish completion script |
-
replicated completion powershell |
- Generates powershell completion script |
-
replicated completion zsh |
- Generates zsh completion script |
-
| Flag | -Type (if applicable) | -Description | -
|---|
| Flag | -Type (if applicable) | -Description | -
|---|---|---|
--name |
- string | -The name of the customer. (Required) | -
--channel |
- string | -The channel name to associate with the customer. Case-sensitive. (Required) | -
--ensure-channel |
- - | If set, channel is created if it does not exist. | -
--expires-in |
- 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.) | -
| Flag | -Type (if applicable) | -Description | -
|---|---|---|
--customer |
- string | -The customer name or ID. | -
| Flag | -Type (if applicable) | -Description | ---app-version | string | The application version. Used to list customers and their instances for a specific application version. | -
|---|
| Flag | -Type (if applicable) | -Description | -
|---|---|---|
--auto |
- - | Generate the default values for use in the CI | -
-y, --confirm-auto |
- - | Auto-accept the configuration generated by the --auto flag | -
--ensure-channel |
- - | When used with --promote channel, creates the channel if it does not exist. |
-
--promote |
- string | -Channel name or ID to promote this installer to. Channel name is case sensitive. | -
--yaml |
- string | -The YAML config for this installer. Use '-' to read from stdin. Cannot be used with the --yaml-file flag. |
-
--yaml-file |
- string | -The file name with YAML config for this installer. Cannot be used with the --yaml flag. |
-
| Flag | -Type (if applicable) | -Description | -
|---|
| Flag | -Type (if applicable) | -Description | -
|---|---|---|
--customer |
- string | -Customer Name or ID that instance belongs to. | -
--instance |
- string | -Instance Name or ID to inspect. | -
--output |
- string | -The output format to use: json or table. Default: table |
-
| Flag | -Type (if applicable) | -Description | -
|---|---|---|
--customer |
- string | -Customer Name or ID to list instances for. | -
--output |
- string | -The output format to use: json or table. Default: table |
-
--tag |
- string | -Tags to filter instances. Multiple --tag flags can be specified. Only one of the tags must match per instance. |
-
| Flag | -Type (if applicable) | -Description | -
|---|---|---|
--customer |
- string | -Customer Name or ID that instance belongs to. | -
--instance |
- string | -Instance Name or ID to add or remove tags. | -
--output |
- string | -The output format to use: json or table. Default: table |
-
--tag |
- string | -Tags to apply to the instance. Leave value empty to remove tag. Tags not specified are removed or modified. | -
| Flag | -Type (if applicable) | -Description | -
|---|
| Flag | -Type (if applicable) | -Description | -
|---|
| Flag | -Type (if applicable) | -Description | -
|---|
| Flag | -Type (if applicable) | -Description | -
|---|---|---|
--accesskeyid |
- string | -The access key ID to use when authenticating to the registry. | -
--secretaccesskey |
- string | -The secret access key to use when authenticating to the registry. | -
--secretaccesskey-stdin |
- - | Takes the secret access key from stdin. | -
| Flag | -Type (if applicable) | -Description | -
|---|---|---|
--serviceaccountkey |
- string | -The service account key to use when authenticating to the registry. | -
--serviceaccountkey-stdin |
- - | Take the service account key from stdin. | -
--token |
- string | -The Google Cloud OAuth token to use when authenticating to the registry. | -
--token-stdin |
- - | Takes the Google Cloud OAuth token from stdin. | -
| Flag | -Type (if applicable) | -Description | -
|---|---|---|
--serviceaccountkey |
- string | -The service account key to use when authenticating to the registry. | -
--serviceaccountkey-stdin |
- - | Take the service account key from stdin. | -
| Flag | -Type (if applicable) | -Description | -
|---|
| Flag | -Type (if applicable) | -Description | -
|---|---|---|
--endpoint |
- string | -The endpoint for the registry. | -
| Flag | -Type (if applicable) | -Description | -
|---|
| Command | -Description | -
|---|---|
replicated registry add dockerhub |
- Adds a DockerHub registry. | -
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). | -
replicated registry add ghcr |
- Adds a GitHub Container Registry (GHCR). | -
replicated registry add other |
- Adds a registry that is not otherwise specified with its own command. | -
replicated registry add quay |
- Adds a quay.io registry. | -
| Flag | -Type (if applicable) | -Description | -
|---|
| Flag | -Type (if applicable) | -Description | -
|---|
| Flag | -Type (if applicable) | -Description | -
|---|
| Flag | -Type (if applicable) | -Description | -
|---|
| Flag | -Type (if applicable) | -Description | -
|---|---|---|
--image |
- string | -The image to use to do a test pull. | -
| Flag | -Type (if applicable) | -Description | -
|---|---|---|
--distribution |
- string | -Kubernetes distribution of the cluster to report on. |
-
--failure |
- bool | -If set, the compatibility will be reported as a failure. | -
--notes |
- string | -Additional notes to report. | -
--success |
- - | If set, the compatibility will be reported as a success. | -
--version |
- string | -Kubernetes version of the cluster to report on (format is distribution dependent). | -
| Flag | -Type (if applicable) | -Description | -
|---|---|---|
--yaml-dir |
- path | -The local directory containing multiple YAML manifest files for a release. (Required) |
-
--promote |
- string | -Channel name to promote this release to. Case sensitive. | -
--ensure-channel |
- - | When used with --promote channel, creates the channel if it does not exist. |
-
--lint |
- - | Lint a manifest directory prior to creation of the release. For more information, see Linter Rules. | -
--release-notes |
- string | -When used with --promote channel, creates the release notes in markdown. |
-
--version |
- string | -When used with If semantic versioning is enabled on the channel, then the version label must be a valid semantic version number. See Semantic Versioning in About Releases. |
-
| Flag | -Type (if applicable) | -Description | -
|---|---|---|
-d, --dest |
- string | -Directory where release manifests should be downloaded. | -
| Flag | -Type (if applicable) | -Description | -
|---|
| Flag | -Type (if applicable) | -Description | -
|---|---|---|
--fail-on |
- string | -The minimum severity of a linting rule to cause a non-zero exit code. Supported values are info, warn, error, none. Default: Error |
-
| Flag | -Type (if applicable) | -Description | -
|---|
| Flag | -Type (if applicable) | -Description | -
|---|---|---|
--release-notes |
- string | -The release notes for the release. Supports markdown formatting. | -
--required |
- - | Prevents users from skipping this release during application upgrades. For more information, see Managing Releases with the Vendor Portal. | -
--version |
- string | -A version label for the release in this channel. If semantic versioning is enabled on the channel, then the version label must be a valid semantic version number. See Semantic Versioning in About Releases. |
-
| Flag | -Type (if applicable) | -Description | -
|---|