diff --git a/modules/templates-create-from-existing-object.adoc b/modules/templates-create-from-existing-object.adoc index 70240ab2d3dd..7f79081815e7 100644 --- a/modules/templates-create-from-existing-object.adoc +++ b/modules/templates-create-from-existing-object.adoc @@ -11,23 +11,28 @@ adding parameters and other customizations as template form. .Procedure -. Export objects in a project in YAML form: +* Export objects in a project in YAML form: + [source,terminal] ---- -$ oc get -o yaml --export all > +$ oc get -o yaml all > ---- + You can also substitute a particular resource type or multiple resources instead of `all`. Run `oc get -h` for more examples. + -The object types included in `oc get --export all` are: +The object types included in `oc get -o yaml all` are: + -* BuildConfig -* Build -* DeploymentConfig -* ImageStream -* Pod -* ReplicationController -* Route -* Service +** `BuildConfig` +** `Build` +** `DeploymentConfig` +** `ImageStream` +** `Pod` +** `ReplicationController` +** `Route` +** `Service` + +[NOTE] +==== +Using the `all` alias is not recommended because the contents might vary across different clusters and versions. Instead, specify all required resources. +====