Skip to content

get

Usage

The rapd env command is used to retrieve environment resources.

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

Flags

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

Flag NameShort NameDefault ValueRequiredDescription
--output-oNoOutput the full 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 env get command:

  1. Retrieve an Environment by specifying its name:
Terminal window
rapd env get env1
  1. Output the full spec:
Terminal window
rapd env get env1 -o yaml

Output

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

Terminal window
NAMESPACE NAME PHASE
rapd-system env1 Ready
rapd-system env2 NotReady