Files and metadata
Overview
Use the following commands to manage files and metadata on the CGC.
files list
Get a list of files in the specified project with specified properties that you can access. Note that the ID of a file is not the same as its filename. The ID is a hexadecimal string automatically assigned to a file in a project.
files get
Get details of the specified file. Note that the ID of a file is not the same as its filename. You can obtain the file_id by listing all files in a specified project.
files copy
Copy the specified file to a new project. Files retain their metadata when copied but may be assigned new names in their target project.
Note that the ID of a file is not the same as its filename. You can obtain the file_id by listing all files in a specified project.
To make this call, you should have copy permission within the project from which you are copying the file.
files update
Update the name, the full set of metadata, and/or tags for the specified file.
files url
Get a URL that you can use to download the specified file.
files delete
Delete the specified file.
files metadata get
Returns the metadata values for the specified file.
files metadata edit
Modifies the metadata for the specified file.
files metadata overwrite
Overwrites the metadata for the specified file. Note that unlike the edit command, this command fully overwrites the values for all metadata fields. This means that when you run this command, you must enter values for every key required to specify the metadata, even if the values for some keys are unchanged. If you don't specify a value for a given metadata field, then any existing value for that field will be removed.
Updated over 2 years ago