Environment
OS: Macos 26
Browser: N/A
Node.js version: v22.21.0
Package manager: bun 1.2.18
Version
v4.1.7
Reproduction
Create monorepo,
add 1 app with shelve.json and env varaibles in shelve.
add 1 shelve.json at the root with team slug.
try shelve pull
Description
I have a monorepo using turborepo.
I don't have any root level .env file or env variables to put in the root.
I have one .env file in my /apps/web folder
I want to be able to run bunx shelve pull from the root of my monorepo and have the .env file in my /apps/web folder update to the selected env. (the docs says this should work but it does not).
I have two shelve.json files
one shelve.json in the root with just my team slug.
one shelve.json in my /apps/web project with the project and defaultEnvironment.
When I run bunx shelve pull I get this response:
┌ Pulling variable from monorepo-test project
│
◇ Fetching 'monorepo-test' project
│
◇ Fetching environments
│
◇ Select the environment:
│ Development
│
◇ Fetching variables
│
▲ No variables found in the specified environment
│
└ Successfully pulled variable from development environment
It tries to pull environment variables from "monorepo-test", but this is the root of my monorepo, not the web app. Since the root of the monorepo has no environment variables it says no variables was found (expected).
It auto created this project that I don't want/need in shelve, which is fine I guess.
But the problem is that it never tried to pull the web project in the monorepo where I actually do have environment variables to pull.
Additional context
No response
Logs
Environment
OS: Macos 26
Browser: N/A
Node.js version: v22.21.0
Package manager: bun 1.2.18
Version
v4.1.7
Reproduction
Create monorepo,
add 1 app with shelve.json and env varaibles in shelve.
add 1 shelve.json at the root with team slug.
try
shelve pullDescription
I have a monorepo using turborepo.
I don't have any root level .env file or env variables to put in the root.
I have one .env file in my /apps/web folder
I want to be able to run
bunx shelve pullfrom the root of my monorepo and have the .env file in my /apps/web folder update to the selected env. (the docs says this should work but it does not).I have two shelve.json files
one shelve.json in the root with just my team slug.
one shelve.json in my /apps/web project with the project and defaultEnvironment.
When I run
bunx shelve pullI get this response:It tries to pull environment variables from "monorepo-test", but this is the root of my monorepo, not the web app. Since the root of the monorepo has no environment variables it says no variables was found (expected).
It auto created this project that I don't want/need in shelve, which is fine I guess.
But the problem is that it never tried to pull the web project in the monorepo where I actually do have environment variables to pull.
Additional context
No response
Logs