@superglue/cli 1.1.16 → 1.1.17
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.
|
@@ -66,9 +66,20 @@ This prompts for:
|
|
|
66
66
|
|
|
67
67
|
It verifies the connection before saving. On success it creates the config file, a `drafts/` directory, and updates `.gitignore` if using local config.
|
|
68
68
|
|
|
69
|
-
**Option B:
|
|
69
|
+
**Option B: Non-interactive init (recommended for CI and AI agents)**
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
Pass the global `--api-key` flag to skip interactive prompts and save a config file:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
sg init --api-key "your-api-key" --global
|
|
75
|
+
sg init --api-key "your-api-key" --endpoint "https://custom.endpoint.com" --global
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
> **Note:** `--api-key` and `--endpoint` are global flags (not shown in `sg init --help`). They work on all subcommands including `init`.
|
|
79
|
+
|
|
80
|
+
**Option C: Environment variables (no config file)**
|
|
81
|
+
|
|
82
|
+
If you don't need a persistent config file, set these env vars instead:
|
|
72
83
|
|
|
73
84
|
```bash
|
|
74
85
|
export SUPERGLUE_API_KEY="your-api-key"
|
|
@@ -66,9 +66,20 @@ This prompts for:
|
|
|
66
66
|
|
|
67
67
|
It verifies the connection before saving. On success it creates the config file, a `drafts/` directory, and updates `.gitignore` if using local config.
|
|
68
68
|
|
|
69
|
-
**Option B:
|
|
69
|
+
**Option B: Non-interactive init (recommended for CI and AI agents)**
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
Pass the global `--api-key` flag to skip interactive prompts and save a config file:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
sg init --api-key "your-api-key" --global
|
|
75
|
+
sg init --api-key "your-api-key" --endpoint "https://custom.endpoint.com" --global
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
> **Note:** `--api-key` and `--endpoint` are global flags (not shown in `sg init --help`). They work on all subcommands including `init`.
|
|
79
|
+
|
|
80
|
+
**Option C: Environment variables (no config file)**
|
|
81
|
+
|
|
82
|
+
If you don't need a persistent config file, set these env vars instead:
|
|
72
83
|
|
|
73
84
|
```bash
|
|
74
85
|
export SUPERGLUE_API_KEY="your-api-key"
|
package/package.json
CHANGED
|
@@ -66,9 +66,20 @@ This prompts for:
|
|
|
66
66
|
|
|
67
67
|
It verifies the connection before saving. On success it creates the config file, a `drafts/` directory, and updates `.gitignore` if using local config.
|
|
68
68
|
|
|
69
|
-
**Option B:
|
|
69
|
+
**Option B: Non-interactive init (recommended for CI and AI agents)**
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
Pass the global `--api-key` flag to skip interactive prompts and save a config file:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
sg init --api-key "your-api-key" --global
|
|
75
|
+
sg init --api-key "your-api-key" --endpoint "https://custom.endpoint.com" --global
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
> **Note:** `--api-key` and `--endpoint` are global flags (not shown in `sg init --help`). They work on all subcommands including `init`.
|
|
79
|
+
|
|
80
|
+
**Option C: Environment variables (no config file)**
|
|
81
|
+
|
|
82
|
+
If you don't need a persistent config file, set these env vars instead:
|
|
72
83
|
|
|
73
84
|
```bash
|
|
74
85
|
export SUPERGLUE_API_KEY="your-api-key"
|