Skip to content

SkynetLabs/skynet-cli

Repository files navigation

skynet-cli

Go Build Status Contributors License

skynet-cli is a lightweight CLI to interact with Skynet.

Skynet is the decentralized CDN and file sharing platform for devs and the storage foundation for a Free Internet!

Installing

The following methods will install a binary called skynet to your machine.

Using Go Install

If you have Go installed you can run:

go install github.com/SkynetLabs/skynet-cli/v2/cmd/skynet@latest

Homebrew (MacOS Users)

If you have Homebrew installed you can run:

brew tap SkynetLabs/skynet-cli https://github.com/SkynetLabs/skynet-cli.git
brew install skynet-cli

Downloading Release Binary

Alternatively, you can pull the appropriate binary from our Releases page.

Building From Source

You can build the source code yourself with:

make release

Usage

skynet-cli is designed to be simple and easy to use, just like Skynet.

Uploading a file or directory is a simple as using the following command:

skynet upload [source path]

This will return a skylink, which then in turn can be used to download the file with the following command:

skynet download [skylink] [destination]

Documentation

For comprehensive documentation complete with examples, please see the Skynet SDK docs.

To learn about additional commands you can always use the -h flag or check out the documentation.