@proggarapsody/bitbottle 1.45.0 → 1.47.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 +21 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -89,6 +89,7 @@ Tokens are intentionally stripped from `hosts.yml` on every save. If you have an
|
|
|
89
89
|
| `branch` | `list` `create` `delete` `checkout` |
|
|
90
90
|
| `tag` | `list` `create` `delete` |
|
|
91
91
|
| `webhook` | `list` `view` `create` `delete` |
|
|
92
|
+
| `deploy-key` | `list` `add` `delete` |
|
|
92
93
|
| `commit` | `log` `view` `status` `comment {list\|add\|edit\|delete}` |
|
|
93
94
|
| `pipeline` | `list` `view` `run` _(Cloud only)_ |
|
|
94
95
|
| `deployment` | `list` `view` _(Cloud only)_ |
|
|
@@ -205,11 +206,11 @@ bitbottle pipeline steps MYWORKSPACE/my-service {pipeline-uuid}
|
|
|
205
206
|
bitbottle pipeline logs MYWORKSPACE/my-service {pipeline-uuid} {step-uuid}
|
|
206
207
|
|
|
207
208
|
# Repository-level pipeline variables (upsert by KEY):
|
|
208
|
-
bitbottle
|
|
209
|
-
bitbottle
|
|
210
|
-
echo "$TOKEN" | bitbottle
|
|
209
|
+
bitbottle variable list MYWORKSPACE/my-service
|
|
210
|
+
bitbottle variable set MYWORKSPACE/my-service DEPLOY_ENV prod
|
|
211
|
+
echo "$TOKEN" | bitbottle variable set MYWORKSPACE/my-service \
|
|
211
212
|
API_TOKEN --body=- --secured
|
|
212
|
-
bitbottle
|
|
213
|
+
bitbottle variable delete MYWORKSPACE/my-service DEPLOY_ENV --confirm
|
|
213
214
|
```
|
|
214
215
|
|
|
215
216
|
Secured variables redact their value on read (TTY column shows
|
|
@@ -278,6 +279,22 @@ Event keys differ between backends:
|
|
|
278
279
|
from a file. Trailing newlines from stdin / file are trimmed. Webhook
|
|
279
280
|
secrets are write-only — neither backend returns them on read.
|
|
280
281
|
|
|
282
|
+
### Deploy keys
|
|
283
|
+
|
|
284
|
+
```bash
|
|
285
|
+
# List deploy keys
|
|
286
|
+
bitbottle deploy-key list MYPROJ/my-service
|
|
287
|
+
|
|
288
|
+
# Add a deploy key
|
|
289
|
+
bitbottle deploy-key add MYPROJ/my-service --key "ssh-rsa AAAA..." --label "CI server"
|
|
290
|
+
|
|
291
|
+
# Delete a deploy key by ID
|
|
292
|
+
bitbottle deploy-key delete MYPROJ/my-service 42
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
All three subcommands work on both Bitbucket Cloud and Server/DC. `list` and
|
|
296
|
+
`add` support `--json` / `--jq` / `--yaml` for structured output.
|
|
297
|
+
|
|
281
298
|
### Repo extras
|
|
282
299
|
|
|
283
300
|
```bash
|