Create an Access to an Object

There are two ways to share access to an object:

  • by link sharing

  • by importing the access using uplink CLI

In both cases, this is done using the share command. For example:

Windows
Linux
macOS
Windows
./uplink.exe share sj://cakes/cheesecake.jpg --export-to $env:USERPROFILE/Desktop/cheesecake.access
Linux
uplink share sj://cakes/cheesecake.jpg --export-to ~/cheesecake.access
macOS
uplink share sj://cakes/cheesecake.jpg --export-to ~/cheesecake.access

An access generated using uplink share with no argument creates an access to your entire project with all actions allowed.

The --export-to flag is used to export the access to a file. This gives the following output:

This also gives you an URL for link sharing.

Note that the generated API Key: - is not revocable - is set to have read/write/list/delete permissions.

We will see later how to restrict access to an object. Now it's time to try our access key.