We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aafc78b commit 9086b0aCopy full SHA for 9086b0a
1 file changed
content/manuals/ai/sandboxes/usage.md
@@ -35,6 +35,20 @@ $ sbx rm my-sandbox
35
$ sbx run claude
36
```
37
38
+## Non-interactive login
39
+
40
+For CI environments and scripts where a browser is not available, use a
41
+Docker Personal Access Token (PAT) with `--username` and `--password-stdin`:
42
43
+```console
44
+$ echo "$DOCKER_PAT" | sbx login --username <your-docker-id> --password-stdin
45
+```
46
47
+`--password-stdin` reads the token from standard input to keep it out of
48
+your shell history. Generate a PAT from your
49
+[Docker account settings](https://app.docker.com/settings/personal-access-tokens)
50
+with at least **Read** scope.
51
52
## Interactive mode
53
54
Running `sbx` with no subcommands opens an interactive terminal dashboard:
0 commit comments