BoxCLI "Could not read environment config file"

SOLVED
Go to solution
Highlighted
New Contributor

BoxCLI "Could not read environment config file"

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.

 

Tags (2)
2 REPLIES 2
Highlighted
Box Employee

Re: BoxCLI "Could not read environment config file"

I dont think this needs the square brackets. 

 

 

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


---
Developer Advocate @ Box
Highlighted
New Contributor

Re: BoxCLI "Could not read environment config file"

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 <emailaddess> etc. etc.

 

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