3.7 NGC CLI on hosts

NCP-AII · Control Plane Installation and Configuration (19% of the exam) · Official objective: “Install NGC CLI on hosts.”

Installing the NGC command line tool and authenticating it with an API key.

Key points

  1. The NGC CLI is NVIDIA's command-line tool for the NGC catalog of containers and models. NVIDIA's examples authenticate it with an NGC API key: run 'ngc config set' and paste the key at the API_KEY prompt.

    What NVIDIA says (2)

    “Here are some examples of using NGC API keys to authenticate with NGC CLI and Docker CLI”

    — NGC Overview

    “ngc config set Paste your key value at the API_KEY prompt”

    — NGC Overview

  2. The NGC CLI is NVIDIA's command-line tool for the NGC catalog of containers and models. NVIDIA recommends always running the latest version for new features, bug fixes and security updates. The CLI can list its own releases and upgrade itself; the NGC CLI Installers page also has the downloads.

    What NVIDIA says (2)

    “Always use the latest NGC CLI version to access the newest features, bug fixes, performance improvements, and security updates.”

    — NGC Overview

    “or run ngc version list to view the latest releases, then upgrade using the following command: ngc version upgrade”

    — NGC Overview

Key terms

Sample question

After installing the NGC CLI on a host, how do you authenticate it, according to NVIDIA's NGC documentation?

Show the answer

Answer: Run 'ngc config set' and paste your NGC API key at the prompt.

The NGC CLI is NVIDIA's command-line tool for the NGC catalog of containers and models. NVIDIA's examples authenticate it with an NGC API key: run 'ngc config set' and paste the key at the API_KEY prompt.

What NVIDIA says (2)

“Here are some examples of using NGC API keys to authenticate with NGC CLI and Docker CLI”

— NGC Overview

“ngc config set Paste your key value at the API_KEY prompt”

— NGC Overview

Practice 3.7 (2 questions) Full Control Plane Installation and Configuration guide

← 3.6 GPUs with Docker · 4.1 Single-node stress test →