Command

Kubernetes List Resource Types Command

The Kubernetes command to list resource types is kubectl api-resources.

Quick Answer

Command
kubectl api-resources
KubernetesCommand

List Resource Types

Type this command
kubectl api-resources

Lists every resource type the API supports.

Learn More

How to list resource types in Kubernetes

  1. Open the terminal or command interface for Kubernetes.
  2. Type kubectl api-resources, replace any placeholders, and run it.

Kubernetes List Resource Types Command

Run kubectl api-resources.

Related Commands

Frequently asked questions

What is the Kubernetes command to list resource types?

Run kubectl api-resources.

Where do I type this Kubernetes command?

Type it in the terminal or command-line interface used by Kubernetes.

Does this Kubernetes command work on Mac and Windows?

Yes. The command text is the same on both platforms when the tool is installed.

Official source · How we verify