Share CLI command - file

Add, edit, & remove files from Uni nodes.

Commands

Manage files in a Uni

Usage

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

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

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 Uni
  • node (option) - Name of Node
  • id (option) - File id
  • json (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 Uni
  • node (option) - Name of Node
  • json (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 Uni
  • node (option) - Name of Node
  • id (option) - File id
  • json (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 Uni
  • node (option) - Name of Node
  • source-bucket (option) - Source Bucket
  • source-key (option) - Source Key
  • source-region (option) - Source Region
  • destination-key (option) - Destination Key
  • id (option) - File id
  • json (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