How can I manage environments?

I like how railway.app manages the env vars
Locally I can do railway link (links to project I have on the platform)
Then railway run yarn dev (pulls env variables of that project and starts dev server locally)
Is there something similar with fly.io?
Can I clone the entire environment and deploy a copy on fly.io?

As far as I am aware, not really no… Unless the project can be amply represented in a single Dockerfile and doesn’t have a need for features specific to Fly (ie 6pn, consul, metrics, redis v1 / v2 etc).

imo, Railway has been going upwards the abstraction ladder whilst Fly seems to be moving in the opposite direction.