@enjoys/context-engine 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/commands/adb.json +322 -0
- package/data/commands/alembic.json +301 -0
- package/data/commands/artisan.json +277 -0
- package/data/commands/atlas.json +426 -0
- package/data/commands/auth0.json +648 -0
- package/data/commands/bat.json +84 -0
- package/data/commands/btop.json +59 -0
- package/data/commands/bundle.json +321 -0
- package/data/commands/composer.json +507 -0
- package/data/commands/dart.json +216 -0
- package/data/commands/dbmate.json +257 -0
- package/data/commands/docker-compose.json +384 -0
- package/data/commands/drizzle-kit.json +217 -0
- package/data/commands/expo.json +65 -0
- package/data/commands/fastlane.json +243 -0
- package/data/commands/fd.json +86 -0
- package/data/commands/flutter.json +298 -0
- package/data/commands/flyway.json +261 -0
- package/data/commands/fzf.json +103 -0
- package/data/commands/gem.json +267 -0
- package/data/commands/htop.json +56 -0
- package/data/commands/jq.json +100 -0
- package/data/commands/k9s.json +62 -0
- package/data/commands/linux.json +3007 -0
- package/data/commands/liquibase.json +399 -0
- package/data/commands/manifest.json +619 -0
- package/data/commands/minikube.json +60 -0
- package/data/commands/ng.json +64 -0
- package/data/commands/nuxt.json +60 -0
- package/data/commands/nvim.json +91 -0
- package/data/commands/php.json +157 -0
- package/data/commands/pm2.json +259 -0
- package/data/commands/pod.json +175 -0
- package/data/commands/prisma.json +257 -0
- package/data/commands/rails.json +372 -0
- package/data/commands/rake.json +360 -0
- package/data/commands/react-native.json +57 -0
- package/data/commands/rg.json +103 -0
- package/data/commands/rspec.json +257 -0
- package/data/commands/ruby.json +108 -0
- package/data/commands/screen.json +101 -0
- package/data/commands/sequelize.json +342 -0
- package/data/commands/snyk.json +442 -0
- package/data/commands/sonar-scanner.json +219 -0
- package/data/commands/stripe.json +314 -0
- package/data/commands/symfony.json +449 -0
- package/data/commands/tmux.json +197 -0
- package/data/commands/top.json +61 -0
- package/data/commands/trivy.json +367 -0
- package/data/commands/twilio.json +382 -0
- package/data/commands/typeorm.json +262 -0
- package/data/commands/vim.json +85 -0
- package/data/commands/vue.json +60 -0
- package/data/commands/wp.json +857 -0
- package/data/commands/xcodebuild.json +141 -0
- package/data/commands/yq.json +57 -0
- package/data/completion/bash.json +1184 -0
- package/data/completion/c.json +1067 -0
- package/data/completion/cpp.json +824 -0
- package/data/completion/csharp.json +860 -0
- package/data/completion/dockerfile.json +536 -0
- package/data/completion/go.json +1346 -0
- package/data/completion/html.json +806 -0
- package/data/completion/java.json +1112 -0
- package/data/completion/javascript.json +914 -0
- package/data/completion/lua.json +968 -0
- package/data/completion/php.json +1535 -0
- package/data/completion/python.json +1427 -0
- package/data/completion/ruby.json +1531 -0
- package/data/completion/rust.json +698 -0
- package/data/completion/sql.json +887 -0
- package/data/completion/toml.json +428 -0
- package/data/completion/typescript.json +338 -0
- package/data/completion/yaml.json +563 -0
- package/data/defination/bash.json +565 -0
- package/data/defination/c.json +865 -0
- package/data/defination/cpp.json +348 -0
- package/data/defination/csharp.json +144 -0
- package/data/defination/dockerfile.json +113 -0
- package/data/defination/go.json +561 -0
- package/data/defination/html.json +559 -0
- package/data/defination/java.json +184 -0
- package/data/defination/javascript.json +265 -0
- package/data/defination/lua.json +181 -0
- package/data/defination/php.json +726 -0
- package/data/defination/python.json +717 -0
- package/data/defination/ruby.json +670 -0
- package/data/defination/rust.json +207 -0
- package/data/defination/sql.json +473 -0
- package/data/defination/toml.json +251 -0
- package/data/defination/typescript.json +29 -0
- package/data/defination/yaml.json +197 -0
- package/data/hover/bash.json +245 -0
- package/data/hover/c.json +265 -0
- package/data/hover/cpp.json +210 -0
- package/data/hover/csharp.json +290 -0
- package/data/hover/dockerfile.json +145 -0
- package/data/hover/go.json +580 -0
- package/data/hover/html.json +250 -0
- package/data/hover/java.json +395 -0
- package/data/hover/javascript.json +330 -0
- package/data/hover/lua.json +265 -0
- package/data/hover/php.json +300 -0
- package/data/hover/python.json +380 -0
- package/data/hover/ruby.json +265 -0
- package/data/hover/rust.json +275 -0
- package/data/hover/sql.json +230 -0
- package/data/hover/toml.json +145 -0
- package/data/hover/typescript.json +120 -0
- package/data/hover/yaml.json +165 -0
- package/data/manifest.json +242 -0
- package/package.json +1 -1
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ng",
|
|
3
|
+
"description": "Angular CLI",
|
|
4
|
+
"category": "Frontend Frameworks",
|
|
5
|
+
"platforms": [
|
|
6
|
+
"linux",
|
|
7
|
+
"macos",
|
|
8
|
+
"windows"
|
|
9
|
+
],
|
|
10
|
+
"shells": [
|
|
11
|
+
"bash",
|
|
12
|
+
"zsh",
|
|
13
|
+
"powershell"
|
|
14
|
+
],
|
|
15
|
+
"subcommands": [
|
|
16
|
+
{
|
|
17
|
+
"name": "serve",
|
|
18
|
+
"description": "Builds and serves your app"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "build",
|
|
22
|
+
"description": "Compiles an Angular app into an output directory."
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "generate",
|
|
26
|
+
"description": "Generates and/or modifies files based on a schematic."
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "test",
|
|
30
|
+
"description": "Runs unit tests in a project."
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"globalOptions": [],
|
|
34
|
+
"examples": [
|
|
35
|
+
{
|
|
36
|
+
"command": "ng serve",
|
|
37
|
+
"description": "Start development server"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"command": "ng generate component my-comp",
|
|
41
|
+
"description": "Generate a new component"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"command": "ng build --configuration production",
|
|
45
|
+
"description": "Build for production"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"relatedCommands": [
|
|
49
|
+
"npm",
|
|
50
|
+
"node",
|
|
51
|
+
"nx"
|
|
52
|
+
],
|
|
53
|
+
"contextEngine": {
|
|
54
|
+
"detectors": [
|
|
55
|
+
{
|
|
56
|
+
"name": "angular_json",
|
|
57
|
+
"description": "Angular Projects",
|
|
58
|
+
"command": "cat angular.json 2>/dev/null | jq '.projects | keys' -r 2>/dev/null",
|
|
59
|
+
"parser": "lines",
|
|
60
|
+
"cacheFor": 300
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "nuxt",
|
|
3
|
+
"description": "Nuxt CLI",
|
|
4
|
+
"category": "Frontend Frameworks",
|
|
5
|
+
"platforms": [
|
|
6
|
+
"linux",
|
|
7
|
+
"macos",
|
|
8
|
+
"windows"
|
|
9
|
+
],
|
|
10
|
+
"shells": [
|
|
11
|
+
"bash",
|
|
12
|
+
"zsh",
|
|
13
|
+
"powershell"
|
|
14
|
+
],
|
|
15
|
+
"subcommands": [
|
|
16
|
+
{
|
|
17
|
+
"name": "dev",
|
|
18
|
+
"description": "Start the development server"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "build",
|
|
22
|
+
"description": "Build the application for production"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "generate",
|
|
26
|
+
"description": "Build the application and generate static HTML files"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "start",
|
|
30
|
+
"description": "Start the production server"
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"globalOptions": [],
|
|
34
|
+
"examples": [
|
|
35
|
+
{
|
|
36
|
+
"command": "npx nuxi dev",
|
|
37
|
+
"description": "Start Nuxt dev server"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"command": "npx nuxi build",
|
|
41
|
+
"description": "Build Nuxt app"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"relatedCommands": [
|
|
45
|
+
"vue",
|
|
46
|
+
"npm",
|
|
47
|
+
"vite"
|
|
48
|
+
],
|
|
49
|
+
"contextEngine": {
|
|
50
|
+
"detectors": [
|
|
51
|
+
{
|
|
52
|
+
"name": "nuxt_config",
|
|
53
|
+
"description": "Nuxt Configuration",
|
|
54
|
+
"command": "cat nuxt.config.ts 2>/dev/null || cat nuxt.config.js 2>/dev/null | head -15",
|
|
55
|
+
"parser": "text",
|
|
56
|
+
"cacheFor": 300
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "nvim",
|
|
3
|
+
"description": "Neovim - hyperextensible Vim-based text editor with Lua scripting, built-in LSP, and modern terminal features",
|
|
4
|
+
"category": "Text Editors",
|
|
5
|
+
"platforms": ["linux", "macos", "windows"],
|
|
6
|
+
"shells": ["bash", "zsh", "fish", "powershell"],
|
|
7
|
+
"subcommands": [],
|
|
8
|
+
"globalOptions": [
|
|
9
|
+
{ "name": "--help", "shorthand": "-h", "description": "Show usage summary and exit" },
|
|
10
|
+
{ "name": "--version", "shorthand": "-v", "description": "Print version information and exit" },
|
|
11
|
+
{ "name": "-c", "description": "Execute an Ex command after loading the first file", "takesValue": true },
|
|
12
|
+
{ "name": "--cmd", "description": "Execute an Ex command before loading any config", "takesValue": true },
|
|
13
|
+
{ "name": "-S", "description": "Source (execute) a Vim/Lua script file after loading the first file", "takesValue": true },
|
|
14
|
+
{ "name": "-u", "description": "Use specified init file instead of default init.vim/init.lua (NONE to skip)", "takesValue": true },
|
|
15
|
+
{ "name": "-N", "description": "Start in nocompatible mode (always enabled in Neovim, accepted for compatibility)" },
|
|
16
|
+
{ "name": "-R", "description": "Read-only mode - set 'readonly' option" },
|
|
17
|
+
{ "name": "-b", "description": "Binary mode - set options for editing binary files" },
|
|
18
|
+
{ "name": "-d", "description": "Diff mode - open files and show differences" },
|
|
19
|
+
{ "name": "-o", "description": "Open N files in horizontally split windows", "takesValue": true },
|
|
20
|
+
{ "name": "-O", "description": "Open N files in vertically split windows", "takesValue": true },
|
|
21
|
+
{ "name": "-p", "description": "Open N files in separate tab pages", "takesValue": true },
|
|
22
|
+
{ "name": "-r", "description": "Recovery mode - recover a file from swap file", "takesValue": true },
|
|
23
|
+
{ "name": "-n", "description": "No swap file - do not create .swp files" },
|
|
24
|
+
{ "name": "-e", "description": "Start in Ex mode (line-oriented editing)" },
|
|
25
|
+
{ "name": "-s", "description": "Silent (batch) mode - read Normal mode commands from a file", "takesValue": true },
|
|
26
|
+
{ "name": "--noplugin", "description": "Skip loading all plugins" },
|
|
27
|
+
{ "name": "--clean", "description": "Start with default settings, no config, no plugins (mimics factory defaults)" },
|
|
28
|
+
{ "name": "-t", "description": "Jump to a tag", "takesValue": true },
|
|
29
|
+
{ "name": "+", "description": "Start at the end of the file" },
|
|
30
|
+
{ "name": "+N", "description": "Start at line number N", "takesValue": true },
|
|
31
|
+
{ "name": "+/pattern", "description": "Start at the first occurrence of search pattern", "takesValue": true },
|
|
32
|
+
{ "name": "--headless", "description": "Start without a UI (for scripting, LSP, automation)" },
|
|
33
|
+
{ "name": "--listen", "description": "Start an RPC server listening on the given address (pipe or TCP)", "takesValue": true },
|
|
34
|
+
{ "name": "--remote", "description": "Edit files in an already running Neovim instance via --listen address", "takesValue": true },
|
|
35
|
+
{ "name": "--embed", "description": "Use stdin/stdout as an msgpack-RPC channel (for GUI frontends)" },
|
|
36
|
+
{ "name": "--startuptime", "description": "Write startup timing messages to specified file", "takesValue": true },
|
|
37
|
+
{ "name": "--api-info", "description": "Print msgpack-encoded API metadata to stdout and exit" },
|
|
38
|
+
{ "name": "-l", "description": "Execute a Lua script (non-editor mode, Neovim acts as Lua interpreter)", "takesValue": true },
|
|
39
|
+
{ "name": "-ll", "description": "Execute a Lua module (like require('module'), non-editor mode)", "takesValue": true },
|
|
40
|
+
{ "name": "-i", "description": "Use specified ShaDa (shared data) file instead of default", "takesValue": true },
|
|
41
|
+
{ "name": "-V", "description": "Verbose mode - set verbosity level for debugging", "takesValue": true },
|
|
42
|
+
{ "name": "-w", "description": "Record all typed characters to a script file (append)", "takesValue": true },
|
|
43
|
+
{ "name": "-W", "description": "Record all typed characters to a script file (overwrite)", "takesValue": true },
|
|
44
|
+
{ "name": "--luamod-dev", "description": "Enable Lua module development mode (add cwd to package.path)" }
|
|
45
|
+
],
|
|
46
|
+
"examples": [
|
|
47
|
+
{ "command": "nvim file.txt", "description": "Open a file for editing" },
|
|
48
|
+
{ "command": "nvim --headless -c 'q'", "description": "Start headless and quit (verify startup works)" },
|
|
49
|
+
{ "command": "nvim -d file1 file2", "description": "Open two files in diff mode" },
|
|
50
|
+
{ "command": "nvim --listen /tmp/nvim.sock", "description": "Start Neovim as an RPC server on a Unix socket" },
|
|
51
|
+
{ "command": "nvim --startuptime startup.log file.txt", "description": "Profile startup time and save to log" },
|
|
52
|
+
{ "command": "nvim -l script.lua", "description": "Execute a Lua script using Neovim as interpreter" },
|
|
53
|
+
{ "command": "nvim -o file1 file2", "description": "Open files in horizontal splits" },
|
|
54
|
+
{ "command": "nvim -p *.py", "description": "Open all Python files in tabs" },
|
|
55
|
+
{ "command": "nvim +42 file.txt", "description": "Open file and jump to line 42" },
|
|
56
|
+
{ "command": "nvim --clean file.txt", "description": "Open file with no config or plugins" },
|
|
57
|
+
{ "command": "nvim -c 'set number' -c 'colorscheme desert' file.txt", "description": "Open file with line numbers and a colorscheme" },
|
|
58
|
+
{ "command": "nvim --headless -c 'TSInstall python' -c 'q'", "description": "Install a Treesitter parser headlessly" },
|
|
59
|
+
{ "command": "nvim --remote file.txt", "description": "Open file in an already running Neovim instance" },
|
|
60
|
+
{ "command": "nvim -ll luamodule", "description": "Execute a Lua module in non-editor mode" }
|
|
61
|
+
],
|
|
62
|
+
"relatedCommands": ["vim", "vi", "nano", "emacs"],
|
|
63
|
+
"contextEngine": {
|
|
64
|
+
"detectors": [
|
|
65
|
+
{
|
|
66
|
+
"name": "version",
|
|
67
|
+
"description": "Neovim version and build info",
|
|
68
|
+
"command": "nvim --version 2>/dev/null | head -3",
|
|
69
|
+
"parser": "lines",
|
|
70
|
+
"cacheFor": 600,
|
|
71
|
+
"requiresCmd": "nvim"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "config",
|
|
75
|
+
"description": "Detect Neovim config location",
|
|
76
|
+
"command": "ls ~/.config/nvim/init.lua 2>/dev/null || ls ~/.config/nvim/init.vim 2>/dev/null",
|
|
77
|
+
"parser": "lines",
|
|
78
|
+
"cacheFor": 300,
|
|
79
|
+
"requiresCmd": "nvim"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "plugins",
|
|
83
|
+
"description": "Detect plugin manager and installed plugins",
|
|
84
|
+
"command": "ls ~/.local/share/nvim/lazy/ 2>/dev/null | head -15 || ls ~/.local/share/nvim/site/pack/*/start/ 2>/dev/null | head -15",
|
|
85
|
+
"parser": "lines",
|
|
86
|
+
"cacheFor": 300,
|
|
87
|
+
"requiresCmd": "nvim"
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "php",
|
|
3
|
+
"description": "PHP command line interface",
|
|
4
|
+
"category": "language",
|
|
5
|
+
"platforms": [
|
|
6
|
+
"linux",
|
|
7
|
+
"macos",
|
|
8
|
+
"windows"
|
|
9
|
+
],
|
|
10
|
+
"shells": [
|
|
11
|
+
"bash",
|
|
12
|
+
"zsh",
|
|
13
|
+
"fish",
|
|
14
|
+
"powershell"
|
|
15
|
+
],
|
|
16
|
+
"subcommands": [],
|
|
17
|
+
"globalOptions": [
|
|
18
|
+
{
|
|
19
|
+
"name": "--interactive",
|
|
20
|
+
"short": "-a",
|
|
21
|
+
"description": "Run PHP interactively."
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "--bindpath",
|
|
25
|
+
"short": "-c",
|
|
26
|
+
"description": "Look for php.ini file in this directory",
|
|
27
|
+
"type": "path"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "--no-php-ini",
|
|
31
|
+
"short": "-n",
|
|
32
|
+
"description": "No php.ini file will be used"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "--define",
|
|
36
|
+
"short": "-d",
|
|
37
|
+
"description": "Define INI entry foo with value 'bar'",
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "--execute",
|
|
42
|
+
"short": "-e",
|
|
43
|
+
"description": "Generate extended information for debugger/profiler"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "--file",
|
|
47
|
+
"short": "-f",
|
|
48
|
+
"description": "Parse and execute <file>.",
|
|
49
|
+
"type": "path"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "--global",
|
|
53
|
+
"short": "-g",
|
|
54
|
+
"description": "Make variable global",
|
|
55
|
+
"type": "string"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "--info",
|
|
59
|
+
"short": "-i",
|
|
60
|
+
"description": "PHP information"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "--syntax-check",
|
|
64
|
+
"short": "-l",
|
|
65
|
+
"description": "Syntax check only (lint)"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "--modules",
|
|
69
|
+
"short": "-m",
|
|
70
|
+
"description": "Show compiled in modules"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "--run",
|
|
74
|
+
"short": "-r",
|
|
75
|
+
"description": "Run PHP <code> without using script tags <?..?>",
|
|
76
|
+
"type": "string"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "--server",
|
|
80
|
+
"short": "-S",
|
|
81
|
+
"description": "Run with built-in web server.",
|
|
82
|
+
"type": "string"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "--docroot",
|
|
86
|
+
"short": "-t",
|
|
87
|
+
"description": "Specify document root <docroot> for built-in web server.",
|
|
88
|
+
"type": "path"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "--version",
|
|
92
|
+
"short": "-v",
|
|
93
|
+
"description": "Version number"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "--ini",
|
|
97
|
+
"description": "Show configuration file names"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "--rf",
|
|
101
|
+
"description": "Show information about function <name>.",
|
|
102
|
+
"type": "string"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "--rc",
|
|
106
|
+
"description": "Show information about class <name>.",
|
|
107
|
+
"type": "string"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "--re",
|
|
111
|
+
"description": "Show information about extension <name>.",
|
|
112
|
+
"type": "string"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "--rz",
|
|
116
|
+
"description": "Show information about Zend extension <name>.",
|
|
117
|
+
"type": "string"
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"examples": [
|
|
121
|
+
"php -v",
|
|
122
|
+
"php -m",
|
|
123
|
+
"php -S localhost:8000 -t public/",
|
|
124
|
+
"php -l script.php",
|
|
125
|
+
"php -r 'echo \"Hello World\\n\";'",
|
|
126
|
+
"php --ini"
|
|
127
|
+
],
|
|
128
|
+
"relatedCommands": [
|
|
129
|
+
"composer",
|
|
130
|
+
"artisan"
|
|
131
|
+
],
|
|
132
|
+
"contextEngine": {
|
|
133
|
+
"detectors": [
|
|
134
|
+
{
|
|
135
|
+
"name": "version",
|
|
136
|
+
"description": "PHP Version",
|
|
137
|
+
"command": "php -v | head -n 1 2>/dev/null",
|
|
138
|
+
"parser": "text",
|
|
139
|
+
"cacheFor": 3600
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"name": "ini",
|
|
143
|
+
"description": "Loaded Configuration File",
|
|
144
|
+
"command": "php --ini | grep 'Loaded Configuration File' 2>/dev/null",
|
|
145
|
+
"parser": "text",
|
|
146
|
+
"cacheFor": 3600
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "scripts",
|
|
150
|
+
"description": "PHP Scripts in current directory",
|
|
151
|
+
"command": "ls *.php 2>/dev/null | head -10",
|
|
152
|
+
"parser": "lines",
|
|
153
|
+
"cacheFor": 30
|
|
154
|
+
}
|
|
155
|
+
]
|
|
156
|
+
}
|
|
157
|
+
}
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "pm2",
|
|
3
|
+
"description": "Advanced, production process manager for Node.js",
|
|
4
|
+
"category": "process-manager",
|
|
5
|
+
"platforms": [
|
|
6
|
+
"linux",
|
|
7
|
+
"macos",
|
|
8
|
+
"windows"
|
|
9
|
+
],
|
|
10
|
+
"shells": [
|
|
11
|
+
"bash",
|
|
12
|
+
"zsh",
|
|
13
|
+
"fish",
|
|
14
|
+
"powershell"
|
|
15
|
+
],
|
|
16
|
+
"subcommands": [
|
|
17
|
+
{
|
|
18
|
+
"name": "start",
|
|
19
|
+
"description": "Start and daemonize an app",
|
|
20
|
+
"args": [
|
|
21
|
+
{
|
|
22
|
+
"name": "[app_name|script|json_file]",
|
|
23
|
+
"type": "string",
|
|
24
|
+
"required": true,
|
|
25
|
+
"description": "App to start"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"options": [
|
|
29
|
+
{
|
|
30
|
+
"name": "--name",
|
|
31
|
+
"description": "App name",
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "--watch",
|
|
36
|
+
"description": "Watch folder for changes"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "--max-memory-restart",
|
|
40
|
+
"description": "Restart if it exceeds amount of memory",
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "--log",
|
|
45
|
+
"description": "Log file",
|
|
46
|
+
"type": "path"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "--arg",
|
|
50
|
+
"description": "Pass arguments to script",
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "--env",
|
|
55
|
+
"description": "Specify env to load",
|
|
56
|
+
"type": "string"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "--instances",
|
|
60
|
+
"short": "-i",
|
|
61
|
+
"description": "Number of instances (for cluster mode)",
|
|
62
|
+
"type": "string"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "--merge-logs",
|
|
66
|
+
"description": "Merge logs into single file"
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"examples": [
|
|
70
|
+
"pm2 start app.js",
|
|
71
|
+
"pm2 start npm --name myapp -- start",
|
|
72
|
+
"pm2 start ecosystem.config.js -i max",
|
|
73
|
+
"pm2 start app.js --watch --max-memory-restart 50M"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "stop",
|
|
78
|
+
"description": "Stop a process",
|
|
79
|
+
"args": [
|
|
80
|
+
{
|
|
81
|
+
"name": "<id|name|all>",
|
|
82
|
+
"type": "string",
|
|
83
|
+
"required": true,
|
|
84
|
+
"description": "App to stop"
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"options": [],
|
|
88
|
+
"examples": [
|
|
89
|
+
"pm2 stop all",
|
|
90
|
+
"pm2 stop api"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"name": "restart",
|
|
95
|
+
"description": "Restart a process",
|
|
96
|
+
"args": [
|
|
97
|
+
{
|
|
98
|
+
"name": "<id|name|all>",
|
|
99
|
+
"type": "string",
|
|
100
|
+
"required": true,
|
|
101
|
+
"description": "App to restart"
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"options": [
|
|
105
|
+
{
|
|
106
|
+
"name": "--update-env",
|
|
107
|
+
"description": "Update environment variables on restart"
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
"examples": [
|
|
111
|
+
"pm2 restart all",
|
|
112
|
+
"pm2 restart api --update-env"
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "reload",
|
|
117
|
+
"description": "Reload a process (0s downtime restart)",
|
|
118
|
+
"args": [
|
|
119
|
+
{
|
|
120
|
+
"name": "<id|name|all>",
|
|
121
|
+
"type": "string",
|
|
122
|
+
"required": true,
|
|
123
|
+
"description": "App to reload"
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"options": [],
|
|
127
|
+
"examples": [
|
|
128
|
+
"pm2 reload all"
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "delete",
|
|
133
|
+
"description": "Stop and delete a process from PM2 list",
|
|
134
|
+
"args": [
|
|
135
|
+
{
|
|
136
|
+
"name": "<id|name|all>",
|
|
137
|
+
"type": "string",
|
|
138
|
+
"required": true,
|
|
139
|
+
"description": "App to delete"
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
"options": [],
|
|
143
|
+
"examples": [
|
|
144
|
+
"pm2 delete api"
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"name": "list",
|
|
149
|
+
"description": "List all processes",
|
|
150
|
+
"args": [],
|
|
151
|
+
"options": [],
|
|
152
|
+
"examples": [
|
|
153
|
+
"pm2 list",
|
|
154
|
+
"pm2 ls"
|
|
155
|
+
]
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"name": "logs",
|
|
159
|
+
"description": "Stream logs from processes",
|
|
160
|
+
"args": [
|
|
161
|
+
{
|
|
162
|
+
"name": "[id|name|all]",
|
|
163
|
+
"type": "string",
|
|
164
|
+
"required": false,
|
|
165
|
+
"description": "App to show logs for"
|
|
166
|
+
}
|
|
167
|
+
],
|
|
168
|
+
"options": [
|
|
169
|
+
{
|
|
170
|
+
"name": "--lines",
|
|
171
|
+
"description": "Number of lines to output",
|
|
172
|
+
"type": "number"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"name": "--raw",
|
|
176
|
+
"description": "Raw output"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"name": "--err",
|
|
180
|
+
"description": "Only show error logs"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"name": "--out",
|
|
184
|
+
"description": "Only show standard logs"
|
|
185
|
+
}
|
|
186
|
+
],
|
|
187
|
+
"examples": [
|
|
188
|
+
"pm2 logs",
|
|
189
|
+
"pm2 logs api --lines 100",
|
|
190
|
+
"pm2 logs --err"
|
|
191
|
+
]
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"name": "monit",
|
|
195
|
+
"description": "Monitor all processes (terminal UI)",
|
|
196
|
+
"args": [],
|
|
197
|
+
"options": [],
|
|
198
|
+
"examples": [
|
|
199
|
+
"pm2 monit"
|
|
200
|
+
]
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"name": "save",
|
|
204
|
+
"description": "Save current process list (to resurrect on boot)",
|
|
205
|
+
"args": [],
|
|
206
|
+
"options": [],
|
|
207
|
+
"examples": [
|
|
208
|
+
"pm2 save"
|
|
209
|
+
]
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"name": "resurrect",
|
|
213
|
+
"description": "Restore previously saved processes",
|
|
214
|
+
"args": [],
|
|
215
|
+
"options": [],
|
|
216
|
+
"examples": [
|
|
217
|
+
"pm2 resurrect"
|
|
218
|
+
]
|
|
219
|
+
}
|
|
220
|
+
],
|
|
221
|
+
"globalOptions": [
|
|
222
|
+
{
|
|
223
|
+
"name": "--no-color",
|
|
224
|
+
"description": "Disable color output"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"name": "--version",
|
|
228
|
+
"short": "-v",
|
|
229
|
+
"description": "Print version"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"name": "--help",
|
|
233
|
+
"short": "-h",
|
|
234
|
+
"description": "Print help"
|
|
235
|
+
}
|
|
236
|
+
],
|
|
237
|
+
"examples": [
|
|
238
|
+
"pm2 start ecosystem.config.js",
|
|
239
|
+
"pm2 list",
|
|
240
|
+
"pm2 logs",
|
|
241
|
+
"pm2 save"
|
|
242
|
+
],
|
|
243
|
+
"relatedCommands": [
|
|
244
|
+
"node",
|
|
245
|
+
"npm"
|
|
246
|
+
],
|
|
247
|
+
"contextEngine": {
|
|
248
|
+
"detectors": [
|
|
249
|
+
{
|
|
250
|
+
"name": "processes",
|
|
251
|
+
"description": "PM2 Managed Processes",
|
|
252
|
+
"command": "pm2 jlist 2>/dev/null",
|
|
253
|
+
"parser": "json",
|
|
254
|
+
"cacheFor": 10,
|
|
255
|
+
"requiresCmd": "pm2"
|
|
256
|
+
}
|
|
257
|
+
]
|
|
258
|
+
}
|
|
259
|
+
}
|