Skip to content

Share CLI command - file

share file

Add, edit, & remove files from Uni nodes.

Table of Contents

Commands

Manage files in a Uni

Usage

Terminal window
share file <subcommand>
Sub commanddescription
file addAdd a file
file getGet a file
file listList current files
file removeRemove a file
file updateUpdate a file

Examples

Terminal window
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
share 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 File
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.json
share file update --uni <uniName> --node <nodeName> --id <fileId> --source-uri "<CSP URI>/foo.json" --destination-key bar.json
Remove File
share file remove --uni <uniName> --node <nodeName> --id <fileId>

file add

Add a file

Usage

Terminal window
share file add

Flags

  • uni (option) - Name of Uni
  • node (option) - Name of Node
  • 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 Nodes that have read permission for this file
  • write (option) - Comma separated list of Nodes that have write permission for this file
  • json (boolean) - Output return values as JSON

Examples

Terminal window
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
share 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

file get

Get a file

Usage

Terminal window
share file get

Flags

  • uni (option) - Name of Uni
  • node (option) - Name of Node
  • id (option) - File id
  • json (boolean) - Output return values as JSON

Examples

Terminal window
share file get --uni <uniName> --node <nodeName> --id <fileId>

file list

List current files

Usage

Terminal window
share file list

Flags

  • uni (option) - Name of Uni
  • node (option) - Name of Node
  • json (boolean) - Output return values as JSON

Examples

Terminal window
share file list --uni <uniName> --node <nodeName>

file remove

Remove a file

Usage

Terminal window
share file remove

Flags

  • uni (option) - Name of Uni
  • node (option) - Name of Node
  • id (option) - File id
  • json (boolean) - Output return values as JSON

Examples

Terminal window
share file remove --uni <uniName> --node <nodeName> --id <fileId>

file update

Update a file

Usage

Terminal window
share file update

Flags

  • uni (option) - Name of Uni
  • node (option) - Name of Node
  • 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

Terminal window
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.json
share file update --uni <uniName> --node <nodeName> --id <fileId> --source-uri "<CSP URI>/foo.json" --destination-key bar.json