This is a cache of https://docs.openshift.com/dedicated/3/cli_reference/admin_cli_operations.html. It is a snapshot of the page at 2024-11-25T05:07:37.047+0000.
Administrator <strong>cli</strong> Operations | <strong>cli</strong> Reference | OpenShift Dedicated 3
×

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.

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

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>

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.

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.

Basic cli Operations

new-project

Creates a new project:

$ oc adm new-project <project_name>

policy

Manages authorization policies:

$ oc adm policy

groups

Manages groups:

$ oc adm groups

Maintenance cli Operations

build-chain

Outputs the inputs and dependencies of any builds:

$ oc adm build-chain <image_stream>[:<tag>]