Level up your Box knowledge with brand new learning paths on Box University. Visit training.box.com to get started

Box CLI Search based only on metadata

Nouvelle publication

Commentaires

1 commentaire

  • 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
    Actions pour les commentaires Permalien

Vous devez vous connecter pour laisser un commentaire.