Skip to main content
Question

BoxCLI "Could not read environment config file"

  • May 22, 2025
  • 2 replies
  • 47 views

Forum|alt.badge.img

Using the "Install Box CLI" page here, I have gone through the process of creating a custom app using Oauth JWT, downloading the config JSON.

 

I am now trying to use the command

box configure:environments:add [C:\BoxCLI\ConfigFile.json]

but I am getting the response back

Could not read environment config file [C:\BoxCLI\ConfigFile.json]

 

I have obviously missed something, but going back through I am not seeing anything. I have confirmed permissions on the directory and run cmd as an admin just to be certain, with no luck. Running a search for the exact phrase "Could not read environment config file" did not turn up anything via Google, GitHub, or here, so whatever mistake I've made is probably going to be embarrassing and simple.

 

Thank you for your time.

 

2 replies

Forum|alt.badge.img

I dont think this needs the square brackets. 

 

 

box configure:environments:add C:\BoxCLI\ConfigFile.json


Forum|alt.badge.img

That did it. It didn't even occur to me to remove the brackets, even though every other CLI I use has a similar piece in their documentation. i.e. gam user etc. etc.

 

I blame it on my caffeine not kicking in yet. Thank you!