Skip to content

Make file versioning the default behavior for Box CLI "box files:upload" command #575

Open

Description

@bobregon

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:

  1. If the file does not exist in the box folder, then create the file

  2. 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.

Activity

  1. arjankowski commented on May 7, 2025

    @arjankowski
    Contributor

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions