Forrest logo
back to context overview

oc

List of commands for oc:

  • oc:tldr:18c78 oc: Switch to an existing project.
    $ oc project ${project_name}
    try on your machine
    explain this command
  • oc:tldr:5583b oc: Log out from the current session.
    $ oc logout
    try on your machine
    explain this command
  • oc:tldr:93c1e oc: List pods in a project.
    $ oc get pods
    try on your machine
    explain this command
  • oc:tldr:a9902 oc: Log in to the OpenShift Container Platform server.
    $ oc login
    try on your machine
    explain this command
  • oc:tldr:cd052 oc: Create a new project.
    $ oc new-project ${project_name}
    try on your machine
    explain this command
  • oc:tldr:e85b0 oc: Add a new application to a project.
    $ oc new-app ${repo_url} --name ${application}
    try on your machine
    explain this command
  • oc:tldr:f022d oc: Open a remote shell session to a container.
    $ oc rsh ${pod_name}
    try on your machine
    explain this command
back to context overview