Share CLI command - file
Add, edit, & remove files from Uni nodes.
Commands
Manage files in a Uni
Usage
share file <subcommand>
Sub command | 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
# Get File info
share file get --uni <uniName> --node <nodeName> --id <fileId>
# List File
share file list --uni <uniName> --node <nodeName>
# Create File
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,PartnerANodeName
# Update File
share file update --uni <uniName> --node <nodeName> --source-bucket bucket-xyz --id <fileId> --source-key foo.json --source-region us-east-1 --destination-key bar.json
# Remove File
share file remove --uni <uniName> --node <nodeName> --id <fileId>
file add
Add a file
Usage
share file add
Flags
uni
(option) - Name of Uninode
(option) - Name of Nodesource-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 Nodes that have read permission for this filewrite
(option) - Comma separated list of Nodes that have write permission for this filejson
(boolean) - Output return values as JSON
Examples
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,PartnerANodeName
file get
Get a file
Usage
share file get
Flags
uni
(option) - Name of Uninode
(option) - Name of Nodeid
(option) - File idjson
(boolean) - Output return values as JSON
Examples
share file get --uni <uniName> --node <nodeName> --id <fileId>
file list
List current files
Usage
share file list
Flags
uni
(option) - Name of Uninode
(option) - Name of Nodejson
(boolean) - Output return values as JSON
Examples
share file list --uni <uniName> --node <nodeName>
file remove
Remove a file
Usage
share file remove
Flags
uni
(option) - Name of Uninode
(option) - Name of Nodeid
(option) - File idjson
(boolean) - Output return values as JSON
Examples
share file remove --uni <uniName> --node <nodeName> --id <fileId>
file update
Update a file
Usage
share file update
Flags
uni
(option) - Name of Uninode
(option) - Name of Nodesource-bucket
(option) - Source Bucketsource-key
(option) - Source Keysource-region
(option) - Source Regiondestination-key
(option) - Destination Keyid
(option) - File idjson
(boolean) - Output return values as JSON
Examples
share file update --uni <uniName> --node <nodeName> --source-bucket bucket-xyz --id <fileId> --source-key foo.json --source-region us-east-1 --destination-key bar.json