Skip to main content
AI
  • Get started with AI

    • Red Hat AI

      Accelerate the development and deployment of enterprise AI solutions.

    • AI learning hub

      Explore learning materials and tools, organized by task.

    • AI interactive demos

      Click through scenarios with Red Hat AI, including training LLMs and more.

    • AI/ML learning paths

      Expand your Red Hat OpenShift AI knowledge using these learning resources.

    • AI quickstarts

      Focused AI use cases designed for fast deployment on Red Hat AI platforms.

    • No-cost AI training

      Foundational Red Hat AI training.

  • Featured resources

    • Red Hat OpenShift AI
    • Open source AI for developers
    • AI product application development
    • Open source-powered AI/ML for hybrid cloud
    • AI and Node.js cheat sheet

Red Hat AI Factory with NVIDIA

Red Hat AI Factory with NVIDIA is a co-engineered, enterprise-grade AI solution for building, deploying, and managing AI at scale across hybrid cloud environments.

Learn
  • Self-guided

    • Documentation

      Find answers, get step-by-step guidance, and learn how to use Red Hat products.

    • Learning paths

      Explore curated walkthroughs for common development tasks.

    • Guided learning

      Receive custom learning paths powered by our AI assistant.

    • See all learning
  • Hands-on

    • Developer Sandbox

      Spin up Red Hat's products and technologies without setup or configuration.

    • Interactive labs

      Learn by doing in these hands-on, browser-based experiences.

    • Interactive demos

      Click through product features in these guided tours.

  • Browse by topic

    • AI/ML
    • Automation
    • Java
    • Kubernetes
    • Linux
    • See all topics
  • Training & certifications

    • Courses and exams
    • Certifications
    • Skills assessments
    • Red Hat Academy
    • Learning subscription
    • Explore training
Build
  • Get started

    • Red Hat build of Podman Desktop

      A downloadable, local development hub to experiment with our products and builds.

    • Developer Sandbox

      Spin up Red Hat's products and technologies without setup or configuration.

  • Download products

    • Red Hat Enterprise Linux
    • Red Hat AI
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products
  • Featured

    • Red Hat build of OpenJDK
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat Developer Toolset
  • References

    • E-books
    • Documentation
    • Cheat sheets
    • Architecture center
Community
  • Get involved

    • Events
    • Live AI events
    • Red Hat Summit
    • Red Hat Accelerators
    • Community discussions
  • Follow along

    • Articles & blogs
    • Developer newsletter
    • Videos
    • Github
  • Get help

    • Customer service
    • Customer support
    • Regional contacts
    • Find a partner

Join the Red Hat Developer program

Download Red Hat products and project builds, access support documentation, learning content, and more.

ConsoleDocsSupport Search
New For you

Recommended

We'll recommend resources you may like as you browse. Try these suggestions for now.

  • Product downloads
  • Cheat sheets
  • Red Hat Developer learning portal
  • Developer blog
  • E-books
  • Developer Sandbox
Log in

Get more with a Red Hat Developer account

  • Product downloads
  • Console access
  • Event registration
  • Training & trials
Explore more account benefitsLog in or register

A subscription may be required for some services.

Contact us

Access your Developer Sandbox from the command line

April 21, 2021
Don Schenck
Related topics:
ContainersDeveloper toolsKubernetes
Related products:
Developer Sandbox

    Now that you have your own Red Hat OpenShift instance in our Developer Sandbox...

    What? You don't have your place in the free sandbox? Where you can experiment with containers and Kubernetes and Red Hat OpenShift? Then hurry over to the website and sign up; I'll wait.

    Okay, now that you have your own OpenShift instance in our Developer Sandbox, you can log in to the dashboard and click around, take a tour, launch applications—all the cool stuff. But what if you want to run from the command line? The command line is where automation (it's scripting, but "automation" sounds so much cooler) happens. Building a structure of repeatable actions is, after all, what we developers do.

    How do you get access? This short article will show you. Let's get started.

    First stop: The OpenShift dashboard

    The first step is to log into your OpenShift dashboard. Once there, click on the little question mark in the upper right corner (see Figure 1). The menu that appears is the key to unlocking the command line. It also contains links to a world of great information; take advantage of it.

    openshift dashboard help icon
    Figure 1: The OpenShift dashboard help icon.

    In our case, we want to click the Command Line Tools option, shown in Figure 2.

    openshift help options menu
    Figure 2: The OpenShift Help options menu.

    The Command Line Tools section of your dashboard is loaded with great tools, and you'll want to install some of them (oc and odo are must-haves, in my opinion). But right now we will focus on the very first link labeled Copy Login Command (see Figure 3).

    The OpenShift command line tools page, with "Copy Login Command" highlighted.
    Figure 3: The OpenShift command-line tools page.

    This link opens a new tab in your browser. When prompted to log in, simply click the DevSandbox option. You'll land at what appears to be a rather unfinished web page. It's not unfinished; it's merely kept as simple as possible. You have one option, Display Token, so click on it.

    A token of appreciation

    After you've clicked Display Token, your login token will appear, as well as the command you will need to log in (see Figure 4).

    Note: You'll need to have the oc command-line tool installed on your machine. Remember all the goodies I mentioned back on the Command Line Tools page?

    api token page
    Figure 4: The API token and login command page.

    Copy the token to your clipboard and paste it to your command line. You can now access your sandbox from the command line (see Figure 5).

    logging in from command line
    Figure 5: Logging in from the command line.

    Off and running

    Want to get an idea of what's at hand? Run the oc new-app --list command and see what options are available to you. Just to whet your appetite, you can install:

    • An instance of MariaDB
    • .NET example code
    • An instance of MySQL
    • A Node.js example
    • Nginx

    and dozens more.

    Fun fact: You can also use the kubectl command-line tool against your cluster.

    Knock yourself out.

    Last updated: January 13, 2025

    Recent Posts

    • A day in the life of an NVIDIA H100 on Red Hat OpenShift 5

    • Migrate BuildConfigs to builds for Red Hat OpenShift with one plug-in install

    • Run Red Hat Enterprise Linux CoreOS on NVIDIA BlueField DPUs

    • Agent harness engineering: Separating model capabilities from enforcement

    • What's new for developers in Red Hat Enterprise Linux 10.3 and 9.9

    Red Hat Developers logo

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Build

    • Developer Sandbox
    • Developer tools
    • Interactive tutorials
    • API catalog

    Quicklinks

    • Learning resources
    • E-books
    • Cheat sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site status dashboard
    • Report a security problem

    Red Hat Developer

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2026 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility
    Ask AI