Box CLI Commands Options (Fields and Extra Fields)

Hi,

When I use the metadata-query command and try to add more options to query more data about the file creation date using the Fields option or the Extra-Fields option, no results show up, only file name and file id

Here is the command box metadata-query enterprise_******.department 1736501103 --fields=created_at
----- File 1342427526557 -----
Type: file
ID: ‘1342427526557’

Also need to know the list of options that I can use under Fields and Extra-Fields as the Box CLI is not showing any help or examples for it.

Thanks

Welcome to the forum @user711 :slight_smile:

I think that created_at is an extra-field, not a field.

Can you try the following :

box metadata-query enterprise_******.department 1736501103  --extra-fields type,id,created_at

I would recommend you to use this documentation :

You’ll find many examples.