You can run the setup command in non-interactive mode to automate the installation process using a script or to run the command directly from the command line. Non-interactive mode is useful when setting up production or QA servers with specific configuration requirements.

The non-interactive command-line mode requires that all mandatory options be present for each command call. If there are missing or incorrect arguments, the setup tool fails and aborts the process. You must also use a --no-prompt option to suppress interactive output, except for errors, when running in non-interactive mode. Additionally, you must also use the --acceptLicense option and specify the port using the --ldapPort or --ldapsPort option. If neither option is specified, an error message is displayed. To view the license, run bin/review-license command.

To automatically tune the JVM to use maximum memory, use the --aggressiveJVMTuning and --maxHeapSize {memory} options. To preload the database at startup, use the --primeDB option.

To configure a deployment using a truststore, see Installing the Directory Server in Non-Interactive Mode with a Truststore.

To see a description of the available command-line options for the setup tool, use setup --help.