The dsconfig tool is the text-based management tool used to configure the underlying Directory Server configuration.
dsconfig tool has three operational modes: interactive mode,
non-interactive mode, and batch mode.
The dsconfig tool offers an offline mode using the --offline option, in which the server does not have to be running to interact with the configuration. In most cases, you should keep the server running when you access the configuration for the server to give the user feedback about the validity of the configuration.