get
Usage
The rapd env
command is used to retrieve environment resources.
rapd env get (Name...) [flags]
Flags
These are the flags available in the rapd env get
command:
Flag Name | Short Name | Default Value | Required | Description |
---|---|---|---|---|
--output | -o | No | Output the full resource spec in a readable format, such as YAML or JSONL. | |
--label | -l | No | Retrieve resources matching the specified label | |
--field | No | Retrieve resources matching the specified field | ||
--all-namespaces | -A | No | Query resources across all namespaces | |
--ignore-not-found | No | Ignore errors when the resource does not exist (returns exit code 0) |
Examples
Here are some examples of using the rapd env get
command:
- Retrieve an Environment by specifying its name:
rapd env get env1
- Output the full spec:
rapd env get env1 -o yaml
Output
After successfully executing the command, the output will look similar to the following:
NAMESPACE NAME PHASErapd-system env1 Readyrapd-system env2 NotReady