Chapter 5. Administrator CLI Operations


5.1. Overview

This topic provides information on the administrator CLI operations and their syntax. You must setup and login with the CLI before you can perform these operations.

The oc adm command (formerly the oadm command) is used for administrator CLI operations. The administrator CLI differs from the normal set of commands under the developer CLI, which uses the oc command, and is used more for project-level operations.

Note

Your login may or may not have access to the following administrative commands, depending on your account type.

5.2. Common Operations

The administrator CLI allows interaction with the various objects that are managed by OpenShift Dedicated. Many common oc adm operations are invoked using the following syntax:

$ oc adm <action> <option>
Copy to Clipboard Toggle word wrap

This specifies:

  • An <action> to perform, such as new-project or groups.
  • An available <option> to perform the action on as well as a value for the option. Options include --output.
Important

When running oc adm commands, you should run them only from the first master listed in the Ansible host inventory file, by default /etc/ansible/hosts.

5.3. Basic CLI Operations

5.3.1. new-project

Creates a new project:

$ oc adm new-project <project_name>
Copy to Clipboard Toggle word wrap

5.3.2. policy

Manages authorization policies:

$ oc adm policy
Copy to Clipboard Toggle word wrap

5.3.3. groups

Manages groups:

$ oc adm groups
Copy to Clipboard Toggle word wrap

5.4. Maintenance CLI Operations

5.4.1. build-chain

Outputs the inputs and dependencies of any builds:

$ oc adm build-chain <image_stream>[:<tag>]
Copy to Clipboard Toggle word wrap
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2026 Red Hat
Back to top