Skip to main content
Question

Box CLI save to file path command not working for me

  • May 22, 2025
  • 3 replies
  • 40 views

Forum|alt.badge.img

Hi party people, has anyone gotten the "--save-to-file-path" option working when using Box CLI? 

 

I'm trying to generate some reports and save them to a specific folder instead of the default. I'm working with the "box folders list-items" command. Specifically, "box folders list-items 0 --as-user ***number removed for privacy***1 --save-to-file-path C:\exceloutput".  However, when I run the command, all it does is output JSON in the command window. Nothing gets written to a file. 

 

FYI, I am successful using the "--save" command. i.e "box folders list-items 0 --as-user ***number removed for privacy***1 --save", which saves the excel outputs to my default Box CLI reports folder. 

 

Any help will be appreciated!

3 replies

Forum|alt.badge.img

 You may need to pass both the `--save` and --save-to-file-path` flags, for example:

 

box folders list-items 0 --as-user  --save --save-to-file-path C:\exceloutput

Forum|alt.badge.img

Sigh, that was it. 

 

Thanks so much. 


Forum|alt.badge.img

 No worries!  In the next version of the CLI, `--save` will not be required if `--save-to-file-path` is passed