Skip to main content
Question

Box CLI CSV Format for files:versions:promote

  • May 22, 2025
  • 3 replies
  • 9 views

Forum|alt.badge.img

What is the correct format for a CSV file for use promoting a version to current?

I've tried the obvious, in a CSV file ([promote_v4.csv) with only the following:

11111,55555
11114,44445

Individual commands work as expected e.g.

These work:
box files:versions:promote 11111 55555
box files:versions:promote 11114 44445

But using the following command doesn't work:

Doesn't work:
box files:versions:promote
--bulk-file-path=/Users/matt/Desktop/promote_v4.csv

What's missing?

 

3 replies

Forum|alt.badge.img

Hey Matthew - Can you share what the format of your .csv looks like? Are you using two columns with header names? Do you receive an error you can share? 


Forum|alt.badge.img

That’s what I need to know - I can’t find any documentation on how the CSV should be formatted, so I’m guessing.


Forum|alt.badge.img

Apologies for the long delay! I was successful by creating the CSV with two columns. In the first row I put my headers: FILEID and FILEVERSIONID. And then in the second row the value for each. 

 

BOX__izsakmFBZkpThmGho8zaOw.png