Skip to content

get

Usage

The rapd app command is used to retrieve Application resources.

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

Flags

These are the flags available in the rapd app 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 app get command:

  1. Retrieve an Application by specifying its name (in the default-env environment):
Terminal window
rapd app get myApplication1 myApplication2 -e default-env
  1. Output the full spec of an Application:
Terminal window
rapd app get myApplication1 -e default-env -o yaml

Output

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

Terminal window
NAMESPACE NAME PHASE REVISION LATESTREVISION LASTDEPLOYEDTIME
env1 testapp Failed 1 1 2024-04-09T10:47:52Z
env1 gateway Deployed 3 3 2024-04-09T10:47:52Z