Command-line mode on Linux

This topic describes the CLI-powered access to the functionality of dbForge Data Generator installed into a CrossOver bottle. For more information on the command-line functionality of dbForge Data Generator , refer to the corresponding topics of the documentation.

As an example, let’s see how to generate data with a project file.

Note

It’s required to save the project file before running the command below.

"/opt/cxoffice/bin/wine" --bottle "dbForge_Data_Generator" --check --wait-children --start "C:\Program Files\Devart\dbForge Data Generator for SQL Server\datagenerator.com" /generatedata /projectfile:"C:\users\crossover\My Documents\project-file.dgen" /connection:"Data Source=[host];Integrated Security=False;User ID=[yourusername]"

Where:

  • “/opt/cxoffice/bin/wine” is the command that initiates CrossOver.
  • –bottle “dbForge_Data_Generator” is the parameter that specifies the name of the bottle that contains dbForge Data Generator.
  • –check –wait-children –start are options that configure the launch of the application.
  • “C:\Program Files\Devart\dbForge Data Generator for SQL Server\datagenerator.com” /generatedata /projectfile:”C:\users\crossover\My Documents\project-file.dgen” /connection:”Data Source=[host];Integrated Security=False;User ID=[yourusername]” is the command to generate data.

Worked example

Let us look at a worked example command to generate data with the ready project file.

"/opt/cxoffice/bin/wine" --bottle "dbForge_Data_Generator" --check --wait-children --start ""C:\Program Files\Devart\dbForge Data Generator for SQL Server\datagenerator.com" /generatedata /projectfile:"C:\users\crossover\My Documents\new-data.dgen" /connection:"Data Source=demo-mssql\SQLEXPRESS;Integrated Security=False;User ID=yourusername"

And you’ll see that the process has started.

Data Generator