Skip to content

get

Usage

The rapd target command is used to retrieve Target resources.

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

Flags

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

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

Examples

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

  1. Retrieve a Target by name (in the default-env environment):
Terminal window
rapd target get bind-gcp -e default-env
  1. Output the complete Target spec:
Terminal window
rapd target get bind-gcp -e default-env -o yaml

Output

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

Terminal window
NAMESPACE NAME PHASE CLUSTERNAME
test bind-gcp Bound default
test bind-aws Unbound