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 #
Argument | Description |
---|---|
<name> | Name to save the access as |
<access|filename> | Serialized access value or file path to save |
Flags #
Flag | Description |
---|---|
-f, --force | Force overwrite an existing saved access |
--use | Switch the default access to the newly created one |
Global flags #
Global flags | Description |
---|---|
--config-dir string | Directory that stores the configuration |
--help , -h | prints help for the command |
--advanced | when 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