# Sharing environments

**URL:** <https://community.postman.com/t/sharing-environments/27094>\
**Category:** Help Hub\
**Created:** [August 24, 2021, 6:36pm UTC](https://community.postman.com/t/sharing-environments/27094 "2021-08-24T18:36:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hannahbroch](https://avatars.discourse-cdn.com/v4/letter/h/ecae2f/32.png) [@hannahbroch](https://community.postman.com/u/hannahbroch)\
**Post date:** [August 24, 2021, 6:36pm UTC](https://community.postman.com/t/sharing-environments/27094/1 "2021-08-24T18:36:19Z")

</div>

If i share my collection run as a link, how do i share the environment that goes along with it?

---

<div class="post-metadata">

**Author:** ![bpricilla](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/bpricilla/32/6511_2.png) [@bpricilla](https://community.postman.com/u/bpricilla)\
**Post date:** [August 25, 2021, 12:42am UTC](https://community.postman.com/t/sharing-environments/27094/2 "2021-08-25T00:42:36Z")

</div>

@hannahbroch Welcome to the community 🥳

Only the collection variables will be shared along the collection.

To share the environment you need to export and share it as JSON if it is to be used by different user/machine.  
Select the environment in “environment” tab and click the click three dots to the right. And select “Export”

 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/2/29bb078957a49acc9e6b652f14160bd0c4135671.png)

But if you are sharing between workspaces you can directly share the environment.

 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/9/9dce35659675d313e77b4ffa8cd419a9dd6c5836.png)

Hope this helps 😊

---

<div class="post-metadata">

**Author:** ![praveendvd](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/praveendvd/32/6796_2.png) [@praveendvd](https://community.postman.com/u/praveendvd)\
**Post date:** [August 25, 2021, 6:38pm UTC](https://community.postman.com/t/sharing-environments/27094/3 "2021-08-25T18:38:49Z")

</div>

you have to share collection and environment separately as you do with json file

or create a workspace and share it

or the best option is to use postman documentation. It will share both collection and environment but will be available publicly

 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/3/3cc7d85f60642ce9246bc0997653436e262b2700.png)

click view documentation and publish it by selecting the environment . Now your target can export both collection and environment by clicking run in postman 😍

 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/4/435e54aedaf150c9d25499fba8e240a0e4265d16.png)

---

<div class="post-metadata">

**Author:** ![hannahbroch](https://avatars.discourse-cdn.com/v4/letter/h/ecae2f/32.png) [@hannahbroch](https://community.postman.com/u/hannahbroch)\
**Post date:** [August 25, 2021, 7:01pm UTC](https://community.postman.com/t/sharing-environments/27094/4 "2021-08-25T19:01:07Z")

</div>

Hi, thank you. I clicked view documentation and published it after selecting the anvironment but when they tried to run in postman no environment was set?

---

<div class="post-metadata">

**Author:** ![praveendvd](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/praveendvd/32/6796_2.png) [@praveendvd](https://community.postman.com/u/praveendvd)\
**Post date:** [August 25, 2021, 7:03pm UTC](https://community.postman.com/t/sharing-environments/27094/5 "2021-08-25T19:03:41Z")

</div>

it gets imported you have to select from the drop down

---

<div class="post-metadata">

**Author:** ![hannahbroch](https://avatars.discourse-cdn.com/v4/letter/h/ecae2f/32.png) [@hannahbroch](https://community.postman.com/u/hannahbroch)\
**Post date:** [August 25, 2021, 7:21pm UTC](https://community.postman.com/t/sharing-environments/27094/6 "2021-08-25T19:21:09Z")

</div>

amazing, thank you very much
