Vendia CLI command - file
share file
Add, edit, & remove files from project workspaces.
Table of Contents
Commands for share file
Manage files in a project.
Usage
share file <subcommand>| Subcommand | Description | 
|---|---|
| file add | Add a file | 
| file get | Get a file | 
| file list | List current files | 
| file remove | Remove a file | 
| file update | Update a file | 
Examples for share file
❯ Get file infoshare file get --uni <uniName> --node <nodeName> --id <fileId>
❯ List filesshare file list --uni <uniName> --node <nodeName>
❯ Create fileshare file add --uni <uniName> --node <nodeName> --source-bucket bucket-xyz --source-key foo.json --source-region us-east-1 --destination-key bar.json --copy-strategy NEVER --read '*' --write brett@vendia.net,PartnerANodeNameshare file add --uni <uniName> --node <nodeName> --source-uri "<CSP URI>/foo.json" --destination-key bar.json --copy-strategy NEVER --read '*' --write brett@vendia.net,PartnerANodeName
❯ Update fileshare file update --uni <uniName> --node <nodeName> --id <fileId> --source-bucket bucket-xyz --source-key foo.json --source-region us-east-1 --destination-key bar.jsonshare file update --uni <uniName> --node <nodeName> --id <fileId> --source-uri "<CSP URI>/foo.json" --destination-key bar.json
❯ Remove fileshare file remove --uni <uniName> --node <nodeName> --id <fileId>file add
Add a file.
Usage for file add
share file addFlags for file add
- uni(option) - Name of project
- node(option) - Name of workspace
- source-uri(option) - Source URI
- source-bucket(option) - Source Bucket
- source-key(option) - Source Key
- source-region(option) - Source Region
- destination-key(option) - Destination Key
- copy-strategy(option) - File copy strategy
- read(option) - Comma separated list of workspaces that have read permission for this file
- write(option) - Comma separated list of workspaces that have write permission for this file
- json(boolean) - Output return values as JSON
Examples for file add
share file add --uni <uniName> --node <nodeName> --source-bucket bucket-xyz --source-key foo.json --source-region us-east-1 --destination-key bar.json --copy-strategy NEVER --read '*' --write brett@vendia.net,PartnerANodeNameshare file add --uni <uniName> --node <nodeName> --source-uri "<CSP URI>/foo.json" --destination-key bar.json --copy-strategy NEVER --read '*' --write brett@vendia.net,PartnerANodeNamefile get
Get a file.
Usage for file get
share file getFlags for file get
- uni(option) - Name of project
- node(option) - Name of workspace
- id(option) - File id
- json(boolean) - Output return values as JSON
Examples for file get
share file get --uni <uniName> --node <nodeName> --id <fileId>file list
List current files.
Usage for file list
share file listFlags for file list
- uni(option) - Name of project
- node(option) - Name of workspace
- json(boolean) - Output return values as JSON
Examples for file list
share file list --uni <uniName> --node <nodeName>file remove
Remove a file.
Usage for file remove
share file removeFlags for file remove
- uni(option) - Name of project
- node(option) - Name of workspace
- id(option) - File id
- json(boolean) - Output return values as JSON
Examples for file remove
share file remove --uni <uniName> --node <nodeName> --id <fileId>file update
Update a file.
Usage for file update
share file updateFlags for file update
- uni(option) - Name of project
- node(option) - Name of workspace
- id(option) - File id
- source-uri(option) - Source URI
- source-bucket(option) - Source Bucket
- source-key(option) - Source Key
- source-region(option) - Source Region
- destination-key(option) - Destination Key
- json(boolean) - Output return values as JSON
Examples for file update
share file update --uni <uniName> --node <nodeName> --id <fileId> --source-bucket bucket-xyz --source-key foo.json --source-region us-east-1 --destination-key bar.jsonshare file update --uni <uniName> --node <nodeName> --id <fileId> --source-uri "<CSP URI>/foo.json" --destination-key bar.json