# \#flyctl

**URL:** https://community.fly.io/tag/flyctl/44.md

[Latest](https://community.fly.io/latest.md) · [Categories](https://community.fly.io/categories.md) · [Tags](https://community.fly.io/tags.md)

---

## [You can now run SQL on Managed Postgres in one command](https://community.fly.io/t/you-can-now-run-sql-on-managed-postgres-in-one-command/29125)

<div class="topic-metadata">

**Author:** [@tripledoublev](https://community.fly.io/u/tripledoublev)\
**Replies:** 3\
**Last updated:** [November 23, 2026, 4:42am UTC](https://community.fly.io/t/you-can-now-run-sql-on-managed-postgres-in-one-command/29125 "2026-11-23T04:42:49Z")

</div>

Give fly mpg connect a statement or a file, and it will run it and exit when it’s done. Until now, fly mpg connect only opened an interactive psql session. To run a query from a script or your agent, you had to start fl…

---

## [Is there a debug or verbose option for Fly CLI errors?](https://community.fly.io/t/is-there-a-debug-or-verbose-option-for-fly-cli-errors/29121)

<div class="topic-metadata">

**Author:** [@MikeM](https://community.fly.io/u/MikeM)\
**Replies:** 2\
**Last updated:** [November 19, 2026, 5:17am UTC](https://community.fly.io/t/is-there-a-debug-or-verbose-option-for-fly-cli-errors/29121 "2026-11-19T05:17:29Z")

</div>

Hi everyone, I’m fairly new to Fly.io and I’m having trouble with the fly secrets import --stage command. Every time I try to stage my application secrets, the command exits with code 1. Is there a debug or verbose op…

---

## [A mistyped fly subcommand now fails clearly instead of printing help](https://community.fly.io/t/a-mistyped-fly-subcommand-now-fails-clearly-instead-of-printing-help/29117)

<div class="topic-metadata">

**Author:** [@tripledoublev](https://community.fly.io/u/tripledoublev)\
**Replies:** 0\
**Last updated:** [November 18, 2026, 8:39pm UTC](https://community.fly.io/t/a-mistyped-fly-subcommand-now-fails-clearly-instead-of-printing-help/29117 "2026-11-18T20:39:40Z")

</div>

You might not like to see errors in your command output, but agents need them to correct their course and succeed. Non-existent subcommands now return an error, just like non-existent commands already did. The error sugg…

---

## [Ephemeral secrets deployment](https://community.fly.io/t/ephemeral-secrets-deployment/28739)

<div class="topic-metadata">

**Author:** [@fungs](https://community.fly.io/u/fungs)\
**Replies:** 4\
**Last updated:** [October 13, 2026, 12:03pm UTC](https://community.fly.io/t/ephemeral-secrets-deployment/28739 "2026-10-13T12:03:59Z")

</div>

When deploying secrets from a third-party secret store to fly.io using fly secrets import, old or renamed secrets remain. Is there any recommended and simple way to clear all secrets before deploying new ones? A simple f…

---

## [Rotate MPG user passwords from flyctl](https://community.fly.io/t/rotate-mpg-user-passwords-from-flyctl/28769)

<div class="topic-metadata">

**Author:** [@tripledoublev](https://community.fly.io/u/tripledoublev)\
**Replies:** 0\
**Last updated:** [October 7, 2026, 7:55pm UTC](https://community.fly.io/t/rotate-mpg-user-passwords-from-flyctl/28769 "2026-10-07T19:55:31Z")

</div>

Managed Postgres password rotation has been available in the dashboard and Machines API for a while. As of flyctl v0.4.113, you can do it from the CLI too: fly mpg users rotate-password \<CLUSTER\_ID\> --username \<USER\> T…

---

## [Fly secrets deploy does not work](https://community.fly.io/t/fly-secrets-deploy-does-not-work/28758)

<div class="topic-metadata">

**Author:** [@tofran](https://community.fly.io/u/tofran)\
**Replies:** 5\
**Last updated:** [October 6, 2026, 2:17pm UTC](https://community.fly.io/t/fly-secrets-deploy-does-not-work/28758 "2026-10-06T14:17:50Z")

</div>

I have created an issue back in march, but since it is closed without being fixed, I am creating a new topic. we are really tired of making workarounds to be able to update fly secrets. I am sending a video of the behav…

---

## [\`fly auth logout\` is now less likely to bite you](https://community.fly.io/t/fly-auth-logout-is-now-less-likely-to-bite-you/28684)

<div class="topic-metadata">

**Author:** [@nullhypothesis](https://community.fly.io/u/nullhypothesis)\
**Replies:** 0\
**Last updated:** [September 22, 2026, 9:52pm UTC](https://community.fly.io/t/fly-auth-logout-is-now-less-likely-to-bite-you/28684 "2026-09-22T21:52:39Z")

</div>

fly auth logout behaves weirdly. In general, it revokes and deletes the locally stored tokens created by fly auth login. But if you have FLY\_API\_TOKEN or FLY\_ACCESS\_TOKEN set, it revokes those instead—and ignores the sto…

---

## [WireGuard tunnel fails behind corporate TLS inspection (101 expected, got 200), network team confirms the URL itself isn't blocked](https://community.fly.io/t/wireguard-tunnel-fails-behind-corporate-tls-inspection-101-expected-got-200-network-team-confirms-the-url-itself-isnt-blocked/28576)

<div class="topic-metadata">

**Author:** [@melogna](https://community.fly.io/u/melogna)\
**Replies:** 1\
**Last updated:** [August 31, 2026, 5:37pm UTC](https://community.fly.io/t/wireguard-tunnel-fails-behind-corporate-tls-inspection-101-expected-got-200-network-team-confirms-the-url-itself-isnt-blocked/28576 "2026-08-31T17:37:19Z")

</div>

I’m trying to get flyctl postgres connect / flyctl ssh console working from a machine on a corporate network that does TLS inspection, and the WireGuard tunnel won’t establish. The confusing part: our network/security t…

---

## [Tweaks and improvements for PaaS deployments in UI and CLI!](https://community.fly.io/t/tweaks-and-improvements-for-paas-deployments-in-ui-and-cli/28468)

<div class="topic-metadata">

**Author:** [@lubien](https://community.fly.io/u/lubien)\
**Replies:** 0\
**Last updated:** [August 11, 2026, 10:30am UTC](https://community.fly.io/t/tweaks-and-improvements-for-paas-deployments-in-ui-and-cli/28468 "2026-08-11T10:30:21Z")

</div>

Happy to start my day with news from a few things we shipped earlier this week. Worked alongside @dangra to get these shipped to y’all! Now scale operations from UI have a dedicated activity on the list so you ca…

---

## [fly mpg restore now supports naming and point-in-time restore](https://community.fly.io/t/fly-mpg-restore-now-supports-naming-and-point-in-time-restore/28464)

<div class="topic-metadata">

**Author:** [@tripledoublev](https://community.fly.io/u/tripledoublev)\
**Replies:** 0\
**Last updated:** [August 10, 2026, 10:46pm UTC](https://community.fly.io/t/fly-mpg-restore-now-supports-naming-and-point-in-time-restore/28464 "2026-08-10T22:46:57Z")

</div>

Here are a couple of things you could already do from the dashboard that are now available in fly mpg restore as of flyctl v0.4.80: restoring to a specific point in time instead of a backup ID naming your restored clus…

---

## [fly pg create --fork-from doesn't work? Field 'node' doesn't exist on type 'Queries'](https://community.fly.io/t/fly-pg-create-fork-from-doesnt-work-field-node-doesnt-exist-on-type-queries/28397)

<div class="topic-metadata">

**Author:** [@JonasCz](https://community.fly.io/u/JonasCz)\
**Replies:** 2\
**Last updated:** [August 10, 2026, 6:52pm UTC](https://community.fly.io/t/fly-pg-create-fork-from-doesnt-work-field-node-doesnt-exist-on-type-queries/28397 "2026-08-10T18:52:31Z")

</div>

When I run fly pg create --name new-db-app-name --fork-from old-db-app-name --verbose --region iad I get Error: failed to run query($id: ID!) { volume: node(id: $id) { ... on Volume { app { name } } } }: Field 'node' d…

---

## [Error: unknown command "init" for "flyctl.exe"](https://community.fly.io/t/error-unknown-command-init-for-flyctl-exe/28442)

<div class="topic-metadata">

**Author:** [@Ooker](https://community.fly.io/u/Ooker)\
**Replies:** 3\
**Last updated:** [August 7, 2026, 7:51pm UTC](https://community.fly.io/t/error-unknown-command-init-for-flyctl-exe/28442 "2026-08-07T19:51:52Z")

</div>

flyctl init Error: unknown command "init" for "flyctl.exe" Run 'flyctl.exe --help' for usage. It seems that the command is replaced with launch. But why don’t you make it an alias to it? Or at least suggest which is it …

---

## [Invalidate current sessions](https://community.fly.io/t/invalidate-current-sessions/28193)

<div class="topic-metadata">

**Author:** [@Gyorn](https://community.fly.io/u/Gyorn)\
**Replies:** 6\
**Last updated:** [July 1, 2026, 12:14pm UTC](https://community.fly.io/t/invalidate-current-sessions/28193 "2026-07-01T12:14:26Z")

</div>

Hello, I can’t find options for log out existing devices/sessions. I updated my password but i noticed existing sessions (ex: fly CLI) are still working. Is there a way to kill all active session ? Greetings

---

## [Feature Request: Warn (or require an override) when the Docker build context is unexpectedly large](https://community.fly.io/t/feature-request-warn-or-require-an-override-when-the-docker-build-context-is-unexpectedly-large/28163)

<div class="topic-metadata">

**Author:** [@robgough](https://community.fly.io/u/robgough)\
**Replies:** 6\
**Last updated:** [June 25, 2026, 11:58pm UTC](https://community.fly.io/t/feature-request-warn-or-require-an-override-when-the-docker-build-context-is-unexpectedly-large/28163 "2026-06-25T23:58:20Z")

</div>

Hey all, I’ve just had an issue where I was struggling to deploy, and tbh I’d put this down to some sort of issue with the builders. After eventually looking at what the deploy was actually doing, I noticed it was trans…

---

## [\`fly ssh\` fails with error: "tunnel unavailable" ... "timed out"](https://community.fly.io/t/fly-ssh-fails-with-error-tunnel-unavailable-timed-out/28154)

<div class="topic-metadata">

**Author:** [@mtremsal](https://community.fly.io/u/mtremsal)\
**Replies:** 2\
**Last updated:** [June 25, 2026, 12:52am UTC](https://community.fly.io/t/fly-ssh-fails-with-error-tunnel-unavailable-timed-out/28154 "2026-06-25T00:52:32Z")

</div>

user@Mac-001 ~/1/myapp (main) \[1\]\> fly ssh console -a myapp Connecting to tunnel 🌏Error: tunnel unavailable: Error contacting Fly.io API when probing "personal": timed out (context deadline exceeded) All SSH sessions fo…

---

## [\`fly ext arcjet create\` errors out](https://community.fly.io/t/fly-ext-arcjet-create-errors-out/28054)

<div class="topic-metadata">

**Author:** [@timothym](https://community.fly.io/u/timothym)\
**Replies:** 1\
**Last updated:** [June 9, 2026, 10:51pm UTC](https://community.fly.io/t/fly-ext-arcjet-create-errors-out/28054 "2026-06-09T22:51:55Z")

</div>

I’m using the directions documented here: Application Security by Arcjet · Fly Docs to get setup with Arcjet. Running fly ext arcjet create results in this error: Error: input:3:2: createAddOn Unknown extension provide…

---

## [Regional capacity in Machines API and flyctl](https://community.fly.io/t/regional-capacity-in-machines-api-and-flyctl/24843)

<div class="topic-metadata">

**Author:** [@wjordan](https://community.fly.io/u/wjordan)\
**Replies:** 5\
**Last updated:** [June 8, 2026, 5:20pm UTC](https://community.fly.io/t/regional-capacity-in-machines-api-and-flyctl/24843 "2026-06-08T17:20:27Z")

</div>

We’ve just released a new feature in the Machines API and flyctl to display real-time capacity information for each region. We hope this will be useful to help troubleshoot and track capacity-related issues you might enc…

---

## [flyctl deploy doesn't deploy fly.toml. \[env\] args not showing](https://community.fly.io/t/flyctl-deploy-doesnt-deploy-fly-toml-env-args-not-showing/28006)

<div class="topic-metadata">

**Author:** [@ssull](https://community.fly.io/u/ssull)\
**Replies:** 8\
**Last updated:** [June 3, 2026, 7:07pm UTC](https://community.fly.io/t/flyctl-deploy-doesnt-deploy-fly-toml-env-args-not-showing/28006 "2026-06-03T19:07:56Z")

</div>

Last night I updated my fly.toml to edit a env variable and did a flyctl deploy. Once deployed, my machines crashed and I noticed the fly configuration in the web GUI didn’t match what was supposed to be deployed; specif…

---

## [flyctl secrets list keeps showing all secrets as Staged despite deploys](https://community.fly.io/t/flyctl-secrets-list-keeps-showing-all-secrets-as-staged-despite-deploys/27871)

<div class="topic-metadata">

**Author:** [@giulio-paradigma](https://community.fly.io/u/giulio-paradigma)\
**Replies:** 4\
**Last updated:** [May 21, 2026, 7:38am UTC](https://community.fly.io/t/flyctl-secrets-list-keeps-showing-all-secrets-as-staged-despite-deploys/27871 "2026-05-21T07:38:01Z")

</div>

Hi, I am seeing a weird secrets status issue on a Fly Machines app where the runtime environment looks correct, but flyctl secrets list keeps reporting every secret as Staged. Environment: Fly Machines app flyctl v…

---

## [\`flyctl\` app deploy/scaling totally broken - leaving apps in mixed state](https://community.fly.io/t/flyctl-app-deploy-scaling-totally-broken-leaving-apps-in-mixed-state/27738)

<div class="topic-metadata">

**Author:** [@alex-era](https://community.fly.io/u/alex-era)\
**Replies:** 11\
**Last updated:** [May 7, 2026, 6:07am UTC](https://community.fly.io/t/flyctl-app-deploy-scaling-totally-broken-leaving-apps-in-mixed-state/27738 "2026-05-07T06:07:00Z")

</div>

We’re having instances where using flyctl to deploy is leaving apps in a mixed version deployment because flyctl seems unaware of existing machines in the app, makes new ones, leaves old ones running. We’re having to man…

---

## [CLI unauthorized on all commands despite successful fly auth login](https://community.fly.io/t/cli-unauthorized-on-all-commands-despite-successful-fly-auth-login/27775)

<div class="topic-metadata">

**Author:** [@phschultz](https://community.fly.io/u/phschultz)\
**Replies:** 4\
**Last updated:** [May 6, 2026, 2:15pm UTC](https://community.fly.io/t/cli-unauthorized-on-all-commands-despite-successful-fly-auth-login/27775 "2026-05-06T14:15:46Z")

</div>

CLI unauthorized on all commands despite successful fly auth login Hi all — running into a strange auth issue and hoping someone has seen this before. Setup: macOS, flyctl 0.4.29 App: pauls-crm (personal org) Free pl…

---

## [Latest flyctl getting OOM killed on a 1GB VM](https://community.fly.io/t/latest-flyctl-getting-oom-killed-on-a-1gb-vm/27687)

<div class="topic-metadata">

**Author:** [@raylee](https://community.fly.io/u/raylee)\
**Replies:** 3\
**Last updated:** [April 26, 2026, 5:43pm UTC](https://community.fly.io/t/latest-flyctl-getting-oom-killed-on-a-1gb-vm/27687 "2026-04-26T17:43:53Z")

</div>

I have a 1GB VM I run flyctl on, and it has ~600MB free RAM. The latest version of flyctl is getting OOM killed when I try running it, using a simple flyctl auth whoami. flyctl v0.4.38 linux/amd64 Commit: 73dcb17d4b8e68…

---

## [Protect flag for accidental app deletion](https://community.fly.io/t/protect-flag-for-accidental-app-deletion/27619)

<div class="topic-metadata">

**Author:** [@eventinc-gmbh](https://community.fly.io/u/eventinc-gmbh)\
**Replies:** 0\
**Last updated:** [April 16, 2026, 4:11pm UTC](https://community.fly.io/t/protect-flag-for-accidental-app-deletion/27619 "2026-04-16T16:11:01Z")

</div>

Similar to this topic, it’d be nice if we could have enable-protection feature to prevent app deletion by mistake. token authorization is not enough.

---

## [fly agent fails to start - broken pipe](https://community.fly.io/t/fly-agent-fails-to-start-broken-pipe/27536)

<div class="topic-metadata">

**Author:** [@alej-alborno](https://community.fly.io/u/alej-alborno)\
**Replies:** 0\
**Last updated:** [April 8, 2026, 9:04am UTC](https://community.fly.io/t/fly-agent-fails-to-start-broken-pipe/27536 "2026-04-08T09:04:23Z")

</div>

Hi! Recently I have been unable to start the fly agent via fly agent start, I made sure there are no other living fly processes before trying. It always returns the same output (save for the date and time) in the log fil…

---

## [fly auth with multiple orgs forcing SSO for wrong account](https://community.fly.io/t/fly-auth-with-multiple-orgs-forcing-sso-for-wrong-account/27454)

<div class="topic-metadata">

**Author:** [@coladarci](https://community.fly.io/u/coladarci)\
**Replies:** 1\
**Last updated:** [March 26, 2026, 6:54pm UTC](https://community.fly.io/t/fly-auth-with-multiple-orgs-forcing-sso-for-wrong-account/27454 "2026-03-26T18:54:43Z")

</div>

When I run fly auth whoami I correctly see my personal email address as I’m working on a personal project. But whenever I run fly commands that need auth, it opens up a fly io screen saying Incoming authentication req…

---

## [Can't connect to Rails console through Fly.io](https://community.fly.io/t/cant-connect-to-rails-console-through-fly-io/27305)

<div class="topic-metadata">

**Author:** [@glyonbossay](https://community.fly.io/u/glyonbossay)\
**Replies:** 10\
**Last updated:** [March 7, 2026, 8:46pm UTC](https://community.fly.io/t/cant-connect-to-rails-console-through-fly-io/27305 "2026-03-07T20:46:16Z")

</div>

bin/rails fly:console fly ssh console --pty -C “/rails/bin/rails console” --app lokal-production Error: ssh: can’t build tunnel for lokal: websocket: failed to WebSocket dial: failed to send handshake request: Get “htt…

---

## [\`--disable-prodpack\` flag is missing from \`fly redis create\`](https://community.fly.io/t/disable-prodpack-flag-is-missing-from-fly-redis-create/27170)

<div class="topic-metadata">

**Author:** [@kons](https://community.fly.io/u/kons)\
**Replies:** 1\
**Last updated:** [February 19, 2026, 7:56pm UTC](https://community.fly.io/t/disable-prodpack-flag-is-missing-from-fly-redis-create/27170 "2026-02-19T19:56:33Z")

</div>

Hey folks, I’m running fly redis create in a GitHub Actions pipeline and hit an issue with the ProdPack prompt. The command fails in non-interactive environments with: ProdPack adds enhanced features for production wor…

---

## [Fly launch tells me to use .flycast, but only works on .internal](https://community.fly.io/t/fly-launch-tells-me-to-use-flycast-but-only-works-on-internal/26993)

<div class="topic-metadata">

**Author:** [@dewjer](https://community.fly.io/u/dewjer)\
**Replies:** 1\
**Last updated:** [January 29, 2026, 7:33pm UTC](https://community.fly.io/t/fly-launch-tells-me-to-use-flycast-but-only-works-on-internal/26993 "2026-01-29T19:33:40Z")

</div>

I am trying to start a Postgres image as a fly app on the private network, but going through fly’s proxy. I was hoping to get the benefit of ‘auto stop’ this way, but despite fly launch telling me: \`Your your newly dep…

---

## [\`fly auth docker\` fixed flyctl deployment](https://community.fly.io/t/fly-auth-docker-fixed-flyctl-deployment/26977)

<div class="topic-metadata">

**Author:** [@mostafatouny](https://community.fly.io/u/mostafatouny)\
**Replies:** 0\
**Last updated:** [January 27, 2026, 8:08pm UTC](https://community.fly.io/t/fly-auth-docker-fixed-flyctl-deployment/26977 "2026-01-27T20:08:44Z")

</div>

Hello, I attempted to deploy by fly deploy but got Registry 401 auth error, blocking the deployment. I did two things: major update to flyctl from 0.3.x to 0.4.6 — I haven’t used that machine for a while. fly auth doc…

---

## [Clarification on machine configuration persistence (CPU, autostop, regions vs fly.toml)](https://community.fly.io/t/clarification-on-machine-configuration-persistence-cpu-autostop-regions-vs-fly-toml/26955)

<div class="topic-metadata">

**Author:** [@venkatashiva1089](https://community.fly.io/u/venkatashiva1089)\
**Replies:** 1\
**Last updated:** [January 25, 2026, 9:23am UTC](https://community.fly.io/t/clarification-on-machine-configuration-persistence-cpu-autostop-regions-vs-fly-toml/26955 "2026-01-25T09:23:27Z")

</div>

Hi Fly Team, I need clarification on how Machine configuration interacts with fly.toml during deployments. Here is my scenario: I initially deployed my app it has cpus = 1 and auto\_stop\_machines = “stop” in fly.toml…

[Next page](https://community.fly.io/tag/flyctl/44.md?match_all_tags=true&page=1&tags%5B%5D=flyctl)
