meta get

Usage

Windows
Linux
macOS
Windows
./uplink.exe meta get [KEY] PATH [flags]
Linux
uplink meta get [KEY] PATH [flags]
macOS
uplink meta get [KEY] PATH [flags]

Flags

Flag

Description

--access string

the serialized access, or name of the access to use

--help, -h

help for get

Retrieve all metadata of an object

Suppose you have uploaded your object with metadata using this command:

Windows
Linux
macOS
Windows
./uplink.exe cp cheesecake.jpg sj://cakes --metadata '{\"baker\":\"cheeseman\"}'
Linux
uplink cp cheesecake.jpg sj://cakes --metadata '{"baker":"cheeseman"}'
macOS
uplink cp cheesecake.jpg sj://cakes --metadata '{"baker":"cheeseman"}'

Retrieving all metadata defined for object sj://cakes/cheesecake.jpg is done with:

Windows
Linux
macOS
Windows
./uplink.exe meta get sj://cakes/cheesecake.jpg
Linux
uplink meta get sj://cakes/cheesecake.jpg
macOS
uplink meta get sj://cakes/cheesecake.jpg

Query for a specific key in metadata

You can retrieve the value of key baker for object sj://cakes/cheesecake.jpg using:

Windows
Linux
macOS
Windows
./uplink.exe meta get baker sj://cakes/cheesecake.jpg
Linux
uplink meta get baker sj://cakes/cheesecake.jpg
macOS
uplink meta get baker sj://cakes/cheesecake.jpg

Querying for a non existing key will raise an error.