@debugbundle/cli 0.1.0-next.1

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 ADDED
@@ -0,0 +1,36 @@
1
+ # @debugbundle/cli
2
+
3
+ Command-line interface for DebugBundle.
4
+
5
+ ## Installation
6
+
7
+ ```sh
8
+ npm install -g @debugbundle/cli
9
+ ```
10
+
11
+ Or install it as a project development dependency:
12
+
13
+ ```sh
14
+ npm install --save-dev @debugbundle/cli
15
+ ```
16
+
17
+ ## Quick start
18
+
19
+ ```sh
20
+ debugbundle setup --non-interactive
21
+ debugbundle doctor
22
+ debugbundle process
23
+ debugbundle incidents
24
+ ```
25
+
26
+ ## Configuration
27
+
28
+ The CLI reads local project configuration from `.debugbundle/` and can use member-token authentication for connected cloud operations. Use `debugbundle connect` to configure cloud access, or pass `--auth-file` to commands that support explicit auth state.
29
+
30
+ ## Documentation
31
+
32
+ Full CLI documentation: https://debugbundle.com/docs/cli
33
+
34
+ ## License
35
+
36
+ AGPL-3.0-only
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env node
2
+ import { dirname, resolve } from "node:path";
3
+ import { fileURLToPath, pathToFileURL } from "node:url";
4
+
5
+ const binDirectory = dirname(fileURLToPath(import.meta.url));
6
+ const packageRoot = resolve(binDirectory, "..");
7
+ const mainPath = resolve(packageRoot, "dist/main.js");
8
+ const { main } = await import(pathToFileURL(mainPath).href);
9
+
10
+ await main();