Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

โ€œInvest in yourself โ€” your confidence is always worth it.โ€

Explore Cosmetic Hospitals

Start your journey today โ€” compare options in one place.

Openshift Local: crc command lines guide

Hereโ€™s a clean and well-structured table listing all the crc commands along with their descriptions:

CommandDescription
bundleManage CRC bundles (download, add, list bundles for OpenShift)
cleanupUndo system changes made by CRC setup (DNS, networking, etc.)
completionGenerate the autocompletion script for bash, zsh, etc.
configModify CRC configuration options (CPU, memory, etc.)
consoleOpen the OpenShift Web Console in the default browser
deleteDelete the CRC VM and cluster data
helpShow help about any CRC command
ipGet the IP address of the running OpenShift cluster
oc-envAdd the oc (OpenShift CLI) executable to your system PATH
podman-envSet environment variables to use podman with CRC
setupSet up system prerequisites for CRC (run before first use)
startStart the OpenShift cluster
statusDisplay the current status of the OpenShift cluster
stopStop the running cluster instance
versionPrint 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 oc commands 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 podman with 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 start command.


โœ… 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?

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services โ€” all in one place.

Explore Hospitals
Iโ€™m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at <a href="https://www.cotocus.com/">Cotocus</a>. I share tech blog at <a href="https://www.devopsschool.com/">DevOps School</a>, travel stories at <a href="https://www.holidaylandmark.com/">Holiday Landmark</a>, stock market tips at <a href="https://www.stocksmantra.in/">Stocks Mantra</a>, health and fitness guidance at <a href="https://www.mymedicplus.com/">My Medic Plus</a>, product reviews at <a href="https://www.truereviewnow.com/">TrueReviewNow</a> , and SEO strategies at <a href="https://www.wizbrand.com/">Wizbrand.</a> Do you want to learn <a href="https://www.quantumuting.com/">Quantum Computing</a>? <strong>Please find my social handles as below;</strong> <a href="https://www.rajeshkumar.xyz/">Rajesh Kumar Personal Website</a> <a href="https://www.youtube.com/TheDevOpsSchool">Rajesh Kumar at YOUTUBE</a> <a href="https://www.instagram.com/rajeshkumarin">Rajesh Kumar at INSTAGRAM</a> <a href="https://x.com/RajeshKumarIn">Rajesh Kumar at X</a> <a href="https://www.facebook.com/RajeshKumarLog">Rajesh Kumar at FACEBOOK</a> <a href="https://www.linkedin.com/in/rajeshkumarin/">Rajesh Kumar at LINKEDIN</a> <a href="https://www.wizbrand.com/rajeshkumar">Rajesh Kumar at WIZBRAND</a> <a href="https://www.rajeshkumar.xyz/dailylogs">Rajesh Kumar DailyLogs</a>

Related Posts

List of all Job Roles, Job Titles in Software and IT Companies

The software and IT industry is home to a diverse array of job roles and titles, reflecting the dynamic and ever-evolving nature of technology. From core technical…

Read More

Best DevOps Tools in 2024

hereโ€™s a clear, structured breakdown of the Best DevOps Tools (grouped by categories), so you can use it for learning, training, or posts. ๐Ÿš€ Best DevOps Tools…

Read More

OpenShift Install & Configurations using OpenShift Local in windows laptops/desktops

Below is the 100% correct and updated step-by-step guide to install and configure OpenShift Local (aka CRC) on Windows 10/11 laptops or desktops using the correct crc…

Read More

Openshift: How to configure Azure openshift ARO with Custom Domain

Step-by-Step Guide: Configuring Azure Red Hat OpenShift (ARO) with a Custom Domain Setting up a custom domain for your ARO cluster involves both Azure and DNS provider…

Read More

Openshift: Lab 10 – View performance information using the OpenShift web console

Rajesh Kumar 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…

Read More

Openshift: How to add Helm Repository in Openshift

Adding a Helm repository in OpenShift is a common step to manage and deploy Helm charts in your OpenShift cluster. OpenShift supports Helm CLI out of the…

Read More
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x