OpenShift Container Platform 4.5 Applications Create a new application by referencing the file: $ oc create -f myapp.yaml Objects created by  new-app  are normally named after the source repository, or the image used to generate them. You can set the name of the objects produced by adding a  --name  flag to the command: $ oc new-app https://github.com/openshift/ruby-hello-world --name=myapp Normally,  new-app  creates objects in the current project. However, you can create objects in a different project by using the  -n|--namespace  argument: $ oc new-app https://github.com/openshift/ruby-hello-world -n myproject The  new-app  command allows creating multiple applications specifying multiple parameters to  new- app . Labels specified in the command line apply to all objects created by the single command. Environment variables apply to all components created from source or images. To create an application from a source repository and a Docker Hub image: $ oc new-app https://github.com/openshift/ruby-hello-world mysql If a source code repository and a builder image are specified as separate arguments,  new-app  uses the builder image as the builder for the source code repository. If this is not the intent, specify the required builder image for the source using the  ~  separator. The  new-app  command allows deploying multiple images together in a single pod. In order to specify which images to group together, use the  +  separator. The  --group  command line argument can also be used to specify the images that should be grouped together. To group the image built from a source repository with other images, specify its builder image in the group: $ oc new-app ruby+mysql To deploy an image built from source and an external image together: $ oc new-app \ ruby~https://github.com/openshift/ruby-hello-world \ mysql \ --group=ruby+mysql 2.3.4.8. Grouping images and source in a single pod NOTE 2.3.4.7. Creating multiple objects 2.3.4.6. Creating objects in a different project 2.3.4.5. Creating objects with different names 28