Command-Line Arguments

The Content Manager, the Template Engine and the Search Engine Server are normally started by means of a start-stop script. However, you can start the CMS applications from an operating system shell and enter command-line arguments to perform special functions. If you do not enter any command-line arguments, each application is started in the background as a server. Applications started this way can be stopped by means of a script.

Please note that a running Content Management Server must be shut down prior to starting it on the command line for the purpose of saving or restoring data, for example. Otherwise inconsistent data could be generated or CMS data could be destroyed.

-dump (CM)

Using this argument, data can be saved in such a way that it can be restored later using -restore.

-license (CM, TE, SES)

If a CMS application is started with this argument, it tests the license key. The key is displayed, and in test versions the date from which the key becomes invalid is also shown. The application then quits.

-migrate (CM, TE)

The existing database can be migrated to the current scheme using the -migrate argument. The existing database must be part of an CMS Fiona installation.

-railsify (CM)

The -railsify command creates and populates database tables for use with the Rails Connector as well as activating the content synchronization for these tables.

-removeInvalidXmlCharsFromTextBlobs (CM)

The -removeInvalidXmlCharsFromTextBlobs command removes invalid characters (such as non-UTF-8 characters or characters which are not valid XML) from all main contents (bodies) and custom fields.

-restore (CM)

Data exported using the -dump command-line argument can be imported using the -restore argument.

-single (CM, TE, SES)

Enter this argument to start the Content Manager or the Template Engine in the command-line mode and not as a server. A user who has started the Content Manager in command-line mode has global administration permissions there, i. e. he or she is the root user.

In command-line mode, you can enter Tcl commands. The CMS applications can therefore be started in shell scripts and controlled using Tcl commands. You can thereby give the Content Manager an export command. This is done by using a pipe symbol:

echo "obj withId 2001 exportSubtree filePrefix /tmp" | ./CM -single

-unrailsify (CM)

The -unrailsify command deletes Rails-Connector-relevant content from the database and deactivates the content synchronization.

-version (CM, TE, SES)

Using this argument, you can start the CMS applications to obtain the version numbers. After the version number has been output, the application quits.