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.exe 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.

./uplink.exe access create --export-to access.txt
./uplink.exe access create --export-to access.txt
18yMsZpg6ZQdz........
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.exe access create --export-to access.txt
Exported access to: /home/user/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.exe access create --import-as us2
Imported access "us2" to "/home/user/.config/storj/uplink/access.json"
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.exe access create --import-as us2 --force
Imported access "us2" to "/home/user/.config/storj/uplink/access.json"
Imported access "us2" to "/home/user/.config/storj/uplink/access.json"
Previous
access