Envuso CLI, make a project, generate framework files etc
$ npm install -g @envuso/cli
$ envuso COMMAND
running command...
$ envuso (-v|--version|version)
@envuso/cli/0.1.5 darwin-arm64 node-v16.0.0
$ envuso --help [COMMAND]
USAGE
$ envuso COMMAND
...
envuso autocomplete [SHELL]
envuso commands
envuso generate-app-key
envuso help [COMMAND]
envuso make:controller NAME
envuso make:middleware NAME
envuso make:model NAME
envuso new
display autocomplete installation instructions
USAGE
$ envuso autocomplete [SHELL]
ARGUMENTS
SHELL shell type
OPTIONS
-r, --refresh-cache Refresh cache (ignores displaying instructions)
EXAMPLES
$ envuso autocomplete
$ envuso autocomplete bash
$ envuso autocomplete zsh
$ envuso autocomplete --refresh-cache
See code: @oclif/plugin-autocomplete
list all the commands
USAGE
$ envuso commands
OPTIONS
-h, --help show CLI help
-j, --json display unfiltered api data in json format
-x, --extended show extra columns
--columns=columns only show provided columns (comma-separated)
--csv output is csv format [alias: --output=csv]
--filter=filter filter property by partial string matching, ex: name=foo
--hidden show hidden commands
--no-header hide table header from output
--no-truncate do not truncate output to fit screen
--output=csv|json|yaml output in a more machine friendly format
--sort=sort property to sort by (prepend '-' for descending)
See code: @oclif/plugin-commands
Generate a new app encryption key
USAGE
$ envuso generate-app-key
OPTIONS
-h, --help show CLI help
EXAMPLE
$ envuso generate-app-key
See code: src/commands/generate-app-key.ts
display help for envuso
USAGE
$ envuso help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
Create a controller
USAGE
$ envuso make:controller NAME
ARGUMENTS
NAME Set a name for your controller(Does not need to contain "Controller" this will be automatically added.)
OPTIONS
-h, --help show CLI help
-m, --model=model Create a resource controller using your model
-r, --resource Create a resource controller(Controller using GET, PUT, POST, PATCH, DELETE)
EXAMPLES
$ envuso make:controller User
$ envuso make:controller User --resource
$ envuso make:controller User --resource --model=User
See code: src/commands/make/controller.ts
Create a middleware
USAGE
$ envuso make:middleware NAME
ARGUMENTS
NAME Set a name for your middleware(Does not need to contain "Middleware" this will be automatically added.)
OPTIONS
-h, --help show CLI help
EXAMPLE
$ envuso make:middleware User
See code: src/commands/make/middleware.ts
Create a middleware
USAGE
$ envuso make:model NAME
ARGUMENTS
NAME Set a name for your middleware(Does not need to contain "Model" this will be automatically added.)
OPTIONS
-h, --help show CLI help
EXAMPLE
$ envuso make:middleware User
See code: src/commands/make/model.ts
Create a new project
USAGE
$ envuso new
OPTIONS
-h, --help show CLI help
EXAMPLE
$ envuso new
See code: src/commands/new.ts