project file Command Group¤
List, inspect, up-/download or delete project file resources.
File resources are identified with a RESOURCE_ID which is a concatenation of its project ID and its relative path, e.g. my-project:path-to/table.csv.
Note
To get a list of existing file resources, execute the project file list command or use tab-completion.
project file list¤
List available file resources.
Outputs a table or a list of file resources.
Options
--raw Outputs raw JSON.
--id-only Lists only resource IDs and no other metadata. This
is useful for piping the IDs into other commands.
--filter <TEXT TEXT>... Filter file resources based on metadata. First
parameter CHOICE can be one of ['project',
'regex']. The second parameter is based on CHOICE,
e.g. a project ID or a regular expression string.
project file delete¤
Delete file resources.
There are three selection mechanisms: with specific IDs - only those specified resources will be deleted; by using --filter - resources based on the filter type and value will be deleted; by using --all, which will delete all resources.
Options
--force Delete resource even if in use by a task.
-a, --all Delete all resources. This is a dangerous option,
so use it with care.
--filter <TEXT TEXT>... Filter file resources based on metadata. First
parameter CHOICE can be one of ['project',
'regex']. The second parameter is based on CHOICE,
e.g. a project ID or a regular expression string.
project file download¤
Download file resources to the local file system.
This command downloads one or more file resources from projects to your local file system. Files are saved with their resource names in the output directory.
Resources are identified by their IDs in the format PROJECT_ID:RESOURCE_NAME.
Options
project file upload¤
Upload a file to a project.
This command uploads a file to a project as a file resource.
Note
If you want to create a dataset from your file, the dataset create command is maybe the better option.
Options
--project TEXT The project where you want to upload the file. If there is
only one project in the workspace, this option can be
omitted.
--path TEXT The path/name of the file resource in the project (e.g.,
'data/file.csv'). If not specified, the local file name will
be used.
--replace Replace existing file resource. This is a dangerous option,
so use it with care!
project file inspect¤
Display all metadata of a file resource.
project file usage¤
Display all usage data of a file resource.