@enjoys/context-engine 1.0.0

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.
Files changed (138) hide show
  1. package/README.md +213 -0
  2. package/data/commands/air.json +59 -0
  3. package/data/commands/ansible.json +24 -0
  4. package/data/commands/apachectl.json +87 -0
  5. package/data/commands/apt-get.json +81 -0
  6. package/data/commands/apt.json +91 -0
  7. package/data/commands/awk.json +26 -0
  8. package/data/commands/aws-vault.json +140 -0
  9. package/data/commands/aws.json +229 -0
  10. package/data/commands/az.json +36 -0
  11. package/data/commands/bazel.json +103 -0
  12. package/data/commands/brew.json +140 -0
  13. package/data/commands/bun.json +230 -0
  14. package/data/commands/caddy.json +194 -0
  15. package/data/commands/cargo.json +1048 -0
  16. package/data/commands/cat.json +18 -0
  17. package/data/commands/cd.json +48 -0
  18. package/data/commands/certbot.json +148 -0
  19. package/data/commands/chmod.json +97 -0
  20. package/data/commands/choco.json +134 -0
  21. package/data/commands/chown.json +59 -0
  22. package/data/commands/clickhouse-client.json +74 -0
  23. package/data/commands/cloudflare.json +226 -0
  24. package/data/commands/cmake.json +110 -0
  25. package/data/commands/cockroach.json +92 -0
  26. package/data/commands/conda.json +94 -0
  27. package/data/commands/consul.json +125 -0
  28. package/data/commands/cp.json +86 -0
  29. package/data/commands/curl.json +44 -0
  30. package/data/commands/cypress.json +100 -0
  31. package/data/commands/deno.json +29 -0
  32. package/data/commands/django-admin.json +86 -0
  33. package/data/commands/dnf.json +137 -0
  34. package/data/commands/docker.json +1100 -0
  35. package/data/commands/doctl.json +156 -0
  36. package/data/commands/eslint.json +69 -0
  37. package/data/commands/find.json +44 -0
  38. package/data/commands/firebase.json +97 -0
  39. package/data/commands/flask.json +79 -0
  40. package/data/commands/flyctl.json +148 -0
  41. package/data/commands/gcloud.json +227 -0
  42. package/data/commands/gh.json +39 -0
  43. package/data/commands/git.json +527 -0
  44. package/data/commands/glab.json +116 -0
  45. package/data/commands/go.json +161 -0
  46. package/data/commands/gofmt.json +51 -0
  47. package/data/commands/golangci-lint.json +89 -0
  48. package/data/commands/gradle.json +44 -0
  49. package/data/commands/grep.json +47 -0
  50. package/data/commands/gunicorn.json +83 -0
  51. package/data/commands/helm.json +1104 -0
  52. package/data/commands/hg.json +92 -0
  53. package/data/commands/httpd.json +147 -0
  54. package/data/commands/influx.json +119 -0
  55. package/data/commands/iptables.json +86 -0
  56. package/data/commands/java.json +31 -0
  57. package/data/commands/jest.json +82 -0
  58. package/data/commands/journalctl.json +88 -0
  59. package/data/commands/just.json +93 -0
  60. package/data/commands/k6.json +84 -0
  61. package/data/commands/kubectl.json +1277 -0
  62. package/data/commands/linode-cli.json +117 -0
  63. package/data/commands/locust.json +83 -0
  64. package/data/commands/ls.json +115 -0
  65. package/data/commands/make.json +86 -0
  66. package/data/commands/mocha.json +75 -0
  67. package/data/commands/mongosh.json +73 -0
  68. package/data/commands/mv.json +68 -0
  69. package/data/commands/mvn.json +45 -0
  70. package/data/commands/mysql.json +81 -0
  71. package/data/commands/nest.json +69 -0
  72. package/data/commands/netlify.json +92 -0
  73. package/data/commands/next.json +71 -0
  74. package/data/commands/nft.json +105 -0
  75. package/data/commands/nginx.json +146 -0
  76. package/data/commands/nmap.json +92 -0
  77. package/data/commands/node.json +43 -0
  78. package/data/commands/nomad.json +139 -0
  79. package/data/commands/npm.json +1265 -0
  80. package/data/commands/npx.json +58 -0
  81. package/data/commands/nx.json +82 -0
  82. package/data/commands/openssl.json +288 -0
  83. package/data/commands/packer.json +92 -0
  84. package/data/commands/pacman.json +82 -0
  85. package/data/commands/pg_dump.json +83 -0
  86. package/data/commands/pg_restore.json +74 -0
  87. package/data/commands/pip.json +95 -0
  88. package/data/commands/pipenv.json +79 -0
  89. package/data/commands/pipx.json +53 -0
  90. package/data/commands/playwright.json +97 -0
  91. package/data/commands/pnpm.json +29 -0
  92. package/data/commands/poetry.json +96 -0
  93. package/data/commands/prettier.json +71 -0
  94. package/data/commands/ps.json +31 -0
  95. package/data/commands/psql.json +124 -0
  96. package/data/commands/pulumi.json +130 -0
  97. package/data/commands/pytest.json +92 -0
  98. package/data/commands/python.json +30 -0
  99. package/data/commands/railway.json +91 -0
  100. package/data/commands/redis-cli.json +148 -0
  101. package/data/commands/render.json +72 -0
  102. package/data/commands/rm.json +79 -0
  103. package/data/commands/rsync.json +36 -0
  104. package/data/commands/rust.json +35 -0
  105. package/data/commands/rustup.json +103 -0
  106. package/data/commands/scp.json +60 -0
  107. package/data/commands/sed.json +28 -0
  108. package/data/commands/sqlite3.json +68 -0
  109. package/data/commands/ssh-keygen.json +112 -0
  110. package/data/commands/ssh.json +37 -0
  111. package/data/commands/sudo.json +147 -0
  112. package/data/commands/supabase.json +108 -0
  113. package/data/commands/svn.json +75 -0
  114. package/data/commands/systemctl.json +31 -0
  115. package/data/commands/tar.json +35 -0
  116. package/data/commands/tcpdump.json +77 -0
  117. package/data/commands/terraform.json +824 -0
  118. package/data/commands/terragrunt.json +83 -0
  119. package/data/commands/tsc.json +85 -0
  120. package/data/commands/turbo.json +72 -0
  121. package/data/commands/ufw.json +76 -0
  122. package/data/commands/unzip.json +59 -0
  123. package/data/commands/uvicorn.json +73 -0
  124. package/data/commands/vault.json +144 -0
  125. package/data/commands/vercel.json +98 -0
  126. package/data/commands/vite.json +63 -0
  127. package/data/commands/vitest.json +88 -0
  128. package/data/commands/wasm-pack.json +90 -0
  129. package/data/commands/wget.json +38 -0
  130. package/data/commands/winget.json +131 -0
  131. package/data/commands/wireshark.json +81 -0
  132. package/data/commands/yarn.json +28 -0
  133. package/data/commands/yum.json +98 -0
  134. package/data/commands/zip.json +59 -0
  135. package/index.d.ts +131 -0
  136. package/index.js +189 -0
  137. package/index.mjs +21 -0
  138. package/package.json +64 -0
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "mvn",
3
+ "description": "Apache Maven build automation and project management tool for Java",
4
+ "category": "build-tool",
5
+ "platforms": ["linux", "macos", "windows"],
6
+ "shells": ["bash", "zsh", "fish", "powershell"],
7
+ "subcommands": [
8
+ { "name": "clean", "description": "Clean build output", "examples": ["mvn clean"] },
9
+ { "name": "compile", "description": "Compile source code", "examples": ["mvn compile"] },
10
+ { "name": "test", "description": "Run tests", "examples": ["mvn test"] },
11
+ { "name": "package", "description": "Package compiled code (JAR/WAR)", "examples": ["mvn package"] },
12
+ { "name": "install", "description": "Install to local repository", "examples": ["mvn install"] },
13
+ { "name": "deploy", "description": "Deploy to remote repository", "examples": ["mvn deploy"] },
14
+ { "name": "verify", "description": "Run integration tests", "examples": ["mvn verify"] },
15
+ { "name": "site", "description": "Generate project site documentation", "examples": ["mvn site"] },
16
+ { "name": "dependency:tree", "description": "Show dependency tree", "examples": ["mvn dependency:tree"] },
17
+ { "name": "dependency:resolve", "description": "Resolve dependencies", "examples": ["mvn dependency:resolve"] },
18
+ { "name": "versions:display-dependency-updates", "description": "Show available dependency updates", "examples": ["mvn versions:display-dependency-updates"] },
19
+ { "name": "archetype:generate", "description": "Generate project from archetype", "examples": ["mvn archetype:generate -DgroupId=com.example -DartifactId=myapp -DarchetypeArtifactId=maven-archetype-quickstart"] },
20
+ { "name": "spring-boot:run", "description": "Run Spring Boot application", "examples": ["mvn spring-boot:run"] }
21
+ ],
22
+ "globalOptions": [
23
+ { "name": "--help", "short": "-h", "description": "Show help" },
24
+ { "name": "--version", "short": "-v", "description": "Show version" },
25
+ { "name": "-DskipTests", "description": "Skip running tests" },
26
+ { "name": "-Dmaven.test.skip", "description": "Skip compiling and running tests" },
27
+ { "name": "-P", "description": "Activate profile", "type": "string" },
28
+ { "name": "-pl", "description": "Build specific modules", "type": "string" },
29
+ { "name": "-am", "description": "Also build dependencies" },
30
+ { "name": "-U", "description": "Force update of snapshots" },
31
+ { "name": "-o", "description": "Offline mode" },
32
+ { "name": "-X", "description": "Debug output" },
33
+ { "name": "-f", "description": "Use alternate POM file", "type": "file" },
34
+ { "name": "-T", "description": "Thread count for parallel build", "type": "string" }
35
+ ],
36
+ "examples": [
37
+ "mvn clean install",
38
+ "mvn clean package -DskipTests",
39
+ "mvn test -pl module-name",
40
+ "mvn clean install -P production",
41
+ "mvn dependency:tree",
42
+ "mvn clean package -T 4"
43
+ ],
44
+ "relatedCommands": ["gradle", "java", "javac", "ant"]
45
+ }
@@ -0,0 +1,81 @@
1
+ {
2
+ "name": "mysql",
3
+ "description": "MySQL/MariaDB command-line client",
4
+ "category": "Database",
5
+ "platforms": ["linux", "macos", "windows"],
6
+ "shells": ["bash", "zsh", "powershell", "fish"],
7
+ "subcommands": [],
8
+ "globalOptions": [
9
+ { "name": "--host", "shorthand": "-h", "description": "Server hostname", "takesValue": true },
10
+ { "name": "--port", "shorthand": "-P", "description": "Server port", "takesValue": true },
11
+ { "name": "--user", "shorthand": "-u", "description": "Username", "takesValue": true },
12
+ { "name": "--password", "shorthand": "-p", "description": "Password (prompted if omitted)", "takesValue": true },
13
+ { "name": "--database", "shorthand": "-D", "description": "Database to use", "takesValue": true },
14
+ { "name": "--execute", "shorthand": "-e", "description": "Execute SQL and exit", "takesValue": true },
15
+ { "name": "--batch", "shorthand": "-B", "description": "Batch mode (tab-separated output)" },
16
+ { "name": "--table", "shorthand": "-t", "description": "Table output format" },
17
+ { "name": "--html", "shorthand": "-H", "description": "HTML output format" },
18
+ { "name": "--xml", "shorthand": "-X", "description": "XML output format" },
19
+ { "name": "--vertical", "shorthand": "-E", "description": "Vertical output" },
20
+ { "name": "--raw", "shorthand": "-r", "description": "Disable character escaping" },
21
+ { "name": "--silent", "shorthand": "-s", "description": "Silent mode" },
22
+ { "name": "--verbose", "shorthand": "-v", "description": "Verbose mode" },
23
+ { "name": "--socket", "shorthand": "-S", "description": "Socket file path", "takesValue": true },
24
+ { "name": "--ssl-mode", "description": "SSL mode (DISABLED, PREFERRED, REQUIRED, VERIFY_CA, VERIFY_IDENTITY)", "takesValue": true },
25
+ { "name": "--default-character-set", "description": "Character set", "takesValue": true },
26
+ { "name": "--auto-rehash", "description": "Enable auto-completion" },
27
+ { "name": "--no-auto-rehash", "shorthand": "-A", "description": "Disable auto-completion (faster startup)" },
28
+ { "name": "--quick", "shorthand": "-q", "description": "Don't cache results" },
29
+ { "name": "--safe-updates", "shorthand": "-U", "description": "Prevent UPDATE/DELETE without WHERE" },
30
+ { "name": "--compress", "shorthand": "-C", "description": "Compress client-server protocol" },
31
+ { "name": "--force", "shorthand": "-f", "description": "Continue on errors" },
32
+ { "name": "--line-numbers", "description": "Show line numbers on errors" },
33
+ { "name": "--tee", "description": "Log output to file", "takesValue": true },
34
+ { "name": "--pager", "description": "Set pager command", "takesValue": true }
35
+ ],
36
+ "examples": [
37
+ { "command": "mysql -u root -p", "description": "Connect as root" },
38
+ { "command": "mysql -h localhost -u admin -p mydb", "description": "Connect to specific database" },
39
+ { "command": "mysql -e 'SHOW DATABASES'", "description": "Execute query" },
40
+ { "command": "mysql mydb < backup.sql", "description": "Import SQL file" },
41
+ { "command": "mysql -B -e 'SELECT * FROM users' mydb", "description": "Batch mode query" },
42
+ { "command": "mysql --safe-updates -u root -p mydb", "description": "Safe mode connection" },
43
+ { "command": "mysql -h db.example.com -P 3306 -u admin -p --ssl-mode REQUIRED", "description": "SSL connection" }
44
+ ],
45
+ "relatedCommands": ["psql", "mongosh", "sqlite3"],
46
+ "contextEngine": {
47
+ "detectors": [
48
+ {
49
+ "name": "databases",
50
+ "description": "Available databases",
51
+ "command": "mysql -e 'SHOW DATABASES' -B --skip-column-names 2>/dev/null",
52
+ "parser": "lines",
53
+ "cacheFor": 30,
54
+ "requiresCmd": "mysql"
55
+ },
56
+ {
57
+ "name": "tables",
58
+ "description": "Tables in current database",
59
+ "command": "mysql -e 'SHOW TABLES' -B --skip-column-names 2>/dev/null",
60
+ "parser": "lines",
61
+ "cacheFor": 30,
62
+ "requiresCmd": "mysql"
63
+ },
64
+ {
65
+ "name": "status",
66
+ "description": "MySQL server status",
67
+ "command": "mysqladmin status 2>/dev/null",
68
+ "parser": "text",
69
+ "cacheFor": 15,
70
+ "requiresCmd": "mysqladmin"
71
+ },
72
+ {
73
+ "name": "my_cnf",
74
+ "description": "MySQL config",
75
+ "command": "cat ~/.my.cnf 2>/dev/null | grep -v password | head -10",
76
+ "parser": "text",
77
+ "cacheFor": 120
78
+ }
79
+ ]
80
+ }
81
+ }
@@ -0,0 +1,69 @@
1
+ {
2
+ "name": "nest",
3
+ "description": "NestJS CLI for generating and managing NestJS applications",
4
+ "category": "Node Ecosystem",
5
+ "platforms": ["linux", "macos", "windows"],
6
+ "shells": ["bash", "zsh", "powershell", "fish"],
7
+ "subcommands": [
8
+ { "name": "new", "description": "Create a new NestJS project", "args": [{ "name": "name", "description": "Project name", "required": true }], "options": [{ "name": "--directory", "shorthand": "-d", "description": "Directory name", "takesValue": true }, { "name": "--package-manager", "shorthand": "-p", "description": "Package manager (npm, yarn, pnpm)", "takesValue": true }, { "name": "--language", "shorthand": "-l", "description": "Language (TS, JS)", "takesValue": true }, { "name": "--strict", "description": "Enable strict mode" }, { "name": "--skip-git", "shorthand": "-g", "description": "Skip git init" }, { "name": "--skip-install", "shorthand": "-s", "description": "Skip npm install" }] },
9
+ { "name": "generate", "description": "Generate NestJS elements", "args": [{ "name": "schematic", "description": "Schematic type (controller, service, module, etc.)", "required": true }, { "name": "name", "description": "Element name", "required": true }], "options": [{ "name": "--flat", "description": "No subfolder" }, { "name": "--no-spec", "description": "Skip test file" }, { "name": "--dry-run", "shorthand": "-d", "description": "Preview changes" }, { "name": "--project", "shorthand": "-p", "description": "Project name", "takesValue": true }] },
10
+ { "name": "build", "description": "Build the application", "options": [{ "name": "--watch", "shorthand": "-w", "description": "Watch mode" }, { "name": "--webpack", "description": "Use webpack" }, { "name": "--tsc", "description": "Use tsc" }, { "name": "--path", "shorthand": "-p", "description": "tsconfig path", "takesValue": true }] },
11
+ { "name": "start", "description": "Start the application", "options": [{ "name": "--watch", "shorthand": "-w", "description": "Watch mode" }, { "name": "--debug", "shorthand": "-d", "description": "Debug mode", "takesValue": true }, { "name": "--exec", "shorthand": "-e", "description": "Executable", "takesValue": true }, { "name": "--preserveWatchOutput", "description": "Don't clear screen" }] },
12
+ { "name": "info", "description": "Show Nest project information" },
13
+ { "name": "add", "description": "Add a library to the project", "args": [{ "name": "library", "description": "Library to add", "required": true }] },
14
+ { "name": "update", "description": "Update NestJS dependencies", "options": [{ "name": "--force", "shorthand": "-f", "description": "Force update" }, { "name": "--tag", "shorthand": "-t", "description": "Version tag", "takesValue": true }] }
15
+ ],
16
+ "globalOptions": [
17
+ { "name": "--help", "shorthand": "-h", "description": "Show help" },
18
+ { "name": "--version", "shorthand": "-v", "description": "Show version" }
19
+ ],
20
+ "examples": [
21
+ { "command": "nest new my-api", "description": "Create a new NestJS project" },
22
+ { "command": "nest generate controller users", "description": "Generate a users controller" },
23
+ { "command": "nest generate service auth --no-spec", "description": "Generate auth service without test" },
24
+ { "command": "nest generate module products", "description": "Generate products module" },
25
+ { "command": "nest generate resource orders", "description": "Generate full CRUD resource" },
26
+ { "command": "nest start --watch", "description": "Start in watch mode" },
27
+ { "command": "nest build", "description": "Build the project" }
28
+ ],
29
+ "relatedCommands": ["npm", "node", "tsc"],
30
+ "contextEngine": {
31
+ "detectors": [
32
+ {
33
+ "name": "nest_config",
34
+ "description": "NestJS CLI configuration",
35
+ "command": "cat nest-cli.json 2>/dev/null",
36
+ "parser": "json",
37
+ "cacheFor": 60
38
+ },
39
+ {
40
+ "name": "modules",
41
+ "description": "NestJS modules",
42
+ "command": "find src -name '*.module.ts' 2>/dev/null",
43
+ "parser": "lines",
44
+ "cacheFor": 30
45
+ },
46
+ {
47
+ "name": "controllers",
48
+ "description": "NestJS controllers",
49
+ "command": "find src -name '*.controller.ts' 2>/dev/null",
50
+ "parser": "lines",
51
+ "cacheFor": 30
52
+ },
53
+ {
54
+ "name": "services",
55
+ "description": "NestJS services",
56
+ "command": "find src -name '*.service.ts' 2>/dev/null",
57
+ "parser": "lines",
58
+ "cacheFor": 30
59
+ },
60
+ {
61
+ "name": "dependencies",
62
+ "description": "NestJS dependencies",
63
+ "command": "node -e \"const p=require('./package.json');Object.keys({...p.dependencies,...p.devDependencies}).filter(d=>d.startsWith('@nestjs')).forEach(d=>console.log(d))\" 2>/dev/null",
64
+ "parser": "lines",
65
+ "cacheFor": 120
66
+ }
67
+ ]
68
+ }
69
+ }
@@ -0,0 +1,92 @@
1
+ {
2
+ "name": "netlify",
3
+ "description": "Netlify CLI for deploying and managing Netlify sites",
4
+ "category": "Cloud CLIs",
5
+ "platforms": ["linux", "macos", "windows"],
6
+ "shells": ["bash", "zsh", "powershell", "fish"],
7
+ "subcommands": [
8
+ { "name": "deploy", "description": "Deploy site to Netlify", "options": [{ "name": "--prod", "shorthand": "-p", "description": "Deploy to production" }, { "name": "--dir", "shorthand": "-d", "description": "Directory to deploy", "takesValue": true }, { "name": "--functions", "shorthand": "-f", "description": "Functions directory", "takesValue": true }, { "name": "--message", "shorthand": "-m", "description": "Deploy message", "takesValue": true }, { "name": "--open", "shorthand": "-o", "description": "Open site after deploy" }, { "name": "--json", "description": "Output as JSON" }] },
9
+ { "name": "dev", "description": "Start local development server", "options": [{ "name": "--port", "shorthand": "-p", "description": "Port number", "takesValue": true }, { "name": "--command", "shorthand": "-c", "description": "Dev server command", "takesValue": true }, { "name": "--targetPort", "description": "Target port for proxy", "takesValue": true }, { "name": "--live", "description": "Start a live session" }] },
10
+ { "name": "build", "description": "Build the site locally" },
11
+ { "name": "init", "description": "Configure continuous deployment for a site" },
12
+ { "name": "link", "description": "Link local directory to a Netlify site", "options": [{ "name": "--name", "description": "Site name", "takesValue": true }, { "name": "--id", "description": "Site ID", "takesValue": true }] },
13
+ { "name": "unlink", "description": "Unlink local directory from Netlify site" },
14
+ { "name": "status", "description": "Show current site status", "options": [{ "name": "--verbose", "description": "Verbose output" }] },
15
+ { "name": "open", "description": "Open site in browser", "subcommands": [
16
+ { "name": "site", "description": "Open the site" },
17
+ { "name": "admin", "description": "Open admin panel" }
18
+ ]},
19
+ { "name": "sites", "description": "Manage sites", "subcommands": [
20
+ { "name": "list", "description": "List sites", "options": [{ "name": "--json", "description": "Output as JSON" }] },
21
+ { "name": "create", "description": "Create a new site", "options": [{ "name": "--name", "shorthand": "-n", "description": "Site name", "takesValue": true }] },
22
+ { "name": "delete", "description": "Delete a site", "args": [{ "name": "siteId", "description": "Site ID", "required": true }] }
23
+ ]},
24
+ { "name": "env", "description": "Manage environment variables", "subcommands": [
25
+ { "name": "set", "description": "Set an env variable", "args": [{ "name": "key", "description": "Variable name", "required": true }, { "name": "value", "description": "Variable value", "required": false }] },
26
+ { "name": "get", "description": "Get an env variable", "args": [{ "name": "key", "description": "Variable name", "required": true }] },
27
+ { "name": "unset", "description": "Remove an env variable", "args": [{ "name": "key", "description": "Variable name", "required": true }] },
28
+ { "name": "list", "description": "List env variables" },
29
+ { "name": "import", "description": "Import env variables from file", "args": [{ "name": "file", "description": "File path", "required": true }] }
30
+ ]},
31
+ { "name": "functions", "description": "Manage serverless functions", "subcommands": [
32
+ { "name": "list", "description": "List functions" },
33
+ { "name": "create", "description": "Create a function", "options": [{ "name": "--name", "shorthand": "-n", "description": "Function name", "takesValue": true }] },
34
+ { "name": "invoke", "description": "Invoke a function locally", "args": [{ "name": "name", "description": "Function name", "required": true }] }
35
+ ]},
36
+ { "name": "login", "description": "Login to Netlify" },
37
+ { "name": "logout", "description": "Logout" },
38
+ { "name": "switch", "description": "Switch active account" },
39
+ { "name": "logs", "description": "Stream logs", "subcommands": [{ "name": "function", "description": "Stream function logs", "options": [{ "name": "--level", "shorthand": "-l", "description": "Log level", "takesValue": true }] }] }
40
+ ],
41
+ "globalOptions": [
42
+ { "name": "--auth", "description": "Auth token", "takesValue": true },
43
+ { "name": "--httpProxy", "description": "HTTP proxy", "takesValue": true },
44
+ { "name": "--httpProxyCertificateFilename", "description": "Proxy cert file", "takesValue": true },
45
+ { "name": "--debug", "description": "Enable debug mode" },
46
+ { "name": "--help", "shorthand": "-h", "description": "Show help" }
47
+ ],
48
+ "examples": [
49
+ { "command": "netlify deploy --prod", "description": "Deploy to production" },
50
+ { "command": "netlify dev", "description": "Start local dev server" },
51
+ { "command": "netlify env:set API_KEY mykey", "description": "Set an environment variable" },
52
+ { "command": "netlify sites:list --json", "description": "List all sites as JSON" },
53
+ { "command": "netlify link --name my-site", "description": "Link to a site by name" }
54
+ ],
55
+ "relatedCommands": ["vercel", "firebase"],
56
+ "contextEngine": {
57
+ "detectors": [
58
+ {
59
+ "name": "site_status",
60
+ "description": "Current linked site status",
61
+ "command": "netlify status --json 2>/dev/null",
62
+ "parser": "json",
63
+ "cacheFor": 60,
64
+ "requiresCmd": "netlify"
65
+ },
66
+ {
67
+ "name": "sites",
68
+ "description": "All Netlify sites",
69
+ "command": "netlify sites:list --json 2>/dev/null | head -50",
70
+ "parser": "json",
71
+ "cacheFor": 120,
72
+ "requiresCmd": "netlify"
73
+ },
74
+ {
75
+ "name": "env_vars",
76
+ "description": "Site environment variables",
77
+ "command": "netlify env:list --json 2>/dev/null",
78
+ "parser": "json",
79
+ "cacheFor": 120,
80
+ "requiresCmd": "netlify"
81
+ },
82
+ {
83
+ "name": "functions",
84
+ "description": "Deployed functions",
85
+ "command": "netlify functions:list --json 2>/dev/null",
86
+ "parser": "json",
87
+ "cacheFor": 120,
88
+ "requiresCmd": "netlify"
89
+ }
90
+ ]
91
+ }
92
+ }
@@ -0,0 +1,71 @@
1
+ {
2
+ "name": "next",
3
+ "description": "Next.js CLI for building and running React applications with SSR/SSG",
4
+ "category": "Node Ecosystem",
5
+ "platforms": ["linux", "macos", "windows"],
6
+ "shells": ["bash", "zsh", "powershell", "fish"],
7
+ "subcommands": [
8
+ { "name": "dev", "description": "Start development server with HMR", "options": [{ "name": "--port", "shorthand": "-p", "description": "Port number", "takesValue": true }, { "name": "--hostname", "shorthand": "-H", "description": "Hostname", "takesValue": true }, { "name": "--turbo", "description": "Use Turbopack" }, { "name": "--experimental-https", "description": "Enable HTTPS" }] },
9
+ { "name": "build", "description": "Build for production", "options": [{ "name": "--debug", "description": "Enable debug output" }, { "name": "--profile", "description": "Enable React profiling" }, { "name": "--no-lint", "description": "Skip linting" }] },
10
+ { "name": "start", "description": "Start production server", "options": [{ "name": "--port", "shorthand": "-p", "description": "Port number", "takesValue": true }, { "name": "--hostname", "shorthand": "-H", "description": "Hostname", "takesValue": true }, { "name": "--keepAliveTimeout", "description": "Keep-alive timeout (ms)", "takesValue": true }] },
11
+ { "name": "lint", "description": "Run ESLint", "options": [{ "name": "--dir", "shorthand": "-d", "description": "Directories to lint", "takesValue": true }, { "name": "--fix", "description": "Auto-fix issues" }, { "name": "--strict", "description": "Strict mode" }, { "name": "--quiet", "description": "Only report errors" }] },
12
+ { "name": "info", "description": "Show system information for bug reports" },
13
+ { "name": "telemetry", "description": "Manage telemetry", "subcommands": [
14
+ { "name": "status", "description": "Show telemetry status" },
15
+ { "name": "enable", "description": "Enable telemetry" },
16
+ { "name": "disable", "description": "Disable telemetry" }
17
+ ]},
18
+ { "name": "export", "description": "Export static HTML (legacy)", "options": [{ "name": "--outdir", "shorthand": "-o", "description": "Output directory", "takesValue": true }] }
19
+ ],
20
+ "globalOptions": [
21
+ { "name": "--help", "shorthand": "-h", "description": "Show help" },
22
+ { "name": "--version", "shorthand": "-v", "description": "Show version" }
23
+ ],
24
+ "examples": [
25
+ { "command": "next dev", "description": "Start development server" },
26
+ { "command": "next build", "description": "Build for production" },
27
+ { "command": "next start -p 8080", "description": "Start production server on port 8080" },
28
+ { "command": "next dev --turbo", "description": "Dev with Turbopack" },
29
+ { "command": "next lint --fix", "description": "Lint and auto-fix" }
30
+ ],
31
+ "relatedCommands": ["vite", "vercel", "npm"],
32
+ "contextEngine": {
33
+ "detectors": [
34
+ {
35
+ "name": "next_config",
36
+ "description": "Next.js configuration",
37
+ "command": "cat next.config.js 2>/dev/null || cat next.config.mjs 2>/dev/null || cat next.config.ts 2>/dev/null",
38
+ "parser": "text",
39
+ "cacheFor": 30
40
+ },
41
+ {
42
+ "name": "pages",
43
+ "description": "Pages/routes structure",
44
+ "command": "find app pages src/app src/pages -name '*.tsx' -o -name '*.ts' -o -name '*.jsx' -o -name '*.js' 2>/dev/null | head -30",
45
+ "parser": "lines",
46
+ "cacheFor": 30
47
+ },
48
+ {
49
+ "name": "package_scripts",
50
+ "description": "Package.json scripts",
51
+ "command": "node -e \"const p=require('./package.json');Object.entries(p.scripts||{}).forEach(([k,v])=>console.log(k+': '+v))\" 2>/dev/null",
52
+ "parser": "lines",
53
+ "cacheFor": 30
54
+ },
55
+ {
56
+ "name": "dependencies",
57
+ "description": "Project dependencies",
58
+ "command": "node -e \"const p=require('./package.json');Object.keys({...p.dependencies,...p.devDependencies}).forEach(d=>console.log(d))\" 2>/dev/null | head -30",
59
+ "parser": "lines",
60
+ "cacheFor": 60
61
+ },
62
+ {
63
+ "name": "env_files",
64
+ "description": "Environment files",
65
+ "command": "ls -1 .env* 2>/dev/null",
66
+ "parser": "lines",
67
+ "cacheFor": 30
68
+ }
69
+ ]
70
+ }
71
+ }
@@ -0,0 +1,105 @@
1
+ {
2
+ "name": "nft",
3
+ "description": "nftables - Linux kernel packet classification framework (iptables successor)",
4
+ "category": "Linux Coreutils",
5
+ "platforms": ["linux"],
6
+ "shells": ["bash", "zsh", "fish"],
7
+ "subcommands": [
8
+ { "name": "list", "description": "List objects", "subcommands": [
9
+ { "name": "ruleset", "description": "List entire ruleset" },
10
+ { "name": "tables", "description": "List all tables" },
11
+ { "name": "table", "description": "List specific table", "args": [{ "name": "family table", "description": "Family and table name", "required": true }] },
12
+ { "name": "chains", "description": "List all chains" },
13
+ { "name": "chain", "description": "List specific chain" },
14
+ { "name": "sets", "description": "List all sets" },
15
+ { "name": "set", "description": "List specific set" },
16
+ { "name": "maps", "description": "List all maps" },
17
+ { "name": "counters", "description": "List counters" }
18
+ ]},
19
+ { "name": "add", "description": "Add objects", "subcommands": [
20
+ { "name": "table", "description": "Add table", "args": [{ "name": "family name", "description": "e.g. inet filter", "required": true }] },
21
+ { "name": "chain", "description": "Add chain" },
22
+ { "name": "rule", "description": "Add rule" },
23
+ { "name": "set", "description": "Add set" },
24
+ { "name": "map", "description": "Add map" },
25
+ { "name": "element", "description": "Add set element" },
26
+ { "name": "counter", "description": "Add named counter" }
27
+ ]},
28
+ { "name": "delete", "description": "Delete objects", "subcommands": [
29
+ { "name": "table", "description": "Delete table" },
30
+ { "name": "chain", "description": "Delete chain" },
31
+ { "name": "rule", "description": "Delete rule" },
32
+ { "name": "set", "description": "Delete set" }
33
+ ]},
34
+ { "name": "insert", "description": "Insert rule at position" },
35
+ { "name": "replace", "description": "Replace rule" },
36
+ { "name": "flush", "description": "Flush objects", "subcommands": [
37
+ { "name": "ruleset", "description": "Flush entire ruleset" },
38
+ { "name": "table", "description": "Flush table" },
39
+ { "name": "chain", "description": "Flush chain" },
40
+ { "name": "set", "description": "Flush set" }
41
+ ]},
42
+ { "name": "rename", "description": "Rename chain" },
43
+ { "name": "export", "description": "Export ruleset", "options": [{ "name": "json", "description": "Export as JSON" }] },
44
+ { "name": "import", "description": "Import ruleset" },
45
+ { "name": "monitor", "description": "Monitor ruleset events" }
46
+ ],
47
+ "globalOptions": [
48
+ { "name": "-f", "description": "Read commands from file", "takesValue": true },
49
+ { "name": "-i", "description": "Interactive mode" },
50
+ { "name": "-n", "description": "Numeric output (no hostname resolution)" },
51
+ { "name": "-s", "description": "Stateless output" },
52
+ { "name": "-a", "description": "Show rule handles in output" },
53
+ { "name": "-j", "description": "JSON output" },
54
+ { "name": "-c", "description": "Check commands without committing" },
55
+ { "name": "-e", "description": "Echo what was added/inserted" },
56
+ { "name": "--debug", "description": "Debug output", "takesValue": true },
57
+ { "name": "--handle", "description": "Show handle numbers in output" }
58
+ ],
59
+ "examples": [
60
+ { "command": "sudo nft list ruleset", "description": "Show all rules" },
61
+ { "command": "sudo nft add table inet filter", "description": "Create table" },
62
+ { "command": "sudo nft add chain inet filter input '{ type filter hook input priority 0; }'", "description": "Create input chain" },
63
+ { "command": "sudo nft add rule inet filter input tcp dport 80 accept", "description": "Allow HTTP" },
64
+ { "command": "sudo nft add rule inet filter input tcp dport 22 accept", "description": "Allow SSH" },
65
+ { "command": "sudo nft -f /etc/nftables.conf", "description": "Load rules from file" },
66
+ { "command": "sudo nft flush ruleset", "description": "Clear all rules" },
67
+ { "command": "sudo nft list ruleset -j", "description": "JSON output" },
68
+ { "command": "sudo nft delete rule inet filter input handle 10", "description": "Delete specific rule" }
69
+ ],
70
+ "relatedCommands": ["iptables", "ufw"],
71
+ "contextEngine": {
72
+ "detectors": [
73
+ {
74
+ "name": "ruleset",
75
+ "description": "Current nftables ruleset",
76
+ "command": "sudo nft list ruleset 2>/dev/null | head -40",
77
+ "parser": "text",
78
+ "cacheFor": 15,
79
+ "requiresCmd": "nft"
80
+ },
81
+ {
82
+ "name": "tables",
83
+ "description": "Current tables",
84
+ "command": "sudo nft list tables 2>/dev/null",
85
+ "parser": "lines",
86
+ "cacheFor": 15,
87
+ "requiresCmd": "nft"
88
+ },
89
+ {
90
+ "name": "config_file",
91
+ "description": "nftables config file",
92
+ "command": "cat /etc/nftables.conf 2>/dev/null | head -30",
93
+ "parser": "text",
94
+ "cacheFor": 60
95
+ },
96
+ {
97
+ "name": "interfaces",
98
+ "description": "Network interfaces",
99
+ "command": "ip -br link show 2>/dev/null",
100
+ "parser": "lines",
101
+ "cacheFor": 30
102
+ }
103
+ ]
104
+ }
105
+ }
@@ -0,0 +1,146 @@
1
+ {
2
+ "name": "nginx",
3
+ "description": "Nginx — high-performance HTTP server, reverse proxy, and load balancer",
4
+ "category": "web-server",
5
+ "platforms": ["linux", "macos"],
6
+ "shells": ["bash", "zsh", "fish"],
7
+ "subcommands": [],
8
+ "globalOptions": [
9
+ { "name": "-t", "description": "Test configuration and exit" },
10
+ { "name": "-T", "description": "Test configuration, dump it, and exit" },
11
+ { "name": "-s", "description": "Send signal to master process (stop, quit, reopen, reload)", "type": "string" },
12
+ { "name": "-c", "description": "Set configuration file path", "type": "file" },
13
+ { "name": "-g", "description": "Set global directives", "type": "string" },
14
+ { "name": "-p", "description": "Set prefix path", "type": "directory" },
15
+ { "name": "-v", "description": "Show version and exit" },
16
+ { "name": "-V", "description": "Show version and configure options and exit" },
17
+ { "name": "-q", "description": "Suppress non-error messages during config testing" }
18
+ ],
19
+ "examples": [
20
+ "nginx",
21
+ "nginx -t",
22
+ "nginx -T",
23
+ "nginx -s reload",
24
+ "nginx -s stop",
25
+ "nginx -s quit",
26
+ "nginx -s reopen",
27
+ "nginx -c /etc/nginx/nginx.conf",
28
+ "nginx -v",
29
+ "nginx -V",
30
+ "sudo nginx -t && sudo nginx -s reload",
31
+ "sudo systemctl start nginx",
32
+ "sudo systemctl stop nginx",
33
+ "sudo systemctl restart nginx",
34
+ "sudo systemctl status nginx",
35
+ "sudo systemctl enable nginx"
36
+ ],
37
+ "relatedCommands": ["caddy", "apache", "certbot", "openssl", "systemctl"],
38
+ "contextEngine": {
39
+ "detectors": [
40
+ {
41
+ "name": "running_status",
42
+ "description": "Check if Nginx is currently running",
43
+ "command": "pgrep -x nginx >/dev/null 2>&1 && echo 'running' || echo 'stopped'",
44
+ "parser": "text",
45
+ "cacheFor": 5,
46
+ "requiresCmd": "nginx"
47
+ },
48
+ {
49
+ "name": "nginx_version",
50
+ "description": "Installed Nginx version",
51
+ "command": "nginx -v 2>&1",
52
+ "parser": "text",
53
+ "cacheFor": 3600,
54
+ "requiresCmd": "nginx"
55
+ },
56
+ {
57
+ "name": "config_test",
58
+ "description": "Validate current Nginx configuration",
59
+ "command": "nginx -t 2>&1",
60
+ "parser": "text",
61
+ "cacheFor": 10,
62
+ "requiresCmd": "nginx"
63
+ },
64
+ {
65
+ "name": "enabled_sites",
66
+ "description": "Site configurations enabled (symlinked in sites-enabled)",
67
+ "command": "ls /etc/nginx/sites-enabled/ 2>/dev/null || ls /etc/nginx/conf.d/*.conf 2>/dev/null | xargs -I{} basename {}",
68
+ "parser": "lines",
69
+ "cacheFor": 30,
70
+ "requiresCmd": "nginx"
71
+ },
72
+ {
73
+ "name": "available_sites",
74
+ "description": "Site configurations available",
75
+ "command": "ls /etc/nginx/sites-available/ 2>/dev/null",
76
+ "parser": "lines",
77
+ "cacheFor": 30,
78
+ "requiresCmd": "nginx"
79
+ },
80
+ {
81
+ "name": "server_names",
82
+ "description": "All configured server_name directives",
83
+ "command": "grep -rh 'server_name' /etc/nginx/sites-enabled/ /etc/nginx/conf.d/ 2>/dev/null | sed 's/.*server_name//' | sed 's/;.*//' | tr ' ' '\\n' | sort -u | grep -v '^$'",
84
+ "parser": "lines",
85
+ "cacheFor": 30,
86
+ "requiresCmd": "nginx"
87
+ },
88
+ {
89
+ "name": "listen_ports",
90
+ "description": "All configured listen ports",
91
+ "command": "grep -rh 'listen' /etc/nginx/sites-enabled/ /etc/nginx/conf.d/ 2>/dev/null | sed 's/.*listen//' | sed 's/;.*//' | awk '{print $1}' | sort -u",
92
+ "parser": "lines",
93
+ "cacheFor": 30,
94
+ "requiresCmd": "nginx"
95
+ },
96
+ {
97
+ "name": "upstream_backends",
98
+ "description": "Configured upstream backends",
99
+ "command": "grep -rh 'upstream\\|proxy_pass' /etc/nginx/sites-enabled/ /etc/nginx/conf.d/ 2>/dev/null | sed 's/^[[:space:]]*//'",
100
+ "parser": "lines",
101
+ "cacheFor": 30,
102
+ "requiresCmd": "nginx"
103
+ },
104
+ {
105
+ "name": "error_log_path",
106
+ "description": "Path to the error log",
107
+ "command": "grep -rh 'error_log' /etc/nginx/nginx.conf 2>/dev/null | head -1 | awk '{print $2}' | sed 's/;$//'",
108
+ "parser": "text",
109
+ "cacheFor": 300,
110
+ "requiresCmd": "nginx"
111
+ },
112
+ {
113
+ "name": "access_log_path",
114
+ "description": "Path to the access log",
115
+ "command": "grep -rh 'access_log' /etc/nginx/nginx.conf 2>/dev/null | head -1 | awk '{print $2}' | sed 's/;$//'",
116
+ "parser": "text",
117
+ "cacheFor": 300,
118
+ "requiresCmd": "nginx"
119
+ },
120
+ {
121
+ "name": "recent_errors",
122
+ "description": "Last 15 lines of Nginx error log",
123
+ "command": "tail -15 /var/log/nginx/error.log 2>/dev/null",
124
+ "parser": "lines",
125
+ "cacheFor": 10,
126
+ "requiresCmd": "nginx"
127
+ },
128
+ {
129
+ "name": "ssl_certificates",
130
+ "description": "SSL certificates referenced in configs",
131
+ "command": "grep -rh 'ssl_certificate[^_]' /etc/nginx/sites-enabled/ /etc/nginx/conf.d/ 2>/dev/null | sed 's/.*ssl_certificate//' | sed 's/;.*//' | sort -u",
132
+ "parser": "lines",
133
+ "cacheFor": 120,
134
+ "requiresCmd": "nginx"
135
+ },
136
+ {
137
+ "name": "worker_processes",
138
+ "description": "Worker process configuration",
139
+ "command": "grep 'worker_processes' /etc/nginx/nginx.conf 2>/dev/null | head -1",
140
+ "parser": "text",
141
+ "cacheFor": 300,
142
+ "requiresCmd": "nginx"
143
+ }
144
+ ]
145
+ }
146
+ }