We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9aece5f commit 8a8ff8eCopy full SHA for 8a8ff8e
1 file changed
docs/cli/exec-command.mdx
@@ -10,6 +10,14 @@ e2b sandbox exec <sandbox-id> <command>
10
```
11
</CodeGroup>
12
13
+### Pipe command from stdin
14
+
15
+If you don't pass a command argument, `exec` reads from stdin:
16
17
+```bash
18
+echo "foo" | e2b sandbox exec <sandbox-id>
19
+```
20
21
### Run in background
22
23
Use the `--background` flag to run a command in the background and return immediately. The command will print the process ID (PID) to stderr:
0 commit comments