From a8d345cc881e5250f0b16bdd056431445cb9ebad Mon Sep 17 00:00:00 2001 From: Kristin Martin Date: Tue, 24 Feb 2026 19:27:34 +0000 Subject: [PATCH] Fix secrets import command for Windows compatibility Replace `fly secrets import < .dotenv` with `cat .dotenv | fly secrets import` to avoid PowerShell error where `<` operator is reserved for future use. Closes #2350 --- js/the-basics/secrets.html.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/the-basics/secrets.html.md b/js/the-basics/secrets.html.md index 6fe130d26c..4433d352d9 100644 --- a/js/the-basics/secrets.html.md +++ b/js/the-basics/secrets.html.md @@ -20,7 +20,7 @@ fly secrets set SECRET_KEY=YOURSECRETKEYGOESHERE Or you can import your dotenv file wholesale using [fly secrets import](https://fly.io/docs/flyctl/secrets-import/): ``` -fly secrets import < .dotenv +cat .dotenv | fly secrets import ``` Both commands will restart your application if it has previously been deployed. Pass the `--stage` option if you would rather deploy these changes later.