Skip to content

Commit 1cd4397

Browse files
include pipes in docs (#110)
* include pipes in docs * wording
1 parent d9350c9 commit 1cd4397

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+
You can pipe directly into the sandbox as well:
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)