Skip to content

get

Usage

The rapd cluster command is used to retrieve Cluster resources.

Terminal window
rapd cluster get (Name...) [flags]

Flags

These are the flags available in the rapd cluster get command:

Flag NameShort NameDefault ValueRequiredDescription
--output-oNoOutput the full spec of the resource in a readable file, such as YAML or JSONL format.
--label-lNoRetrieve resources matching the specified label
--fieldNoRetrieve resources matching the specified field
--all-namespaces-ANoQuery resources in all environments
--ignore-not-foundNoIgnore errors when the resource does not exist (returns exit code 0)

Examples

Here are some examples of using the rapd cluster get command:

  1. Retrieve a Cluster resource by specifying its name:
Terminal window
rapd cluster get gcp
  1. Output the full spec of a Cluster resource:
Terminal window
rapd cluster get gcp -o yaml

Output

After successfully executing the command, the output will look similar to the following:

Terminal window
NAMESPACE NAME PHASE SECRETNAME
rapd-system c1 Available c1-secret
rapd-system c2 Available c2-secret