CLI error: Not a true config file.
AnsweredI am on step 5 of installing the CLI, https://developer.box.com/docs/installation-and-setup, and I get an error when I run the following command:
box configure environments add ~/Downloads/config.json --name CLI
The error is "Not a true config file" but I am using the generated file, which in my case is called 7645002_lu0bc0c2_config. The file looks good to me with the appAuth detaild filled in with very long GUIDs.
-
Is the "Not a true config file" the only error output you received? Looking at the CLI code that processes the config file, it should give more context around why the config file was rejected. For example, this is what I see when I try to add a config file that doesn't exist:
15:09 $ box configure environments add ~/Downloads/config.json --name CLI Adding new environment Looking for file at this path /Users/mwiller/Downloads/config.json Couldn't open config file at this path: /Users/mwiller/Downloads/config.json Not a true config file. Couldn't add this environment.
-
The config file generated by Box is named something like 7961026_fujjycxb_config and I tried renaming it to config to match the exact command in the docs but still no luck. I ran from my command prompt where it opens at C:\Users\myname and from C:\Users\myname\Downloads where the file is but it won't work. I did all the steps quite a few times and regenerated the file again and again.
-
Okay, so let's try a complete step-by-step breakdown and see if that works:
- Ensure that your generated config file is located at C:\Users\yourname\Downloads\config.json
- Run the CLI command to add the config: box environments add C:\Users\yourname\Downloads\config.json
If that doesn't work, could you copy/paste the full error output here so we can debug further?
-
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.
C:\Users\myname>cd Downloads
C:\Users\myname\Downloads>box configure environments add config.json --name CLI
Adding new environment
Looking for file at this path \C:Users\myname\Downloads\config.json
Couldn't open config file at this path: \C:Users\myname\Downloads\config.json
Not a true config file.
Couldn't add this environment.
C:\Users\myname\Downloads>
Post is closed for comments.
Comments
12 comments