@thanhvo-cse/dev-env
v0.8.0
Published
Development environment management tool
Downloads
5
Readme
dev-env
dev-env tool
Installation
dev-env
$ npm i -g @thanhvo-cse/dev-env
Usage
$ npm install -g @thanhvo-cse/dev-env
$ dev-env COMMAND
running command...
$ dev-env (-v|--version|version)
@thanhvo-cse/dev-env/0.8.0 darwin-x64 node-v12.14.0
$ dev-env --help [COMMAND]
USAGE
$ dev-env COMMAND
...
Autocomplete
dev-env autocomplete [SHELL]
with [SHELL] support bash & zsh
Add the autocomplete env var to your zsh profile and source it
- zsh:
printf "$(dev-env autocomplete:script zsh)" >> ~/.zshrc; source ~/.zshrc
- bash:
printf "$(dev-env autocomplete:script bash)" >> ~/.bashrc; source ~/.bashrc
Test it out, e.g.
- zsh:
dev-env <TAB> # Command completion
dev-env command --<TAB> # Flag completion
- bash
dev-env <TAB><TAB> # Command completion
dev-env command --<TAB><TAB> # Flag completion
Commands
dev-env artisan
dev-env autocomplete [SHELL]
dev-env cleanup
dev-env composer
dev-env configure:docker-source [PATH]
dev-env configure:gdrive [KEY]
dev-env configure:workspace [PATH]
dev-env configure:xdebug-ide-key [KEY]
dev-env create PROJECT TEMPLATE
dev-env down PROJECT
dev-env export PROJECT
dev-env grunt
dev-env help [COMMAND]
dev-env import PROJECT
dev-env logs
dev-env ls
dev-env magento
dev-env magerun
dev-env mysql COMMAND [FILE]
dev-env npm
dev-env php
dev-env rebuild
dev-env remove PROJECT
dev-env restart
dev-env shell PROJECT
dev-env up PROJECT
dev-env yarn
dev-env artisan
Laravel Artisan
USAGE
$ dev-env artisan
OPTIONS
-d, --debug debug flag
-h, --help show CLI help
-l, --local locally
-s, --source with source
See code: src/commands/artisan.ts
dev-env autocomplete [SHELL]
display autocomplete installation instructions
USAGE
$ dev-env autocomplete [SHELL]
ARGUMENTS
SHELL shell type
OPTIONS
-r, --refresh-cache Refresh cache (ignores displaying instructions)
EXAMPLES
$ dev-env autocomplete
$ dev-env autocomplete bash
$ dev-env autocomplete zsh
$ dev-env autocomplete --refresh-cache
See code: @oclif/plugin-autocomplete
dev-env cleanup
Cleanup docker environment
USAGE
$ dev-env cleanup
OPTIONS
-h, --help show CLI help
See code: src/commands/cleanup.ts
dev-env composer
Composer
USAGE
$ dev-env composer
OPTIONS
-h, --help show CLI help
-l, --local locally
-s, --source with source
See code: src/commands/composer.ts
dev-env configure:docker-source [PATH]
Set or show docker source directory
USAGE
$ dev-env configure:docker-source [PATH]
ARGUMENTS
PATH Set the Docker source directory
OPTIONS
-h, --help show CLI help
See code: src/commands/configure/docker-source.ts
dev-env configure:gdrive [KEY]
Set or show gdrive folder key
USAGE
$ dev-env configure:gdrive [KEY]
ARGUMENTS
KEY Set the Gdrive folder key
OPTIONS
-h, --help show CLI help
See code: src/commands/configure/gdrive.ts
dev-env configure:workspace [PATH]
Set or show workspace path
USAGE
$ dev-env configure:workspace [PATH]
ARGUMENTS
PATH Set the workspace path
OPTIONS
-h, --help show CLI help
See code: src/commands/configure/workspace.ts
dev-env configure:xdebug-ide-key [KEY]
Set and show Xdebug IDE Key
USAGE
$ dev-env configure:xdebug-ide-key [KEY]
ARGUMENTS
KEY Set the Xdebug IDE Key
OPTIONS
-h, --help show CLI help
See code: src/commands/configure/xdebug-ide-key.ts
dev-env create PROJECT TEMPLATE
Create project
USAGE
$ dev-env create PROJECT TEMPLATE
ARGUMENTS
PROJECT project name
TEMPLATE project template
OPTIONS
-g, --git=git Git source path
-h, --help show CLI help
-l, --local locally
See code: src/commands/create.ts
dev-env down PROJECT
Down a project
USAGE
$ dev-env down PROJECT
ARGUMENTS
PROJECT project name
OPTIONS
-h, --help show CLI help
-l, --local locally
-s, --source with source
See code: src/commands/down.ts
dev-env export PROJECT
Export project
USAGE
$ dev-env export PROJECT
ARGUMENTS
PROJECT project name
OPTIONS
-d, --database database
-h, --help show CLI help
See code: src/commands/export.ts
dev-env grunt
Grunt
USAGE
$ dev-env grunt
OPTIONS
-h, --help show CLI help
-l, --local locally
-s, --source with source
See code: src/commands/grunt.ts
dev-env help [COMMAND]
display help for dev-env
USAGE
$ dev-env help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
dev-env import PROJECT
Import project
USAGE
$ dev-env import PROJECT
ARGUMENTS
PROJECT project name
OPTIONS
-h, --help show CLI help
See code: src/commands/import.ts
dev-env logs
Logs
USAGE
$ dev-env logs
OPTIONS
-h, --help show CLI help
-l, --local locally
-s, --source with source
See code: src/commands/logs.ts
dev-env ls
List imported projects
USAGE
$ dev-env ls
OPTIONS
-h, --help show CLI help
-l, --local locally
-s, --source with source
See code: src/commands/ls.ts
dev-env magento
Magento
USAGE
$ dev-env magento
OPTIONS
-d, --debug debug flag
-h, --help show CLI help
-l, --local locally
-s, --source with source
See code: src/commands/magento.ts
dev-env magerun
Magerun
USAGE
$ dev-env magerun
OPTIONS
-d, --debug debug flag
-h, --help show CLI help
-l, --local locally
-s, --source with source
See code: src/commands/magerun.ts
dev-env mysql COMMAND [FILE]
Mysql
USAGE
$ dev-env mysql COMMAND [FILE]
ARGUMENTS
COMMAND (backup|restore) mysql commands
FILE file path
OPTIONS
-h, --help show CLI help
-l, --local locally
-s, --source with source
See code: src/commands/mysql.ts
dev-env npm
Npm
USAGE
$ dev-env npm
OPTIONS
-h, --help show CLI help
-l, --local locally
-s, --source with source
See code: src/commands/npm.ts
dev-env php
Php
USAGE
$ dev-env php
OPTIONS
-d, --debug debug flag
-h, --help show CLI help
-l, --local locally
-s, --source with source
See code: src/commands/php.ts
dev-env rebuild
Rebuild a project
USAGE
$ dev-env rebuild
OPTIONS
-h, --help show CLI help
-l, --local locally
-s, --source with source
See code: src/commands/rebuild.ts
dev-env remove PROJECT
Remove project
USAGE
$ dev-env remove PROJECT
ARGUMENTS
PROJECT project name | all
OPTIONS
-h, --help show CLI help
-l, --local locally
See code: src/commands/remove.ts
dev-env restart
Refresh a project
USAGE
$ dev-env restart
OPTIONS
-h, --help show CLI help
-l, --local locally
-s, --source with source
See code: src/commands/restart.ts
dev-env shell PROJECT
Run shell scripts
USAGE
$ dev-env shell PROJECT
ARGUMENTS
PROJECT project name
OPTIONS
-h, --help show CLI help
See code: src/commands/shell.ts
dev-env up PROJECT
Up a project
USAGE
$ dev-env up PROJECT
ARGUMENTS
PROJECT project name
OPTIONS
-h, --help show CLI help
-l, --local locally
-o, --open Open project local domain on default local browser
-s, --source with source
See code: src/commands/up.ts
dev-env yarn
Yarn
USAGE
$ dev-env yarn
OPTIONS
-h, --help show CLI help
-l, --local locally
-s, --source with source
See code: src/commands/yarn.ts