claude-bridge-cli 2.0.6 → 2.0.7
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/bin/cli.js +6 -0
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -116,6 +116,7 @@ Usage:
|
|
|
116
116
|
claude-code-bridge install-service Register as a system service (auto-start on boot)
|
|
117
117
|
claude-code-bridge uninstall-service Remove the system service
|
|
118
118
|
claude-code-bridge --help Show this help
|
|
119
|
+
claude-code-bridge --version Print the installed version
|
|
119
120
|
|
|
120
121
|
Options:
|
|
121
122
|
--port <n> HTTP port for the local bridge (default: 8091)
|
|
@@ -152,6 +153,10 @@ function env(key, def) {
|
|
|
152
153
|
|
|
153
154
|
function main() {
|
|
154
155
|
const args = process.argv.slice(2);
|
|
156
|
+
if (args.includes("--version") || args.includes("-v") || args[0] === "version") {
|
|
157
|
+
console.log(require("../package.json").version);
|
|
158
|
+
process.exit(0);
|
|
159
|
+
}
|
|
155
160
|
if (args.includes("--help") || args.includes("-h") || args.length === 0) {
|
|
156
161
|
console.log(HELP);
|
|
157
162
|
process.exit(0);
|
|
@@ -216,6 +221,7 @@ function main() {
|
|
|
216
221
|
}
|
|
217
222
|
|
|
218
223
|
async function run(config) {
|
|
224
|
+
console.log(`[bridge] claude-bridge-cli v${require("../package.json").version}`);
|
|
219
225
|
console.log(`[bridge] Starting on http://${config.host}:${config.port}`);
|
|
220
226
|
console.log(`[bridge] Claude CWD: ${config.cwd}`);
|
|
221
227
|
|
package/package.json
CHANGED