Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: removing invalid sidebar

The SDG is a command-line application that must be run from either the Windows Command Prompt or Windows PowerShell.

Full Command Line Arguments

Below is a list of currently available command line arguments for the SDG. You can get a list of arguments available to the application by running with the /? switch.

Code Block
languagepowershell
titleRun in Powershell
EdFi.SDG.vXX.exe /?


ArgumentDescriptionRequiredDefault
-c / -configXmlPathProvides the path to the XML configuration file for this run.Yes(none)
-d / -dataFilePathProvides the path to the input CSV data files.No.\DataFiles\
-m / -outputModeOne of {"Standard", "Seed"}. See further documentation about Seed Data.NoStandard
-o / -outputPathPath where output files should be saved. Note: this folder must already exist.No.\ (i.e. Current Directory)
-s / -seedFilePathPath to an input or output seed file. Used for running in seed output mode. See further documentation about Seed Data.No(none)
-w / -allowOverwriteIf provided, files in the outputPath can be overwritten with newly generated data.Nofalse


For example, a typical run of the SDG looks like this:

Code Block
languagepowershell
EdFi.SDG.vXX.exe -c C:\Ed-Fi\Samples\vXX\SampleDataGenerator\SampleConfig.xml -d C:\Ed-Fi\Samples\vXX\SampleDataGenerator\DataFiles\ -o C:\Temp\SDG\Output\


Outputting seed data:

Code Block
languagepowershell
EdFi.SDG.vXX.exe -c C:\Ed-Fi\Samples\vXX\SampleDataGenerator\SampleConfig.xml -d C:\Ed-Fi\Samples\vXX\SampleDataGenerator\DataFiles\ -o C:\Temp\SDG\Output\ -m Seed -s C:\Temp\SDG\SeedRecords.txt


Using seed data as input:

Code Block
languagepowershell
EdFi.SDG.vXX.exe -c C:\Ed-Fi\Samples\vXX\SampleDataGenerator\SampleConfig.xml -d C:\Ed-Fi\Samples\vXX\SampleDataGenerator\DataFiles\ -o C:\Temp\SDG\Output\ -s C:\Temp\SDG\SeedRecords.txt


Allowing output files to be overwritten (use with caution!):

Code Block
EdFi.SDG.vXX.exe -c C:\Ed-Fi\Samples\vXX\SampleDataGenerator\SampleConfig.xml -d C:\Ed-Fi\Samples\vXX\SampleDataGenerator\DataFiles\ -o C:\Temp\SDG\Output\ -AllowOverwrite
Running EdFi.SampleDataGenerator.Console.exe

Please see instructions on Running the SDG.

Include PageSDG:_Sidebar - SDG User GuideSDG:_Sidebar - SDG User Guide