Skip to main content
New Participant
Oct 30, 2023 2:33 AM UTC
Solved

Box CLI - Download to a specific path?

Hello,
I am using Box CLI Box folders:download in GitHub Actions, and I want to download it to a specific path. When I trigger action, it downloads it to C:\Users\Administrator\Downloads\Box-Downloads

I can’t believe this is not already thought off - maybe I am missing something but I couldn’t find the flag for this in https://github.com/box/boxcli/blob/main/docs/folders.md#box-foldersdownload-id

thank you
~Laith

How to achieve this?

    LaithDAnswer
    New Participant
    Oct 31, 2023 4:26 PM UTC

    I figured it out… --destination=.
    It was right there in front of me… haha 😃

    4 replies

    LaithDAuthorAnswer
    New Participant
    Oct 31, 2023 4:26 PM UTC

    I figured it out… --destination=.
    It was right there in front of me… haha 😃

    Translate
    rbarbosa Box
    Developer Advocate
    Oct 31, 2023 4:29 PM UTC

    Hi there @LaithD

    incorrect answer removed by author
    

    I’ll marks your post as answer

    Cheers

    Translate
    LaithDAuthor
    New Participant
    Oct 31, 2023 4:58 PM UTC

    My use is to download a folder with subfolders. I didn’t try the --save-to-file-path=save-to-file-path as it is related to “report” - wasn’t sure if reports is meant to be the status of the transaction.

    Box offers great feature(s) but I do find it difficult to understand your documentation(s) often vague in meaning.

    Translate
    rbarbosa Box
    Developer Advocate
    Oct 31, 2023 5:23 PM UTC

    Hi @LaithD ,

    And neither did I apparently 🙂 , nor I saw your reply in the mean time.

    I’m going to remove my answer since it is incorrect.

    I agree with you Laith, and it is this type of much appreciated feedback, that allows us to improve.

    So thank you for your inputs, keep them coming.

    Cheers

    Translate