access import

access import #

This command allows you to import the Access Grant to Uplink.

Usage #

./uplink.exe access import [flags] <name> <access|filename>
uplink access import [flags] <name> <access|filename>
uplink access import [flags] <name> <access|filename>

Arguments #

ArgumentDescription
<name>Name to save the access as
<access|filename>Serialized access value or file path to save

Flags #

FlagDescription
-f, --forceForce overwrite an existing saved access
--useSwitch the default access to the newly created one

Global flags #

Global flagsDescription
--config-dir stringDirectory that stores the configuration
--help, -hprints help for the command
--advancedwhen used with -h, prints advanced flags help

Examples #

Please Create an Access Grant from satellite UI or Create an Access Grant from CLI before proceeding.

Import Access Grant from the file #

Save the created Access Grant to the file access.txt. As result, this command will import the Access Grant from the file to the access with the specified name into Uplink.

./uplink.exe access import main access.txt
uplink access import main access.txt
uplink access import main access.txt
Imported access "main" to "/home/user/.config/storj/uplink/access.json"

Import Access Grant from the console #

As result, the Access Grant will be imported from the console to the access with the specified name.

./uplink.exe access import main 18fglgkoitmfvkogmoitr....
uplink access import main 18fglgkoitmfvkogmoitr....
uplink access import main 18fglgkoitmfvkogmoitr....
Imported access "main" to "/home/user/.config/storj/uplink/access.json"

Import Access Grant and replace the existing access #

You will import the created access grant to uplink as a named access

./uplink.exe access import main access.txt --force
uplink access import main access.txt --force
uplink access import main access.txt --force
Imported access "main" to "/home/user/.config/storj/uplink/access.json