Skip to content

Commit 8a8ff8e

Browse files
include pipes in docs
1 parent 9aece5f commit 8a8ff8e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

docs/cli/exec-command.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ e2b sandbox exec <sandbox-id> <command>
1010
```
1111
</CodeGroup>
1212

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+
1321
### Run in background
1422

1523
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

Comments
 (0)