NGC CLI installation — Control Plane Installation and Configuration (NVIDIA-Certified Professional: AI Infrastructure)
NGC CLI Installation The NVIDIA GPU Cloud (NGC) Command Line Interface (CLI) is a powerful tool that simplifies the management of NVIDIA AI...
NGC CLI Installation
The NVIDIA GPU Cloud (NGC) Command Line Interface (CLI) is a powerful tool that simplifies the management of NVIDIA AI infrastructure. This section focuses on the installation of the NGC CLI, which is essential for deploying and managing GPU-accelerated applications.
Prerequisites
Before proceeding with the installation, ensure that you have the following:
- A compatible operating system (Linux distributions such as Ubuntu or CentOS are recommended).
- Access to a terminal with administrative privileges.
- Docker installed and configured on your system.
Installation Steps
- Download the NGC CLI: You can download the NGC CLI from the official NVIDIA website. Use the following command to download the latest version:
Command:
curl -O https://ngc.nvidia.com/downloads/ngccli/ngccli.tar.gz- Extract the downloaded file: After downloading, extract the tarball using the following command:
Command:
tar -xvzf ngccli.tar.gz- Install the NGC CLI: Navigate to the extracted directory and run the installation script:
Command:
cd ngccli && sudo ./install.sh- Configure the NGC CLI: After installation, you need to configure the CLI with your NGC API key. Obtain your API key from the NGC website and run the following command:
Command:
ngc config setFollow the prompts to enter your API key and set your preferred region.
Verification
To verify that the NGC CLI is installed correctly, you can run:
Command:
ngc --versionIf the installation was successful, this command will display the version of the NGC CLI.
Conclusion
Installing the NGC CLI is a crucial step in managing your NVIDIA AI infrastructure effectively. With the CLI, you can easily pull container images, manage resources, and streamline your workflows in AI development.