Skip to content

Instantly share code, notes, and snippets.

@Mparaiso
Created May 10, 2016 17:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mparaiso/85808dd092a623cae7f16251f4eaa2f6 to your computer and use it in GitHub Desktop.
Save Mparaiso/85808dd092a623cae7f16251f4eaa2f6 to your computer and use it in GitHub Desktop.
$ dnx gen controller --help
Finding the generator 'controller'...
Running the generator 'controller'...
Usage: controller [options]
Options:
--help|-h|-? Show help information
--useAsyncActions|-async Switch to indicate whether to generate async controller actions
--noViews|-nv Switch to indicate whether to generate CRUD views
--controllerName|-name Name of the controller
--restWithNoViews|-api Specify this switch to generate a Controller with REST style API, noViews is assumed and any view related options are ignored
--readWriteActions|-actions Specify this switch to generate Controller with read/write actions when a Model class is not used
--model|-m Model class to use
--dataContext|-dc DbContext class to use
--referenceScriptLibraries|-scripts Switch to specify whether to reference script libraries in the generated views
--layout|-l Custom Layout page to use
--useDefaultLayout|-udl Switch to specify that default layout should be used for the views
--force|-f Use this option to overwrite existing files
--relativeFolderPath|-outDir Specify the relative output folder path from project where the file needs to be generated, if not specified, file will be generated in the project folder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment