Git Product home page Git Product logo

starling-1's Introduction

Starling

A command-line interface for simplified, coordinated, decentralized storage on the Filecoin network. This is a work in progress and is not yet production-ready. Use at your own risk.

Requirements

Starling CLI requires a machine running a Filecoin Lotus node and NodeJS v10.16.0 +

Development

To run locally

> npm install

During development it’s convenient to make the symlink on our path point to the index.js we’re actually working on, using npm link.

> npm link

Test by running

> starling <command>

database

Starling uses an sqlite3 database. The db is created in HOME/.starling/starling.db

API Address Config

Starling uses the Lotus configuration files for getting the API's url and authorization token (~/.lotus/api and ~/.lotus/token). Please make sure that an authorization token with admin permissions has been generated beforehand (lotus auth api-info --perm admin)

Starling will use the optional FULLNODE_API_INFO variable in case it has been set.

Commands

Modify the config file HOME/.starling/config.json

> starling config

Store a single file

> starling store full/path/to/file

Store a folder

> starling store full/path/to/folder

Launch interactive monitoring interface

> starling monitor

// up/down keys: scroll through the list
// ^S sort by size, ^V sort by filename
// ^F: filter all files

Generate a CSV report of all files stored

// outputs file in the working directory
> starling list

// outputs file in the specified directory
> starling list <path>

Generate a CSV report of file fixity

// outputs file in the working directory
> starling verify

// outputs file in the specified directory
> starling verify <path>

Output the version number

> starling --version | -v

Output usage information

> starling --help | -h | help

> starling [command] --help

starling-1's People

Contributors

alexandrumatei36 avatar finoradin avatar jadtermsani avatar mishmosh avatar reganartinfo avatar smooth-operator avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.