1
0
mirror of https://github.com/docker/docs.git synced 2026-10-25 06:09:46 +03:00
Files
docs/data/sbx_cli/sbx_rm.yaml
Craig Osterhout 27e3346a3a sbx: sync cli ref for 0.35.0 (#25532)
<!--Delete sections as needed -->

## Description

Syncs all CLI reference YAML files in `data/sbx_cli/` from
`docker/sandboxes` at the v0.35.0 tag.

### New commands

| Command | Notes |
|---------|-------|
| `sbx daemon start/stop/status/log-level` | Manage the sandbox daemon
directly |
| `sbx policy check network` | Test whether the current policy would
allow a request |
| `sbx policy inspect` | Inspect a single policy or rule (replaces `sbx
policy show`) |
| `sbx secret import` | Import credential env vars into the keychain |

### Updated commands

| Command | What changed |
|---------|--------------|
| `sbx rm` | New `--force` flag for active sessions |
| `sbx policy ls` | New `--wide`, `--source`, `--decision` filters;
updated output format |
| `sbx policy` | Updated `see_also` to list new subcommands |
| `sbx secret` | Updated `see_also` to list `import` subcommand |
| `sbx kit add` | Synopsis and description reflect swap-recreate
behavior |

## Related issues or tickets

<!-- Related issues, pull requests, or Jira tickets -->

## Reviews

<!-- Notes for reviewers here -->
<!-- List applicable reviews (optionally @tag reviewers) -->

- [ ] Technical review
- [ ] Editorial review
- [ ] Product review

Signed-off-by: Craig Osterhout <craig.osterhout@docker.com>
2026-07-10 10:44:45 -07:00

33 lines
1.0 KiB
YAML

name: sbx rm
synopsis: Remove one or more sandboxes
description: |-
Remove one or more sandboxes and all associated resources.
Stops running sandboxes, removes their containers, cleans up any Git
worktrees, and deletes sandbox state. This action cannot be undone.
Removal requires confirmation; use --force to skip confirmation prompts
(for non-interactive scripts) and to delete a sandbox that is in use
(e.g. an open SSH connection). Use --all to remove every sandbox.
usage: sbx rm [SANDBOX...] [flags]
options:
- name: all
default_value: "false"
usage: Remove all sandboxes
- name: force
shorthand: f
default_value: "false"
usage: |
Skip confirmation prompts and delete even if in use (e.g. an open SSH connection)
- name: help
shorthand: h
default_value: "false"
usage: help for rm
inherited_options:
- name: debug
shorthand: D
default_value: "false"
usage: Enable debug logging
see_also:
- sbx - Manage AI coding agent sandboxes.