diff --git a/docs/guides/scripts.md b/docs/guides/scripts.md index df3df074edcc..1c931880163a 100644 --- a/docs/guides/scripts.md +++ b/docs/guides/scripts.md @@ -57,6 +57,12 @@ hello world! Additionally, your script can be read directly from stdin: +```console +$ echo 'print("hello world!")' | uv run - +``` + +Or, if your shell supports [here-documents](https://en.wikipedia.org/wiki/Here_document): + ```bash uv run - <