# flyctl deploy doesn't deploy fly.toml. \[env\] args not showing

**URL:** <https://community.fly.io/t/flyctl-deploy-doesnt-deploy-fly-toml-env-args-not-showing/28006>\
**Category:** General\
**Tags:** machines, flyctl\
**Created:** [June 3, 2026, 3:14pm UTC](https://community.fly.io/t/flyctl-deploy-doesnt-deploy-fly-toml-env-args-not-showing/28006 "2026-06-03T15:14:26Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssull](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@ssull](https://community.fly.io/u/ssull)\
**Post date:** [June 3, 2026, 3:14pm UTC](https://community.fly.io/t/flyctl-deploy-doesnt-deploy-fly-toml-env-args-not-showing/28006/1 "2026-06-03T15:14:26Z")

</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; specifically, it didn’t have any of my env variables. Tried a few different things last night (`flyctl config validate`, rebuilt the config file, tried `flyctl build -c fly.toml`, etc) to no avail.

Was able to get things working again this morning by building my env variables in the command line itself (ex: `flyctl build –env FOO=BAR`). This is fine as a work around, but it still doesn’t use the toml file itself.

Any thoughts? Thanks!

Context:

flyctl version 0.4.57

Screenshot shows my config in the web gui when in the broken state (note: none of my additional env vars present).

My fly.toml file:

```auto
app = 'APPNAME'
primary_region = 'ord'

[build]
  [build.args]
    GO_VERSION = '1.24.2'

[env]
  SYNC_CADENCE = "15m"  
  LOOKBACK = "6h"   
  FILTER = "TEST" 

[http_service]
  internal_port = 8080
  force_https = true
  auto_stop_machines = "off"
  auto_start_machines = true
  min_machines_running = 0
  processes = ['app']

[[vm]]
  memory = '1gb'
  cpu_kind = 'shared'
  cpus = 1

```

 ![Screenshot 2026-06-03 at 10.01.07 AM](https://global.discourse-cdn.com/fly1/original/3X/1/4/14a15c95328f03ca937ea74ba10666e5dc4594c6.png)

---

<div class="post-metadata">

**Author:** ![lubien](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/lubien/32/41919_2.png) [@lubien](https://community.fly.io/u/lubien)\
**Post date:** [June 3, 2026, 3:19pm UTC](https://community.fly.io/t/flyctl-deploy-doesnt-deploy-fly-toml-env-args-not-showing/28006/2 "2026-06-03T15:19:19Z")

</div>

Hey there. Sorry that this happened.

The current state of fly.toml is defined based on the latest release and thats what’s shown in the UI. What might have happened is that something/someone deployed a previous version after your local `fly deploy`.

My suggestion is to look at your Activity page on your app to see what/who deployed when

 ![image](https://global.discourse-cdn.com/fly1/original/3X/2/b/2b6f9e856ce8ed2d1f7712d857ffe5490d667d6a.jpeg)

---

<div class="post-metadata">

**Author:** ![ssull](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@ssull](https://community.fly.io/u/ssull)\
**Post date:** [June 3, 2026, 3:54pm UTC](https://community.fly.io/t/flyctl-deploy-doesnt-deploy-fly-toml-env-args-not-showing/28006/3 "2026-06-03T15:54:04Z")

</div>

This is a personal project, so it’s me all the way down. Here’s a screenshot showing from last known good into yesterday’s failure.

 ![Screenshot 2026-06-03 at 10.52.18 AM](https://global.discourse-cdn.com/fly1/original/3X/c/3/c306a923ee057eadfd42ec4bbfadd5524e8b4c84.png)

---

<div class="post-metadata">

**Author:** ![lubien](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/lubien/32/41919_2.png) [@lubien](https://community.fly.io/u/lubien)\
**Post date:** [June 3, 2026, 4:26pm UTC](https://community.fly.io/t/flyctl-deploy-doesnt-deploy-fly-toml-env-args-not-showing/28006/4 "2026-06-03T16:26:05Z")

</div>

Interesting. Can you mail me lubien at (our domain) with your app name so I can investigate a bit?

---

<div class="post-metadata">

**Author:** ![ssull](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@ssull](https://community.fly.io/u/ssull)\
**Post date:** [June 3, 2026, 4:55pm UTC](https://community.fly.io/t/flyctl-deploy-doesnt-deploy-fly-toml-env-args-not-showing/28006/5 "2026-06-03T16:55:31Z")

</div>

Sent!

---

<div class="post-metadata">

**Author:** ![lubien](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/lubien/32/41919_2.png) [@lubien](https://community.fly.io/u/lubien)\
**Post date:** [June 3, 2026, 5:14pm UTC](https://community.fly.io/t/flyctl-deploy-doesnt-deploy-fly-toml-env-args-not-showing/28006/6 "2026-06-03T17:14:27Z")

</div>

Just got it. It was marked as spam so thanks for replying here too otherwise I might have missed it 😅

---

<div class="post-metadata">

**Author:** ![lubien](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/lubien/32/41919_2.png) [@lubien](https://community.fly.io/u/lubien)\
**Post date:** [June 3, 2026, 5:35pm UTC](https://community.fly.io/t/flyctl-deploy-doesnt-deploy-fly-toml-env-args-not-showing/28006/7 "2026-06-03T17:35:24Z")

</div>

Oh I have more info. Here’s the timeline

- Release v81 had the correct envs even tho it failed
- Release v82 to 84 had only PORT env
- Around `2026-06-02 23:21:48.956716678` there was a UI deployment to deploy secrets but I believe it did not create a release
- Release v85 (create by UI by “deploy secrets”

My advice would be to track down what happened that made your deploys from v82 to v84 not have the envs in your toml. Maybe a git stash? Maybe switching branchs and deploying? CI?

Running `fly deploy` will always look for the config file which is by default `fly.toml` unless you pass `-c path/to/file.toml`.

---

<div class="post-metadata">

**Author:** ![ssull](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@ssull](https://community.fly.io/u/ssull)\
**Post date:** [June 3, 2026, 6:55pm UTC](https://community.fly.io/t/flyctl-deploy-doesnt-deploy-fly-toml-env-args-not-showing/28006/8 "2026-06-03T18:55:09Z")

</div>

Hey,

Nothing could have happened to my file. I use source control (git), but no CI/CD. This is just a small personal project and I do all the deployments manually from my laptop.

Yesterday I updated one env var (the only change made), deployed it, and had my issue. After the issue I destroyed my machines, tried to do the secrets deployment you called out (it failed, due to me not adding a new machine). Once I added a machine back, the secrets deployed, but I had the same issue. I tried redeploying an update yaml in a few different ways (including using `-c path/to/file.toml)` and nothing working until I passed the env vars directly like I showed in my original message.

I retried a deploy this afternoon, and it was successful this time. Not sure what the issue was, but we can go ahead and close this request.

Thank you for helping troubleshoot with me.

---

<div class="post-metadata">

**Author:** ![lubien](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/lubien/32/41919_2.png) [@lubien](https://community.fly.io/u/lubien)\
**Post date:** [June 3, 2026, 7:07pm UTC](https://community.fly.io/t/flyctl-deploy-doesnt-deploy-fly-toml-env-args-not-showing/28006/9 "2026-06-03T19:07:56Z")

</div>

Before we close I think there’s interesting info here:

> After the issue I destroyed my machines, tried to do the secrets deployment you called out (it failed, due to me not adding a new machine)

If, somehow, the fly.toml was not there I recall flyctl try to create one from machines but as there were no machines flyctl might have created a blank one without envs.

* * *

But I agree, we can close this one if thats okay

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/fly1/original/3X/6/e/6e8955d00cb218e186ebbe3a6ab06fefdce15290.svg) [@system](https://community.fly.io/u/system)\
**Post date:** [June 10, 2026, 7:08pm UTC](https://community.fly.io/t/flyctl-deploy-doesnt-deploy-fly-toml-env-args-not-showing/28006/10 "2026-06-10T19:08:20Z")

</div>

Closed on June 10, 2026, 7:08pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
