You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make file versioning the default behavior for Box CLI "box files:upload" command #575
if file versioning is the default behavior when uploading files in the URL Box web page; Why isn't that exactly the same behavior when uploading files thru the "box files:upload /path-to-file/filename.ext --parent-id FolderID" box CLI command?
The logic is straight forward:
If the file does not exist in the box folder, then create the file
If the file DOES exist in the box folder, then instead of displaying that horrible warning message "409 Conflict, the file already exists", please update the content of the file and increase the FILE version number.
Normally in the CLI, we wrap the public API into CLI commands so that users can call any API they want without worrying that the call will do something it shouldn't from the user's perspective.
In this case, there's a risk that the user could unintentionally overwrite the file version.
Activity
arjankowski commentedon May 7, 2025
Hi @bobregon, thanks for your suggestions!
Normally in the CLI, we wrap the public API into CLI commands so that users can call any API they want without worrying that the call will do something it shouldn't from the user's perspective.
In this case, there's a risk that the user could unintentionally overwrite the file version.
We'll discuss this idea with the whole team.
Regards,
Artur