PATH. The path that you need to add is the path to the folder where you unzipped the ionosctl release.
ionosctllocally, you can use:
ionosctlto perform any operations, you will need to set your credentials for IONOS Cloud account. The authenticating mechanism is first checking the environment variables and if these are not set, it is checking if a configuration file exists and if the user has the right permissions for it.
--api-urlglobal flag or via the following environment variable:
--api-urlwill overwrite the default value of
https://api.ionos.comfor subsequent requests.
logincommand, you will no longer need to provide credentials unless you want to change them. By default, they will be stored in
ionosctlprovides completions for various shells, for both commands and flags. If you partially type a command or a flag and then press
TAB, the rest of the command will be automatically filled in.
ionosctl completion [shell], depending on the shell you are using.
ionosctluses the latest release of Cobra framework, which supports by default completion with descriptions for commands and flags. To disable it,
--no-descriptionsflag is available.
.bashrcfile and use:
TABkey in Bash is bound to
completereadline command. If you want to use
menu-completeappend the following line to
~/.zshrcfile, before you call the
~/.zshrcfile should contain the following two lines in the order given here:
Set-PSReadLineKeyHandler -Key Tab -Function <mode>
$PROFILEand verify it is created with
New-Item -Type File -Force $PROFILE.
. $PATH\ionosctl.ps1, where $PATH is absolute path to ionosctl.ps1 (for example . D:\ionoscloud\ionosctl.ps1)
Set-ExecutionPolicy RemoteSignedand restart the terminal.
Set-ExecutionPolicy Restrictedto disable running scripts.
-ooption. IonosCTL supports JSON format for all commands output by specifying
--output=json. By default, the output is set to human-readable format.
dev/null, except for error messages, you can use
--colsoption with the list of desired fields.
TABin autocompletion, on
--colsoption on a specific resource, the available columns for that resource will be displayed.
ionosctl [command] --help,
ionosctl [command] -hor
ionosctl help [command]or see the full reference documentation to see examples.