Installing the Red Hat AI InstructLab CLI
You can use the ilab
CLI plug-in to manage your InstructLab resources.
Running the installation command
The latest version of the IBM Cloud CLI is installed when you run the command. As the CLI installs, keep an eye on the command line to authenticate as needed.
-
For MacOS, run the following command:
curl -fsSL https://clis.cloud.ibm.com/install/osx | sh
-
For Linux™, run the following command:
curl -fsSL https://clis.cloud.ibm.com/install/linux | sh
-
For Windows™, run the following command in PowerShell as an administrator:
iex (New-Object Net.WebClient).DownloadString('https://clis.cloud.ibm.com/install/powershell')
To open PowerShell, right-click the Windows™ PowerShell icon, and select Run as administrator.
-
For WSL2 on Windows™, run the following command:
curl -fsSL https://clis.cloud.ibm.com/install/linux | sh
Verifying the installation
To verify that the CLI was installed successfully, run the help
command:
ibmcloud help
The output lists the usage instructions, the current version, and the supported commands.
Installing CLI plug-ins and tools
To manually install the CLI plug-ins and tools, see Extending IBM Cloud CLI with plug-ins.
-
To install the
ilab
plug-in, run the following command.ibmcloud plugin install ilab
-
To install the
cos
plug-in, run the following command.ibmcloud plugin install cos
-
To install the
secrets-manager
plug-in, run the following command.ibmcloud plugin install secrets-manager
-
Optional: Install the Git CLI to store and manage your taxonomies.
Updating the IBM Cloud CLI
Use the latest version of the CLI. If you aren't using the latest version, run the following command to update your CLI:
ibmcloud update
To determine your IBM Cloud CLI version, run the following command:
ibmcloud -v
If you are running the current release, the following output is displayed:
Checking for updates...
No update required. Your CLI is already up-to-date.
To get notified about new IBM Cloud CLI releases, subscribe to the IBM Cloud CLI releases repository.
Updating installed plug-ins
Use the plugin update
command to update the plug-ins that are installed in IBM Cloud CLI. The plugin update
command returns the following information for each plug-in that is installed:
- The current plug-in version
- The latest plug-in version that is available
ibmcloud plugin update
Logging in to the CLI
- Log in to your IBM Cloud account from the CLI.
ibmcloud login -a https://cloud.ibm.com --sso -r us-east
- If you plan to allow InstructLab to create IBM Cloud® Object Storage Instance resources for you, target a resource group.
Example:ibmcloud target -g <resource_group>
ibmcloud target -g Default