@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.
- package/README.md +213 -0
- package/data/commands/air.json +59 -0
- package/data/commands/ansible.json +24 -0
- package/data/commands/apachectl.json +87 -0
- package/data/commands/apt-get.json +81 -0
- package/data/commands/apt.json +91 -0
- package/data/commands/awk.json +26 -0
- package/data/commands/aws-vault.json +140 -0
- package/data/commands/aws.json +229 -0
- package/data/commands/az.json +36 -0
- package/data/commands/bazel.json +103 -0
- package/data/commands/brew.json +140 -0
- package/data/commands/bun.json +230 -0
- package/data/commands/caddy.json +194 -0
- package/data/commands/cargo.json +1048 -0
- package/data/commands/cat.json +18 -0
- package/data/commands/cd.json +48 -0
- package/data/commands/certbot.json +148 -0
- package/data/commands/chmod.json +97 -0
- package/data/commands/choco.json +134 -0
- package/data/commands/chown.json +59 -0
- package/data/commands/clickhouse-client.json +74 -0
- package/data/commands/cloudflare.json +226 -0
- package/data/commands/cmake.json +110 -0
- package/data/commands/cockroach.json +92 -0
- package/data/commands/conda.json +94 -0
- package/data/commands/consul.json +125 -0
- package/data/commands/cp.json +86 -0
- package/data/commands/curl.json +44 -0
- package/data/commands/cypress.json +100 -0
- package/data/commands/deno.json +29 -0
- package/data/commands/django-admin.json +86 -0
- package/data/commands/dnf.json +137 -0
- package/data/commands/docker.json +1100 -0
- package/data/commands/doctl.json +156 -0
- package/data/commands/eslint.json +69 -0
- package/data/commands/find.json +44 -0
- package/data/commands/firebase.json +97 -0
- package/data/commands/flask.json +79 -0
- package/data/commands/flyctl.json +148 -0
- package/data/commands/gcloud.json +227 -0
- package/data/commands/gh.json +39 -0
- package/data/commands/git.json +527 -0
- package/data/commands/glab.json +116 -0
- package/data/commands/go.json +161 -0
- package/data/commands/gofmt.json +51 -0
- package/data/commands/golangci-lint.json +89 -0
- package/data/commands/gradle.json +44 -0
- package/data/commands/grep.json +47 -0
- package/data/commands/gunicorn.json +83 -0
- package/data/commands/helm.json +1104 -0
- package/data/commands/hg.json +92 -0
- package/data/commands/httpd.json +147 -0
- package/data/commands/influx.json +119 -0
- package/data/commands/iptables.json +86 -0
- package/data/commands/java.json +31 -0
- package/data/commands/jest.json +82 -0
- package/data/commands/journalctl.json +88 -0
- package/data/commands/just.json +93 -0
- package/data/commands/k6.json +84 -0
- package/data/commands/kubectl.json +1277 -0
- package/data/commands/linode-cli.json +117 -0
- package/data/commands/locust.json +83 -0
- package/data/commands/ls.json +115 -0
- package/data/commands/make.json +86 -0
- package/data/commands/mocha.json +75 -0
- package/data/commands/mongosh.json +73 -0
- package/data/commands/mv.json +68 -0
- package/data/commands/mvn.json +45 -0
- package/data/commands/mysql.json +81 -0
- package/data/commands/nest.json +69 -0
- package/data/commands/netlify.json +92 -0
- package/data/commands/next.json +71 -0
- package/data/commands/nft.json +105 -0
- package/data/commands/nginx.json +146 -0
- package/data/commands/nmap.json +92 -0
- package/data/commands/node.json +43 -0
- package/data/commands/nomad.json +139 -0
- package/data/commands/npm.json +1265 -0
- package/data/commands/npx.json +58 -0
- package/data/commands/nx.json +82 -0
- package/data/commands/openssl.json +288 -0
- package/data/commands/packer.json +92 -0
- package/data/commands/pacman.json +82 -0
- package/data/commands/pg_dump.json +83 -0
- package/data/commands/pg_restore.json +74 -0
- package/data/commands/pip.json +95 -0
- package/data/commands/pipenv.json +79 -0
- package/data/commands/pipx.json +53 -0
- package/data/commands/playwright.json +97 -0
- package/data/commands/pnpm.json +29 -0
- package/data/commands/poetry.json +96 -0
- package/data/commands/prettier.json +71 -0
- package/data/commands/ps.json +31 -0
- package/data/commands/psql.json +124 -0
- package/data/commands/pulumi.json +130 -0
- package/data/commands/pytest.json +92 -0
- package/data/commands/python.json +30 -0
- package/data/commands/railway.json +91 -0
- package/data/commands/redis-cli.json +148 -0
- package/data/commands/render.json +72 -0
- package/data/commands/rm.json +79 -0
- package/data/commands/rsync.json +36 -0
- package/data/commands/rust.json +35 -0
- package/data/commands/rustup.json +103 -0
- package/data/commands/scp.json +60 -0
- package/data/commands/sed.json +28 -0
- package/data/commands/sqlite3.json +68 -0
- package/data/commands/ssh-keygen.json +112 -0
- package/data/commands/ssh.json +37 -0
- package/data/commands/sudo.json +147 -0
- package/data/commands/supabase.json +108 -0
- package/data/commands/svn.json +75 -0
- package/data/commands/systemctl.json +31 -0
- package/data/commands/tar.json +35 -0
- package/data/commands/tcpdump.json +77 -0
- package/data/commands/terraform.json +824 -0
- package/data/commands/terragrunt.json +83 -0
- package/data/commands/tsc.json +85 -0
- package/data/commands/turbo.json +72 -0
- package/data/commands/ufw.json +76 -0
- package/data/commands/unzip.json +59 -0
- package/data/commands/uvicorn.json +73 -0
- package/data/commands/vault.json +144 -0
- package/data/commands/vercel.json +98 -0
- package/data/commands/vite.json +63 -0
- package/data/commands/vitest.json +88 -0
- package/data/commands/wasm-pack.json +90 -0
- package/data/commands/wget.json +38 -0
- package/data/commands/winget.json +131 -0
- package/data/commands/wireshark.json +81 -0
- package/data/commands/yarn.json +28 -0
- package/data/commands/yum.json +98 -0
- package/data/commands/zip.json +59 -0
- package/index.d.ts +131 -0
- package/index.js +189 -0
- package/index.mjs +21 -0
- package/package.json +64 -0
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "railway",
|
|
3
|
+
"description": "Railway CLI for deploying and managing Railway projects",
|
|
4
|
+
"category": "Cloud CLIs",
|
|
5
|
+
"platforms": ["linux", "macos", "windows"],
|
|
6
|
+
"shells": ["bash", "zsh", "powershell", "fish"],
|
|
7
|
+
"subcommands": [
|
|
8
|
+
{ "name": "init", "description": "Initialize a new Railway project" },
|
|
9
|
+
{ "name": "up", "description": "Deploy the current directory", "options": [{ "name": "--detach", "shorthand": "-d", "description": "Don't follow logs" }, { "name": "--service", "shorthand": "-s", "description": "Service to deploy to", "takesValue": true }, { "name": "--environment", "shorthand": "-e", "description": "Environment to deploy to", "takesValue": true }] },
|
|
10
|
+
{ "name": "run", "description": "Run a command with Railway env vars", "args": [{ "name": "command", "description": "Command to run", "required": true }], "options": [{ "name": "--service", "shorthand": "-s", "description": "Service to use", "takesValue": true }, { "name": "--environment", "shorthand": "-e", "description": "Environment", "takesValue": true }] },
|
|
11
|
+
{ "name": "link", "description": "Link to a Railway project", "options": [{ "name": "--project", "shorthand": "-p", "description": "Project ID", "takesValue": true }, { "name": "--service", "shorthand": "-s", "description": "Service", "takesValue": true }, { "name": "--environment", "shorthand": "-e", "description": "Environment", "takesValue": true }] },
|
|
12
|
+
{ "name": "unlink", "description": "Unlink from Railway project" },
|
|
13
|
+
{ "name": "status", "description": "Show project status" },
|
|
14
|
+
{ "name": "logs", "description": "View deployment logs", "options": [{ "name": "--deployment", "shorthand": "-d", "description": "Deployment ID", "takesValue": true }, { "name": "--follow", "shorthand": "-f", "description": "Follow logs" }] },
|
|
15
|
+
{ "name": "variables", "description": "Manage environment variables", "subcommands": [
|
|
16
|
+
{ "name": "set", "description": "Set a variable", "args": [{ "name": "key=value", "description": "KEY=VALUE pair", "required": true }] },
|
|
17
|
+
{ "name": "get", "description": "Get a variable", "args": [{ "name": "key", "description": "Variable name", "required": true }] },
|
|
18
|
+
{ "name": "delete", "description": "Delete a variable", "args": [{ "name": "key", "description": "Variable name", "required": true }] }
|
|
19
|
+
]},
|
|
20
|
+
{ "name": "service", "description": "Manage services", "subcommands": [
|
|
21
|
+
{ "name": "list", "description": "List services" }
|
|
22
|
+
]},
|
|
23
|
+
{ "name": "environment", "description": "Manage environments", "subcommands": [
|
|
24
|
+
{ "name": "list", "description": "List environments" }
|
|
25
|
+
]},
|
|
26
|
+
{ "name": "domain", "description": "Manage domains", "subcommands": [
|
|
27
|
+
{ "name": "add", "description": "Add custom domain", "args": [{ "name": "domain", "description": "Domain name", "required": true }] },
|
|
28
|
+
{ "name": "list", "description": "List domains" }
|
|
29
|
+
]},
|
|
30
|
+
{ "name": "volume", "description": "Manage volumes", "subcommands": [
|
|
31
|
+
{ "name": "add", "description": "Add a volume", "options": [{ "name": "--mount-path", "shorthand": "-m", "description": "Mount path", "takesValue": true }] },
|
|
32
|
+
{ "name": "list", "description": "List volumes" },
|
|
33
|
+
{ "name": "delete", "description": "Delete a volume", "args": [{ "name": "id", "description": "Volume ID", "required": true }] }
|
|
34
|
+
]},
|
|
35
|
+
{ "name": "login", "description": "Log in to Railway" },
|
|
36
|
+
{ "name": "logout", "description": "Log out" },
|
|
37
|
+
{ "name": "whoami", "description": "Show current user" },
|
|
38
|
+
{ "name": "shell", "description": "Open a shell with Railway env vars" },
|
|
39
|
+
{ "name": "add", "description": "Add a plugin (database)", "options": [{ "name": "--plugin", "shorthand": "-p", "description": "Plugin type (postgres, mysql, redis, mongodb)", "takesValue": true }] },
|
|
40
|
+
{ "name": "open", "description": "Open project in browser" }
|
|
41
|
+
],
|
|
42
|
+
"globalOptions": [
|
|
43
|
+
{ "name": "--json", "description": "Output as JSON" },
|
|
44
|
+
{ "name": "--help", "shorthand": "-h", "description": "Show help" },
|
|
45
|
+
{ "name": "--version", "shorthand": "-V", "description": "Show version" }
|
|
46
|
+
],
|
|
47
|
+
"examples": [
|
|
48
|
+
{ "command": "railway up", "description": "Deploy current directory" },
|
|
49
|
+
{ "command": "railway run npm start", "description": "Run with Railway env vars" },
|
|
50
|
+
{ "command": "railway logs -f", "description": "Follow deployment logs" },
|
|
51
|
+
{ "command": "railway variables set DATABASE_URL=postgres://...", "description": "Set env variable" },
|
|
52
|
+
{ "command": "railway link", "description": "Link to a project interactively" }
|
|
53
|
+
],
|
|
54
|
+
"relatedCommands": ["vercel", "netlify", "flyctl"],
|
|
55
|
+
"contextEngine": {
|
|
56
|
+
"detectors": [
|
|
57
|
+
{
|
|
58
|
+
"name": "project_status",
|
|
59
|
+
"description": "Current linked project",
|
|
60
|
+
"command": "railway status --json 2>/dev/null",
|
|
61
|
+
"parser": "json",
|
|
62
|
+
"cacheFor": 60,
|
|
63
|
+
"requiresCmd": "railway"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "services",
|
|
67
|
+
"description": "Project services",
|
|
68
|
+
"command": "railway service list --json 2>/dev/null",
|
|
69
|
+
"parser": "json",
|
|
70
|
+
"cacheFor": 60,
|
|
71
|
+
"requiresCmd": "railway"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "environments",
|
|
75
|
+
"description": "Available environments",
|
|
76
|
+
"command": "railway environment list --json 2>/dev/null",
|
|
77
|
+
"parser": "json",
|
|
78
|
+
"cacheFor": 120,
|
|
79
|
+
"requiresCmd": "railway"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "user",
|
|
83
|
+
"description": "Current user",
|
|
84
|
+
"command": "railway whoami 2>/dev/null",
|
|
85
|
+
"parser": "text",
|
|
86
|
+
"cacheFor": 300,
|
|
87
|
+
"requiresCmd": "railway"
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "redis-cli",
|
|
3
|
+
"description": "Redis command-line interface — interact with a Redis server",
|
|
4
|
+
"category": "database",
|
|
5
|
+
"platforms": ["linux", "macos", "windows"],
|
|
6
|
+
"shells": ["bash", "zsh", "fish", "powershell"],
|
|
7
|
+
"subcommands": [],
|
|
8
|
+
"globalOptions": [
|
|
9
|
+
{ "name": "-h", "description": "Server hostname", "type": "string", "default": "127.0.0.1" },
|
|
10
|
+
{ "name": "-p", "description": "Server port", "type": "number", "default": "6379" },
|
|
11
|
+
{ "name": "-a", "description": "Password for AUTH", "type": "string" },
|
|
12
|
+
{ "name": "--user", "description": "ACL username", "type": "string" },
|
|
13
|
+
{ "name": "-n", "description": "Database number (0-15)", "type": "number", "default": "0" },
|
|
14
|
+
{ "name": "-u", "description": "Server URI (redis://user:pass@host:port/db)", "type": "string" },
|
|
15
|
+
{ "name": "--tls", "description": "Enable TLS/SSL" },
|
|
16
|
+
{ "name": "--cert", "description": "Client certificate file", "type": "file" },
|
|
17
|
+
{ "name": "--key", "description": "Client private key file", "type": "file" },
|
|
18
|
+
{ "name": "--cacert", "description": "CA certificate file", "type": "file" },
|
|
19
|
+
{ "name": "-r", "description": "Repeat command N times", "type": "number" },
|
|
20
|
+
{ "name": "-i", "description": "Interval between commands (seconds)", "type": "number" },
|
|
21
|
+
{ "name": "--stat", "description": "Print rolling stats about server" },
|
|
22
|
+
{ "name": "--latency", "description": "Continuously sample latency" },
|
|
23
|
+
{ "name": "--bigkeys", "description": "Sample keys looking for big keys" },
|
|
24
|
+
{ "name": "--memkeys", "description": "Sample keys and report memory usage" },
|
|
25
|
+
{ "name": "--hotkeys", "description": "Sample keys looking for hot keys (requires maxmemory-policy=allkeys-lfu)" },
|
|
26
|
+
{ "name": "--scan", "description": "List all keys using SCAN" },
|
|
27
|
+
{ "name": "--pattern", "description": "Pattern for --scan", "type": "string" },
|
|
28
|
+
{ "name": "--pipe", "description": "Transfer raw Redis protocol from stdin to server" },
|
|
29
|
+
{ "name": "--rdb", "description": "Dump RDB file from server", "type": "file" },
|
|
30
|
+
{ "name": "--cluster", "description": "Enable cluster mode" },
|
|
31
|
+
{ "name": "--raw", "description": "Use raw formatting for replies" },
|
|
32
|
+
{ "name": "--no-auth-warning", "description": "Suppress auth password warning" },
|
|
33
|
+
{ "name": "--csv", "description": "Output in CSV format" },
|
|
34
|
+
{ "name": "--json", "description": "Output in JSON format" }
|
|
35
|
+
],
|
|
36
|
+
"examples": [
|
|
37
|
+
"redis-cli",
|
|
38
|
+
"redis-cli -h myhost -p 6379",
|
|
39
|
+
"redis-cli -a mypassword",
|
|
40
|
+
"redis-cli -n 1",
|
|
41
|
+
"redis-cli PING",
|
|
42
|
+
"redis-cli SET mykey 'hello'",
|
|
43
|
+
"redis-cli GET mykey",
|
|
44
|
+
"redis-cli DEL mykey",
|
|
45
|
+
"redis-cli KEYS '*'",
|
|
46
|
+
"redis-cli --scan --pattern 'user:*'",
|
|
47
|
+
"redis-cli INFO server",
|
|
48
|
+
"redis-cli DBSIZE",
|
|
49
|
+
"redis-cli MONITOR",
|
|
50
|
+
"redis-cli --stat",
|
|
51
|
+
"redis-cli --bigkeys",
|
|
52
|
+
"redis-cli --latency",
|
|
53
|
+
"redis-cli FLUSHDB",
|
|
54
|
+
"redis-cli CONFIG GET maxmemory",
|
|
55
|
+
"redis-cli HGETALL myhash",
|
|
56
|
+
"redis-cli LPUSH mylist 'item1'",
|
|
57
|
+
"redis-cli SUBSCRIBE mychannel",
|
|
58
|
+
"redis-cli PUBLISH mychannel 'hello'",
|
|
59
|
+
"redis-cli MULTI",
|
|
60
|
+
"redis-cli --cluster info 127.0.0.1:6379",
|
|
61
|
+
"redis-cli -u redis://user:pass@host:6379/0"
|
|
62
|
+
],
|
|
63
|
+
"relatedCommands": ["psql", "mysql", "mongosh", "memcached"],
|
|
64
|
+
"contextEngine": {
|
|
65
|
+
"detectors": [
|
|
66
|
+
{
|
|
67
|
+
"name": "server_info",
|
|
68
|
+
"description": "Redis server info summary",
|
|
69
|
+
"command": "redis-cli INFO server 2>/dev/null | grep -E '^(redis_version|os|tcp_port|uptime_in_days|connected_clients):'",
|
|
70
|
+
"parser": "keyvalue",
|
|
71
|
+
"cacheFor": 60,
|
|
72
|
+
"requiresCmd": "redis-cli"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "databases",
|
|
76
|
+
"description": "Databases with key counts",
|
|
77
|
+
"command": "redis-cli INFO keyspace 2>/dev/null | grep '^db'",
|
|
78
|
+
"parser": "keyvalue",
|
|
79
|
+
"cacheFor": 15,
|
|
80
|
+
"requiresCmd": "redis-cli"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "db_size",
|
|
84
|
+
"description": "Total number of keys in current database",
|
|
85
|
+
"command": "redis-cli DBSIZE 2>/dev/null",
|
|
86
|
+
"parser": "text",
|
|
87
|
+
"cacheFor": 10,
|
|
88
|
+
"requiresCmd": "redis-cli"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "memory_usage",
|
|
92
|
+
"description": "Memory usage information",
|
|
93
|
+
"command": "redis-cli INFO memory 2>/dev/null | grep -E '^(used_memory_human|maxmemory_human|mem_fragmentation_ratio):'",
|
|
94
|
+
"parser": "keyvalue",
|
|
95
|
+
"cacheFor": 30,
|
|
96
|
+
"requiresCmd": "redis-cli"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "connected_clients",
|
|
100
|
+
"description": "Number of connected clients",
|
|
101
|
+
"command": "redis-cli INFO clients 2>/dev/null | grep '^connected_clients:'",
|
|
102
|
+
"parser": "keyvalue",
|
|
103
|
+
"cacheFor": 15,
|
|
104
|
+
"requiresCmd": "redis-cli"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "key_sample",
|
|
108
|
+
"description": "Sample of keys in the database (first 50)",
|
|
109
|
+
"command": "redis-cli --scan --count 50 2>/dev/null | head -50",
|
|
110
|
+
"parser": "lines",
|
|
111
|
+
"cacheFor": 15,
|
|
112
|
+
"requiresCmd": "redis-cli"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "slowlog",
|
|
116
|
+
"description": "Recent slow queries",
|
|
117
|
+
"command": "redis-cli SLOWLOG GET 5 2>/dev/null",
|
|
118
|
+
"parser": "lines",
|
|
119
|
+
"cacheFor": 30,
|
|
120
|
+
"requiresCmd": "redis-cli"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "cluster_info",
|
|
124
|
+
"description": "Cluster status (if running in cluster mode)",
|
|
125
|
+
"command": "redis-cli CLUSTER INFO 2>/dev/null | grep -E '^cluster_(enabled|state|known_nodes|size):'",
|
|
126
|
+
"parser": "keyvalue",
|
|
127
|
+
"cacheFor": 60,
|
|
128
|
+
"requiresCmd": "redis-cli"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "persistence",
|
|
132
|
+
"description": "RDB/AOF persistence status",
|
|
133
|
+
"command": "redis-cli INFO persistence 2>/dev/null | grep -E '^(rdb_last_save_time|aof_enabled|rdb_changes_since_last_save):'",
|
|
134
|
+
"parser": "keyvalue",
|
|
135
|
+
"cacheFor": 60,
|
|
136
|
+
"requiresCmd": "redis-cli"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "replication",
|
|
140
|
+
"description": "Replication status",
|
|
141
|
+
"command": "redis-cli INFO replication 2>/dev/null | grep -E '^(role|connected_slaves|master_host|master_link_status):'",
|
|
142
|
+
"parser": "keyvalue",
|
|
143
|
+
"cacheFor": 30,
|
|
144
|
+
"requiresCmd": "redis-cli"
|
|
145
|
+
}
|
|
146
|
+
]
|
|
147
|
+
}
|
|
148
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "render",
|
|
3
|
+
"description": "Render CLI for managing Render cloud services and deployments",
|
|
4
|
+
"category": "Cloud CLIs",
|
|
5
|
+
"platforms": ["linux", "macos", "windows"],
|
|
6
|
+
"shells": ["bash", "zsh", "powershell", "fish"],
|
|
7
|
+
"subcommands": [
|
|
8
|
+
{ "name": "services", "description": "Manage services", "subcommands": [
|
|
9
|
+
{ "name": "list", "description": "List all services", "options": [{ "name": "--type", "description": "Filter by type (web, worker, cron, static)", "takesValue": true }] },
|
|
10
|
+
{ "name": "show", "description": "Show service details", "args": [{ "name": "service-id", "description": "Service ID", "required": true }] },
|
|
11
|
+
{ "name": "tail", "description": "Tail service logs", "args": [{ "name": "service-id", "description": "Service ID", "required": true }] }
|
|
12
|
+
]},
|
|
13
|
+
{ "name": "deploys", "description": "Manage deployments", "subcommands": [
|
|
14
|
+
{ "name": "list", "description": "List recent deploys", "args": [{ "name": "service-id", "description": "Service ID", "required": true }] },
|
|
15
|
+
{ "name": "create", "description": "Trigger a deploy", "args": [{ "name": "service-id", "description": "Service ID", "required": true }], "options": [{ "name": "--clear-cache", "description": "Clear build cache" }] }
|
|
16
|
+
]},
|
|
17
|
+
{ "name": "env-groups", "description": "Manage environment groups", "subcommands": [
|
|
18
|
+
{ "name": "list", "description": "List env groups" },
|
|
19
|
+
{ "name": "show", "description": "Show env group details", "args": [{ "name": "name", "description": "Group name", "required": true }] }
|
|
20
|
+
]},
|
|
21
|
+
{ "name": "custom-domains", "description": "Manage custom domains", "subcommands": [
|
|
22
|
+
{ "name": "list", "description": "List custom domains for a service", "args": [{ "name": "service-id", "description": "Service ID", "required": true }] }
|
|
23
|
+
]},
|
|
24
|
+
{ "name": "blueprints", "description": "Manage infrastructure as code blueprints", "subcommands": [
|
|
25
|
+
{ "name": "list", "description": "List blueprints" },
|
|
26
|
+
{ "name": "launch", "description": "Launch a blueprint", "args": [{ "name": "file", "description": "Blueprint file", "required": true }] }
|
|
27
|
+
]},
|
|
28
|
+
{ "name": "regions", "description": "List available regions" },
|
|
29
|
+
{ "name": "login", "description": "Log in to Render" },
|
|
30
|
+
{ "name": "logout", "description": "Log out" }
|
|
31
|
+
],
|
|
32
|
+
"globalOptions": [
|
|
33
|
+
{ "name": "--output", "shorthand": "-o", "description": "Output format (json, yaml, table)", "takesValue": true },
|
|
34
|
+
{ "name": "--profile", "description": "Config profile", "takesValue": true },
|
|
35
|
+
{ "name": "--help", "shorthand": "-h", "description": "Show help" },
|
|
36
|
+
{ "name": "--version", "shorthand": "-v", "description": "Show version" }
|
|
37
|
+
],
|
|
38
|
+
"examples": [
|
|
39
|
+
{ "command": "render services list", "description": "List all services" },
|
|
40
|
+
{ "command": "render deploys create srv-abc123", "description": "Trigger a new deploy" },
|
|
41
|
+
{ "command": "render services tail srv-abc123", "description": "Tail logs for a service" },
|
|
42
|
+
{ "command": "render blueprints launch render.yaml", "description": "Launch infrastructure from blueprint" }
|
|
43
|
+
],
|
|
44
|
+
"relatedCommands": ["vercel", "railway", "flyctl"],
|
|
45
|
+
"contextEngine": {
|
|
46
|
+
"detectors": [
|
|
47
|
+
{
|
|
48
|
+
"name": "services",
|
|
49
|
+
"description": "List Render services",
|
|
50
|
+
"command": "render services list --output json 2>/dev/null",
|
|
51
|
+
"parser": "json",
|
|
52
|
+
"cacheFor": 120,
|
|
53
|
+
"requiresCmd": "render"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "blueprint",
|
|
57
|
+
"description": "Local render.yaml blueprint",
|
|
58
|
+
"command": "cat render.yaml 2>/dev/null || cat render.yml 2>/dev/null",
|
|
59
|
+
"parser": "text",
|
|
60
|
+
"cacheFor": 60
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "regions",
|
|
64
|
+
"description": "Available regions",
|
|
65
|
+
"command": "render regions --output json 2>/dev/null",
|
|
66
|
+
"parser": "json",
|
|
67
|
+
"cacheFor": 3600,
|
|
68
|
+
"requiresCmd": "render"
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rm",
|
|
3
|
+
"description": "Remove files or directories",
|
|
4
|
+
"category": "coreutils",
|
|
5
|
+
"platforms": ["linux", "macos"],
|
|
6
|
+
"shells": ["bash", "zsh", "fish"],
|
|
7
|
+
"subcommands": [],
|
|
8
|
+
"globalOptions": [
|
|
9
|
+
{ "name": "-r", "description": "Remove directories and their contents recursively" },
|
|
10
|
+
{ "name": "-R", "description": "Remove directories recursively (same as -r)" },
|
|
11
|
+
{ "name": "-f", "description": "Force removal without confirmation" },
|
|
12
|
+
{ "name": "-i", "description": "Prompt before every removal" },
|
|
13
|
+
{ "name": "-I", "description": "Prompt once before removing more than 3 files or recursively" },
|
|
14
|
+
{ "name": "-v", "description": "Verbose — explain what is being done" },
|
|
15
|
+
{ "name": "-d", "description": "Remove empty directories" },
|
|
16
|
+
{ "name": "--no-preserve-root", "description": "Do not treat '/' specially (DANGEROUS)" },
|
|
17
|
+
{ "name": "--preserve-root", "description": "Do not remove '/' (default)" },
|
|
18
|
+
{ "name": "--one-file-system", "description": "Skip directories on different filesystems when recursive" },
|
|
19
|
+
{ "name": "--interactive", "description": "Prompt according to WHEN (never, once, always)", "type": "string" }
|
|
20
|
+
],
|
|
21
|
+
"examples": [
|
|
22
|
+
"rm file.txt",
|
|
23
|
+
"rm -f file.txt",
|
|
24
|
+
"rm -rf directory/",
|
|
25
|
+
"rm -i file.txt",
|
|
26
|
+
"rm -v *.log",
|
|
27
|
+
"rm -rf node_modules/",
|
|
28
|
+
"rm -I *.tmp",
|
|
29
|
+
"rm -d empty-dir/",
|
|
30
|
+
"rm -rv build/ dist/",
|
|
31
|
+
"find . -name '*.pyc' -exec rm {} +",
|
|
32
|
+
"rm -rf /tmp/my-temp-*"
|
|
33
|
+
],
|
|
34
|
+
"relatedCommands": ["rmdir", "find", "shred", "unlink", "trash", "mv", "ls"],
|
|
35
|
+
"contextEngine": {
|
|
36
|
+
"detectors": [
|
|
37
|
+
{
|
|
38
|
+
"name": "cwd_contents",
|
|
39
|
+
"description": "Files and directories in the current working directory",
|
|
40
|
+
"command": "ls -1A 2>/dev/null | head -50",
|
|
41
|
+
"parser": "lines",
|
|
42
|
+
"cacheFor": 3,
|
|
43
|
+
"requiresCmd": "ls"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "cwd_path",
|
|
47
|
+
"description": "Current working directory path",
|
|
48
|
+
"command": "pwd",
|
|
49
|
+
"parser": "text",
|
|
50
|
+
"cacheFor": 3,
|
|
51
|
+
"requiresCmd": "rm"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "large_directories",
|
|
55
|
+
"description": "Largest directories (potential cleanup targets)",
|
|
56
|
+
"command": "du -sh */ 2>/dev/null | sort -rh | head -10",
|
|
57
|
+
"parser": "lines",
|
|
58
|
+
"cacheFor": 30,
|
|
59
|
+
"requiresCmd": "du"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "temp_files",
|
|
63
|
+
"description": "Temporary and cache files that could be cleaned up",
|
|
64
|
+
"command": "find . -maxdepth 2 \\( -name '*.tmp' -o -name '*.log' -o -name '*.pyc' -o -name '.DS_Store' -o -name 'Thumbs.db' -o -name '__pycache__' -o -name 'node_modules' \\) 2>/dev/null | head -20",
|
|
65
|
+
"parser": "lines",
|
|
66
|
+
"cacheFor": 30,
|
|
67
|
+
"requiresCmd": "find"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "disk_usage",
|
|
71
|
+
"description": "Available disk space",
|
|
72
|
+
"command": "df -h . 2>/dev/null | tail -1",
|
|
73
|
+
"parser": "text",
|
|
74
|
+
"cacheFor": 60,
|
|
75
|
+
"requiresCmd": "rm"
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rsync",
|
|
3
|
+
"description": "Fast, versatile remote (and local) file-copying tool",
|
|
4
|
+
"category": "networking",
|
|
5
|
+
"platforms": ["linux", "macos"],
|
|
6
|
+
"shells": ["bash", "zsh", "fish"],
|
|
7
|
+
"subcommands": [],
|
|
8
|
+
"globalOptions": [
|
|
9
|
+
{ "name": "-a", "description": "Archive mode (preserves permissions, symlinks, etc.)" },
|
|
10
|
+
{ "name": "-v", "description": "Verbose" },
|
|
11
|
+
{ "name": "-z", "description": "Compress during transfer" },
|
|
12
|
+
{ "name": "-P", "description": "Show progress and keep partial transfers" },
|
|
13
|
+
{ "name": "--progress", "description": "Show transfer progress" },
|
|
14
|
+
{ "name": "-r", "description": "Recursive" },
|
|
15
|
+
{ "name": "--delete", "description": "Delete files in dest not in source" },
|
|
16
|
+
{ "name": "-e", "description": "Specify remote shell (e.g., ssh)", "type": "string" },
|
|
17
|
+
{ "name": "--exclude", "description": "Exclude pattern", "type": "string" },
|
|
18
|
+
{ "name": "--include", "description": "Include pattern", "type": "string" },
|
|
19
|
+
{ "name": "-n", "description": "Dry run" },
|
|
20
|
+
{ "name": "--dry-run", "description": "Dry run" },
|
|
21
|
+
{ "name": "-h", "description": "Human-readable sizes" },
|
|
22
|
+
{ "name": "--bwlimit", "description": "Bandwidth limit (KBps)", "type": "number" },
|
|
23
|
+
{ "name": "--partial", "description": "Keep partially transferred files" },
|
|
24
|
+
{ "name": "-u", "description": "Skip files newer on receiver" },
|
|
25
|
+
{ "name": "--checksum", "short": "-c", "description": "Use checksum instead of mod-time" }
|
|
26
|
+
],
|
|
27
|
+
"examples": [
|
|
28
|
+
"rsync -avz src/ dest/",
|
|
29
|
+
"rsync -avzP src/ user@host:/path/dest/",
|
|
30
|
+
"rsync -avz --delete src/ dest/",
|
|
31
|
+
"rsync -avz --exclude='node_modules' --exclude='.git' . user@host:/app/",
|
|
32
|
+
"rsync -avz -e 'ssh -p 2222' src/ user@host:/dest/",
|
|
33
|
+
"rsync -avzn src/ dest/"
|
|
34
|
+
],
|
|
35
|
+
"relatedCommands": ["scp", "sftp", "cp", "rclone"]
|
|
36
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rust",
|
|
3
|
+
"description": "Rust programming language tools (rustc, cargo)",
|
|
4
|
+
"category": "runtime",
|
|
5
|
+
"platforms": ["linux", "macos", "windows"],
|
|
6
|
+
"shells": ["bash", "zsh", "fish", "powershell"],
|
|
7
|
+
"subcommands": [
|
|
8
|
+
{ "name": "cargo new", "description": "Create a new Cargo package", "args": [{ "name": "<name>", "type": "string", "required": true, "description": "Package name" }], "options": [{ "name": "--lib", "description": "Create a library" }, { "name": "--bin", "description": "Create a binary (default)" }], "examples": ["cargo new myproject", "cargo new --lib mylib"] },
|
|
9
|
+
{ "name": "cargo init", "description": "Create a new Cargo package in existing directory", "examples": ["cargo init", "cargo init --lib"] },
|
|
10
|
+
{ "name": "cargo build", "description": "Compile the current package", "options": [{ "name": "--release", "description": "Build in release mode" }, { "name": "--target", "description": "Target triple", "type": "string" }, { "name": "--features", "description": "Space/comma-separated features", "type": "string" }, { "name": "--all-features", "description": "Activate all features" }], "examples": ["cargo build", "cargo build --release", "cargo build --target x86_64-unknown-linux-musl"] },
|
|
11
|
+
{ "name": "cargo run", "description": "Run the main binary", "options": [{ "name": "--release", "description": "Run in release mode" }, { "name": "--bin", "description": "Run specific binary", "type": "string" }], "examples": ["cargo run", "cargo run --release", "cargo run -- arg1 arg2"] },
|
|
12
|
+
{ "name": "cargo test", "description": "Run tests", "options": [{ "name": "--release", "description": "Test in release mode" }, { "name": "--lib", "description": "Only test library" }, { "name": "--doc", "description": "Only run doc tests" }, { "name": "--no-run", "description": "Compile but don't run" }], "examples": ["cargo test", "cargo test -- --nocapture", "cargo test test_name"] },
|
|
13
|
+
{ "name": "cargo check", "description": "Check code without producing binary", "examples": ["cargo check", "cargo check --all-targets"] },
|
|
14
|
+
{ "name": "cargo clippy", "description": "Run lints", "options": [{ "name": "--fix", "description": "Auto-fix warnings" }, { "name": "-- -D warnings", "description": "Deny all warnings" }], "examples": ["cargo clippy", "cargo clippy --fix", "cargo clippy -- -D warnings"] },
|
|
15
|
+
{ "name": "cargo fmt", "description": "Format Rust code", "options": [{ "name": "--check", "description": "Check formatting without modifying" }], "examples": ["cargo fmt", "cargo fmt --check"] },
|
|
16
|
+
{ "name": "cargo add", "description": "Add dependency to Cargo.toml", "args": [{ "name": "<crate>", "type": "string", "required": true, "description": "Crate name" }], "options": [{ "name": "--dev", "short": "-D", "description": "Add as dev dependency" }, { "name": "--features", "short": "-F", "description": "Activate features", "type": "string" }], "examples": ["cargo add serde", "cargo add serde -F derive", "cargo add -D tokio-test"] },
|
|
17
|
+
{ "name": "cargo remove", "description": "Remove dependency from Cargo.toml", "args": [{ "name": "<crate>", "type": "string", "required": true, "description": "Crate name" }], "examples": ["cargo remove serde"] },
|
|
18
|
+
{ "name": "cargo update", "description": "Update dependencies", "examples": ["cargo update", "cargo update -p serde"] },
|
|
19
|
+
{ "name": "cargo doc", "description": "Generate documentation", "options": [{ "name": "--open", "description": "Open in browser" }, { "name": "--no-deps", "description": "Skip dependencies" }], "examples": ["cargo doc --open", "cargo doc --no-deps"] },
|
|
20
|
+
{ "name": "cargo publish", "description": "Publish crate to crates.io", "options": [{ "name": "--dry-run", "description": "Simulate publish" }], "examples": ["cargo publish", "cargo publish --dry-run"] },
|
|
21
|
+
{ "name": "cargo bench", "description": "Run benchmarks", "examples": ["cargo bench"] },
|
|
22
|
+
{ "name": "cargo install", "description": "Install a Rust binary crate", "args": [{ "name": "<crate>", "type": "string", "required": true, "description": "Crate name" }], "examples": ["cargo install ripgrep", "cargo install cargo-edit"] },
|
|
23
|
+
{ "name": "cargo clean", "description": "Remove build artifacts", "examples": ["cargo clean"] },
|
|
24
|
+
{ "name": "rustup update", "description": "Update Rust toolchains", "examples": ["rustup update", "rustup update stable"] },
|
|
25
|
+
{ "name": "rustup default", "description": "Set default toolchain", "args": [{ "name": "<toolchain>", "type": "string", "required": true, "description": "Toolchain name" }], "examples": ["rustup default stable", "rustup default nightly"] },
|
|
26
|
+
{ "name": "rustup target add", "description": "Add compilation target", "args": [{ "name": "<target>", "type": "string", "required": true, "description": "Target triple" }], "examples": ["rustup target add wasm32-unknown-unknown", "rustup target add x86_64-unknown-linux-musl"] },
|
|
27
|
+
{ "name": "rustup component add", "description": "Add toolchain component", "args": [{ "name": "<component>", "type": "string", "required": true, "description": "Component name" }], "examples": ["rustup component add clippy", "rustup component add rustfmt"] }
|
|
28
|
+
],
|
|
29
|
+
"globalOptions": [
|
|
30
|
+
{ "name": "--help", "short": "-h", "description": "Show help" },
|
|
31
|
+
{ "name": "--version", "short": "-V", "description": "Show version" }
|
|
32
|
+
],
|
|
33
|
+
"examples": ["cargo new myapp && cd myapp && cargo run", "cargo build --release", "cargo test && cargo clippy && cargo fmt --check"],
|
|
34
|
+
"relatedCommands": ["rustc", "rustup", "cargo-edit", "cargo-watch", "wasm-pack"]
|
|
35
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rustup",
|
|
3
|
+
"description": "Rust toolchain installer and manager",
|
|
4
|
+
"category": "Rust Ecosystem",
|
|
5
|
+
"platforms": ["linux", "macos", "windows"],
|
|
6
|
+
"shells": ["bash", "zsh", "powershell", "fish"],
|
|
7
|
+
"subcommands": [
|
|
8
|
+
{ "name": "show", "description": "Show installed and active toolchains", "subcommands": [
|
|
9
|
+
{ "name": "active-toolchain", "description": "Show active toolchain" },
|
|
10
|
+
{ "name": "home", "description": "Show RUSTUP_HOME" },
|
|
11
|
+
{ "name": "profile", "description": "Show current profile" }
|
|
12
|
+
]},
|
|
13
|
+
{ "name": "update", "description": "Update toolchains and rustup", "args": [{ "name": "toolchain", "description": "Specific toolchain to update", "required": false }] },
|
|
14
|
+
{ "name": "default", "description": "Set default toolchain", "args": [{ "name": "toolchain", "description": "Toolchain name (stable, beta, nightly, etc.)", "required": true }] },
|
|
15
|
+
{ "name": "toolchain", "description": "Manage toolchains", "subcommands": [
|
|
16
|
+
{ "name": "list", "description": "List installed toolchains" },
|
|
17
|
+
{ "name": "install", "description": "Install a toolchain", "args": [{ "name": "toolchain", "description": "Toolchain name", "required": true }] },
|
|
18
|
+
{ "name": "uninstall", "description": "Uninstall a toolchain", "args": [{ "name": "toolchain", "description": "Toolchain name", "required": true }] },
|
|
19
|
+
{ "name": "link", "description": "Symlink a custom toolchain", "args": [{ "name": "toolchain", "description": "Name", "required": true }, { "name": "path", "description": "Path", "required": true }] }
|
|
20
|
+
]},
|
|
21
|
+
{ "name": "target", "description": "Manage compilation targets", "subcommands": [
|
|
22
|
+
{ "name": "list", "description": "List available targets" },
|
|
23
|
+
{ "name": "add", "description": "Add a target", "args": [{ "name": "target", "description": "Target triple", "required": true }] },
|
|
24
|
+
{ "name": "remove", "description": "Remove a target", "args": [{ "name": "target", "description": "Target triple", "required": true }] }
|
|
25
|
+
]},
|
|
26
|
+
{ "name": "component", "description": "Manage components", "subcommands": [
|
|
27
|
+
{ "name": "list", "description": "List available components" },
|
|
28
|
+
{ "name": "add", "description": "Add a component", "args": [{ "name": "component", "description": "Component name (clippy, rustfmt, etc.)", "required": true }] },
|
|
29
|
+
{ "name": "remove", "description": "Remove a component", "args": [{ "name": "component", "description": "Component name", "required": true }] }
|
|
30
|
+
]},
|
|
31
|
+
{ "name": "override", "description": "Manage directory toolchain overrides", "subcommands": [
|
|
32
|
+
{ "name": "set", "description": "Set override for current directory", "args": [{ "name": "toolchain", "description": "Toolchain name", "required": true }] },
|
|
33
|
+
{ "name": "unset", "description": "Remove override" },
|
|
34
|
+
{ "name": "list", "description": "List overrides" }
|
|
35
|
+
]},
|
|
36
|
+
{ "name": "run", "description": "Run a command with a specific toolchain", "args": [{ "name": "toolchain", "description": "Toolchain", "required": true }, { "name": "command", "description": "Command to run", "required": true }] },
|
|
37
|
+
{ "name": "which", "description": "Show path to a binary", "args": [{ "name": "command", "description": "Binary name", "required": true }] },
|
|
38
|
+
{ "name": "doc", "description": "Open Rust docs in browser" },
|
|
39
|
+
{ "name": "self", "description": "Manage rustup itself", "subcommands": [
|
|
40
|
+
{ "name": "update", "description": "Update rustup" },
|
|
41
|
+
{ "name": "uninstall", "description": "Uninstall rustup" }
|
|
42
|
+
]}
|
|
43
|
+
],
|
|
44
|
+
"globalOptions": [
|
|
45
|
+
{ "name": "--verbose", "shorthand": "-v", "description": "Verbose output" },
|
|
46
|
+
{ "name": "--quiet", "shorthand": "-q", "description": "Quiet output" },
|
|
47
|
+
{ "name": "--help", "shorthand": "-h", "description": "Show help" },
|
|
48
|
+
{ "name": "--version", "shorthand": "-V", "description": "Show version" }
|
|
49
|
+
],
|
|
50
|
+
"examples": [
|
|
51
|
+
{ "command": "rustup show", "description": "Show installed toolchains" },
|
|
52
|
+
{ "command": "rustup update", "description": "Update all toolchains" },
|
|
53
|
+
{ "command": "rustup default nightly", "description": "Switch to nightly" },
|
|
54
|
+
{ "command": "rustup target add wasm32-unknown-unknown", "description": "Add WASM target" },
|
|
55
|
+
{ "command": "rustup component add clippy rustfmt", "description": "Add clippy and rustfmt" },
|
|
56
|
+
{ "command": "rustup toolchain install nightly", "description": "Install nightly toolchain" },
|
|
57
|
+
{ "command": "rustup override set nightly", "description": "Use nightly in current dir" }
|
|
58
|
+
],
|
|
59
|
+
"relatedCommands": ["cargo", "rust"],
|
|
60
|
+
"contextEngine": {
|
|
61
|
+
"detectors": [
|
|
62
|
+
{
|
|
63
|
+
"name": "installed_toolchains",
|
|
64
|
+
"description": "Installed Rust toolchains",
|
|
65
|
+
"command": "rustup toolchain list 2>/dev/null",
|
|
66
|
+
"parser": "lines",
|
|
67
|
+
"cacheFor": 120,
|
|
68
|
+
"requiresCmd": "rustup"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "active_toolchain",
|
|
72
|
+
"description": "Active toolchain",
|
|
73
|
+
"command": "rustup show active-toolchain 2>/dev/null",
|
|
74
|
+
"parser": "text",
|
|
75
|
+
"cacheFor": 30,
|
|
76
|
+
"requiresCmd": "rustup"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "installed_targets",
|
|
80
|
+
"description": "Installed compilation targets",
|
|
81
|
+
"command": "rustup target list --installed 2>/dev/null",
|
|
82
|
+
"parser": "lines",
|
|
83
|
+
"cacheFor": 120,
|
|
84
|
+
"requiresCmd": "rustup"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "installed_components",
|
|
88
|
+
"description": "Installed components",
|
|
89
|
+
"command": "rustup component list --installed 2>/dev/null",
|
|
90
|
+
"parser": "lines",
|
|
91
|
+
"cacheFor": 120,
|
|
92
|
+
"requiresCmd": "rustup"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "rust_toolchain_file",
|
|
96
|
+
"description": "Project toolchain override",
|
|
97
|
+
"command": "cat rust-toolchain.toml 2>/dev/null || cat rust-toolchain 2>/dev/null",
|
|
98
|
+
"parser": "text",
|
|
99
|
+
"cacheFor": 60
|
|
100
|
+
}
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
}
|