Can I export my collection so it swaps variables to values in a particular environment?

I have multiple environments (Local, Dev, Prod) with environment variables (e.g., url) and I have a collection of endpoints that uses those variables - Can I export my collection in such a way that the variables will be substituted with the values from a selected environment (.e.g, Prod)? Currently the export produces endpoints with the variables (i.e., {{url}}) and not with the values…

Doesn’t anyone know if this is possible?

If I needed to do that task I would go about it in this way:

  1. Make a copy of the collection that you wish to export
  2. Use “FInd” to search for “{{url}}” (in the desktop app it’s cmd + f but idk how to do it in the web app)
  3. At the bottom of the “Find” dialogue there is the “Replace” feature with checkboxes that allow you to isolate the changes to just your new copy of the collection. Use that to replace {{url}} with https://youractualurl.com
  4. Export the collection
  5. Repeat steps 4 and 5 except use find and replace to change:
    https://your-actual-url.com
    to
    https://your-actual-url/but-dev-this-time.com

I can also export it and use a text editor to search & replace but this is cumbersome (Collection can be changed so each time I’ll need to do it?). I would expect this basic functionally be part of the product… But thanks for trying to help :grinning: