forked from SecGen/SecGen
-
Notifications
You must be signed in to change notification settings - Fork 326
Command line arguments
Jjk422 edited this page Jul 28, 2016
·
10 revisions
SecGen contains many command line arguments to increase its functionality and to make it more accessible and user friendly.
ruby SecGen.rb [--options] <command>
OPTIONS:
--scenario [xml file], -s [xml file]: set the scenario to use
(defaults to the default scenario)
--project [output dir], -p [output dir]: directory for the generated project
(output will default to the default output directory set via --output-dir) <-- Create --output-dir argument
command
--help, -h: shows this usage information
COMMANDS:
run, r: builds project and then builds the VMs
build-project, p: builds project (vagrant and puppet config), but does not build VMs
build-vms [/project/dir], v [project #]: builds VMs from a previously generated project
(use in combination with --project [dir])
OPTIONS:
--output-dir [output dir]: directory to place all puppet and vagrant output files into
--validate-scenario [xml file]: validates the given xml file against the scenario schema, any errors are displayed so they can be corrected
--validate-module [module path]: spins up the given module on a test virtual machine to make sure it functions properly