Hereโs a clean and well-structured table listing all the crc commands along with their descriptions:
| Command | Description |
|---|---|
bundle | Manage CRC bundles (download, add, list bundles for OpenShift) |
cleanup | Undo system changes made by CRC setup (DNS, networking, etc.) |
completion | Generate the autocompletion script for bash, zsh, etc. |
config | Modify CRC configuration options (CPU, memory, etc.) |
console | Open the OpenShift Web Console in the default browser |
delete | Delete the CRC VM and cluster data |
help | Show help about any CRC command |
ip | Get the IP address of the running OpenShift cluster |
oc-env | Add the oc (OpenShift CLI) executable to your system PATH |
podman-env | Set environment variables to use podman with CRC |
setup | Set up system prerequisites for CRC (run before first use) |
start | Start the OpenShift cluster |
status | Display the current status of the OpenShift cluster |
stop | Stop the running cluster instance |
version | Print CRC version, OpenShift version, and bundle information |
Hereโs a complete breakdown of each crc command, including explanations and multiple practical examples for each. This will help you master the crc CLI when working with your local OpenShift 4.x cluster.
๐ง crc – Overview
CRC (CodeReady Containers) allows you to spin up a local single-node OpenShift 4 cluster ideal for testing and development. You run commands using:
crc <command> [flags]
Code language: HTML, XML (xml)
โ
1. crc start
Starts the local OpenShift cluster.
๐นUsage:
crc start
๐นExamples:
crc start --memory 12288 --cpus 4
Start the cluster with 12GB RAM and 4 CPUs.
crc start --log-level debug
Start with detailed logs for troubleshooting.
๐ 2. crc stop
Stops the running OpenShift cluster.
๐นUsage:
crc stop
๐นExamples:
crc stop
Gracefully stops the cluster, freeing up system resources.
โ 3. crc delete
Completely deletes the CRC VM and data (non-reversible).
๐นUsage:
crc delete
Code language: JavaScript (javascript)
๐นExamples:
crc delete --force
Code language: JavaScript (javascript)
Forcefully delete CRC without confirmation prompt.
โ๏ธ 4. crc setup
Prepares your system for running CRC (sets DNS, network, etc.).
๐นUsage:
crc setup
๐นExamples:
crc setup
Run this once before the first
crc start.
๐ 5. crc status
Shows the current state of the CRC VM and OpenShift cluster.
๐นUsage:
crc status
๐นExamples:
crc status --log-level debug
View detailed status info for debugging.
๐ 6. crc console
Opens the OpenShift web console in your default browser.
๐นUsage:
crc console
Code language: JavaScript (javascript)
๐นExamples:
crc console --credentials
Code language: JavaScript (javascript)
Displays login credentials along with opening the console.
๐ง 7. crc config
View and modify CRC config settings.
๐นUsage:
crc config <subcommand>
Code language: HTML, XML (xml)
๐นExamples:
crc config view
See all current config settings.
crc config set memory 8192
crc config set cpus 4
Code language: JavaScript (javascript)
Set RAM and CPU for the cluster.
crc config unset memory
Code language: PHP (php)
Remove a previously set value.
๐ 8. crc version
Displays CRC, OpenShift, and bundle versions.
๐นUsage:
crc version
๐นExamples:
crc version
Useful for support or checking compatibility.
๐ 9. crc ip
Gets the IP address of the running cluster.
๐นUsage:
crc ip
๐นExamples:
export CRC_IP=$(crc ip)
Code language: JavaScript (javascript)
Store the IP in a shell variable for use in scripts.
๐ 10. crc oc-env
Outputs environment variables to use oc CLI.
๐นUsage:
crc oc-env
๐นExamples:
eval $(crc oc-env)
Code language: JavaScript (javascript)
Sets up the shell so you can run
occommands directly.
๐ป 11. crc podman-env
Sets up environment for podman CLI to work with CRC.
๐นUsage:
crc podman-env
๐นExamples:
eval $(crc podman-env)
Code language: JavaScript (javascript)
Sets environment variables to use
podmanwith the CRC container runtime.
๐งน 12. crc cleanup
Reverts changes CRC made to your system (use cautiously).
๐นUsage:
crc cleanup
๐นExamples:
crc cleanup
Removes system DNS, network, and other tweaks made by CRC setup.
๐ฆ 13. crc bundle
Manage OpenShift bundles (images and VM base files).
๐นUsage:
crc bundle <subcommand>
Code language: HTML, XML (xml)
๐นExamples:
crc bundle list
Code language: PHP (php)
List available bundles.
crc bundle add ~/Downloads/crc_libvirt_4.13.9.crcbundle
Code language: JavaScript (javascript)
Add a new bundle manually.
๐ 14. crc completion
Generate shell completion scripts for bash, zsh, etc.
๐นUsage:
crc completion bash
๐นExamples:
crc completion zsh > ~/.crc-completion.sh
Then source the file in your
.zshrc.
๐ 15. crc help
Displays help for any command.
๐นUsage:
crc help
crc <command> --help
Code language: HTML, XML (xml)
๐นExamples:
crc help start
Detailed help for the
startcommand.
โ Flags (Global)
--log-level(debug, info, warn, error)--help– Show help for commands
Would you like me to generate a cheat sheet image or step-by-step beginner tutorial for this?
Iโm a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at Cotocus. I share tech blog at DevOps School, travel stories at Holiday Landmark, stock market tips at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow , and SEO strategies at Wizbrand.
Do you want to learn Quantum Computing?
Please find my social handles as below;
Rajesh Kumar Personal Website
Rajesh Kumar at YOUTUBE
Rajesh Kumar at INSTAGRAM
Rajesh Kumar at X
Rajesh Kumar at FACEBOOK
Rajesh Kumar at LINKEDIN
Rajesh Kumar at WIZBRAND
Find Trusted Cardiac Hospitals
Compare heart hospitals by city and services โ all in one place.
Explore Hospitals