-
Notifications
You must be signed in to change notification settings - Fork 414
Uplink CLI
Please check out our most up-to-date Storj DCS Uplink CLI documentation here.
The Uplink CLI is our client-side application that supports interacting with the Storj DCS network. This tutorial assumes you have an account on a running Satellite and uses a test network Satellite by default.
Download the correct binary for your operating system:
- Mac OS: uplink_darwin_amd64.zip
- Linux: uplink_linux_amd64.zip
- Raspberry Pi: uplink_linux_arm.zip
- Windows: uplink_windows_amd64.zip
Setup your uplink by running the following command and following the wizard:
./uplink setup
You will be prompted for:
- Satellite: The satellite you want to connect your uplink to. You can choose one from the list of type one eg.
us1.storj.io:7777
or127.0.0.1:10000
if you are using the test network. - API key: The API key that you generate for a project on the Satellite console. If you are using the test network, you can use the API key provided when you run it.
- Encryption passphrase: The passphrase you choose in order to encrypt your objects. Keep this secret and safe. This passphrase will grant you access to all of your objects, and if you lose it, you will not be able to recover your objects.
You are now ready to interact with your objects on the Storj DCS Network!
The uplink
command has a number of operations that can be performed, such as:
-
cp
- copy an object from outside of Storj DCS to inside or vice versa or between Storj DCS buckets/prefixes -
ls
- list buckets or objects on your Storj DCS project -
mb
- make a new bucket -
mv
- move an object from one Storj DCS bucket to other (or rename an object) -
rb
- remove a bucket -
rm
- remove an object -
meta
- object metadata related commands -
share
- share an object -
access
- access related commands
More information for each command is provided in the command's --help
documentation, but some example commands are listed below:
./uplink mb sj://bucket-name
./uplink cp ~/Desktop/your-large-file.mp4 sj://bucket-name
./uplink ls sj://bucket-name/
./uplink cp sj://bucket-name/your-large-file.mp4 ~/Desktop/your-large-file.mp4
./uplink rm sj://bucket-name/your-large-file.mp4
And that's it! You now know how to perform basic operations on a Storj bucket, and you've been able to get uplink
working.
We also have a tutorial on S3 integration.
Now go and decentralize all the things!