Install the Trident protect CLI plugin
You can use the Trident protect command line plugin, which is an extension of the Trident tridentctl
utility, to create and interact with Trident protect custom resources (CRs).
Install the Trident protect CLI plugin
Before using the command line utility, you need to install it on the machine you use to access your cluster. Follow these steps, depending on if your machine uses an x64 or ARM CPU.
-
Download the Trident protect CLI plugin:
-
Enable execute permissions for the plugin binary:
-
Copy the plugin binary to a location that is defined in your PATH variable. For example,
/usr/bin
or/usr/local/bin
(you might need elevated privileges): -
Optionally, you can copy the plugin binary to a location in your home directory. In this case, it is recommended to ensure the location is part of your PATH variable:
|
Copying the plugin to a location in your PATH variable enables you to use the plugin by typing tridentctl-protect or tridentctl protect from any location.
|
View Trident CLI plugin help
You can use the built-in plugin help features to get detailed help on the capabilities of the plugin:
-
Use the help function to view usage guidance:
Enable command auto-completion
After you have installed the Trident protect CLI plugin, you can enable auto-completion for certain commands.
-
Download the completion script:
-
Make a new directory in your home directory to contain the script:
-
Move the downloaded script to the
~/.bash/completions
directory: -
Add the following line to the
~/.bashrc
file in your home directory:
Upon your next shell login, you can use command auto-completion with the tridentctl-protect plugin.