Config
4 minute read.
Last Modified 2023-11-30 10:15 ESTThe SCALE CLI guide is a work in progress! New namespace and command documentation is continually added and maintained, so check back here often to see what is new!
Welcome to the TrueNAS SCALE Command Line Interface (CLI) guide!
The TrueNAS CLI in TrueNAS SCALE functions like a text-based version of the web UI with many functional areas grouped into parent and child namespaces that mirror the counterparts in the SCALE UI.
The underlying structure of the CLI namespaces and commands closely follows that of the SCALE API. For more information on API commands, arguments, options, and definitions go to API Keys and click on API Docs in the SCALE UI.
The config namespace has three commands and is based on configuration management functions found in the SCALE API and web UI. It provides access to configuration management methods through the config namespace commands.
The following config namespace commands allow you to save or upload system configuration files and to reset configuration to default. You can enter commands from the main CLI prompt or from the system namespace prompt.
The reset
command reverts the system database to default configuration values.
Download the current system configuration with save
before resetting the configuration to default settings!
If you do not save the system configuration before resetting it, you could lose data that was not backed up, and you cannot revert to the previous configuration.
Thereset
command can result in unexpected behavior if entered via Shell in the web UI, especially ifreboot
is set to false. To avoid instability, only usereset
via a direct connection to the console or SSH.
TrueNAS Enterprise
The save
command creates a tar file of security-sensitive configuration information and saves it to the specified location.
The configuration file contains sensitive data like system passwords. Keep the configuration file safe and protect it from unauthorized access!
The TrueNAS CLI guide for SCALE is a work in progress! This command has not been fully tested and validated. Full documentation is still being developed. Check back for updated information.
Do not use. Use the web UI to upload configuration files.