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 projectnode(option) - Name of workspacesource-uri(option) - Source URIsource-bucket(option) - Source Bucketsource-key(option) - Source Keysource-region(option) - Source Regiondestination-key(option) - Destination Keycopy-strategy(option) - File copy strategyread(option) - Comma separated list of workspaces that have read permission for this filewrite(option) - Comma separated list of workspaces that have write permission for this filejson(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 projectnode(option) - Name of workspaceid(option) - File idjson(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 projectnode(option) - Name of workspacejson(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 projectnode(option) - Name of workspaceid(option) - File idjson(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 projectnode(option) - Name of workspaceid(option) - File idsource-uri(option) - Source URIsource-bucket(option) - Source Bucketsource-key(option) - Source Keysource-region(option) - Source Regiondestination-key(option) - Destination Keyjson(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