Welcome to the new Box Support website. Check out all the details here on what’s changed.

Box CLI Search based only on metadata

New post

Comments

1 comment

  • mwiller

     Unfortunately, it is not possible to search for ALL files based on their update date; a search query must be provided, per the API documentation.  One way to get all files in a specific folder updated after a certain date would be to list al the files in that folder and filter to just the ones with a modified_at value greater than the date.  You could use the jq tool (or something similar) to manipulate the JSON the CLI returns to accomplish this, doing something like this:

     

    box folders:items 0 --fields name,modified_at --json | jq '.[] | select(.modified_at >= "2019-01-01T00:00:00-08:00")'

     

     

    0
    Comment actions Permalink

Please sign in to leave a comment.