access create

access create #

This command allow you to create and print the Access Grant to stdout, export it to a file or import it as an access to Uplink.

Usage #

./uplink.exe access create [flags]
uplink access create [flags]
uplink access create [flags]

Flags #

FlagDescription
--passphrase-stdinIf set, the passphrase is read from stdin, and all other values must be provided
--satellite-address stringSatellite address from satellite UI (prompted if unspecified)
--api-key stringAPI key from satellite UI (prompted if unspecified)
--import-as stringImport the access as this name
--export-to stringExport the access to this file path
-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 #

Create an Access Grant without prompts #

As result it will print the created access grant to stdout.

echo "SuperPassword" | ./uplink.exe access create --satellite-address 12tRQrMTWUWwzwGh18i7Fqs67kmdhH9t6aToeiwbo5mfS2rUmo@us2.storj.io:7777 --api-key 1dfJ354T.... --passphrase-stdin
echo "SuperPassword" | uplink access create --satellite-address 12tRQrMTWUWwzwGh18i7Fqs67kmdhH9t6aToeiwbo5mfS2rUmo@us2.storj.io:7777 --api-key 1dfJ354T.... --passphrase-stdin
echo "SuperPassword" | uplink access create --satellite-address 12tRQrMTWUWwzwGh18i7Fqs67kmdhH9t6aToeiwbo5mfS2rUmo@us2.storj.io:7777 --api-key 1dfJ354T.... --passphrase-stdin
18yMsZpg6ZQdz........

Create an Access Grant and export to the file #

You will export the created access grant to the file.

./uplink.exe access create --export-to access.txt
uplink access create --export-to access.txt
uplink access create --export-to access.txt
Exported access to: /home/user/access.txt

You will import the created access grant to Uplink as a named access.

./uplink.exe access create --import-as us2
uplink access create --import-as us2
uplink access create --import-as us2
Imported access "us2" to "/home/user/.config/storj/uplink/access.json"

Create an Access Grant and replace the existing access #

You will import the created access grant to uplink as a named access and replace it if it exists.

./uplink.exe access create --import-as us2 --force
uplink access create --import-as us2 --force
uplink access create --import-as us2 --force
Imported access "us2" to "/home/user/.config/storj/uplink/access.json"