All Projects → KevinOfNeu → Rocket

KevinOfNeu / Rocket

Licence: mit
NetDisk in command line.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Rocket

Generator Ngx Rocket
🚀 Extensible Angular 11+ enterprise-grade project generator
Stars: ✭ 1,329 (+3222.5%)
Mutual labels:  cli, rocket
Entrypoint
Composable CLI Argument Parser for all modern .Net platforms.
Stars: ✭ 136 (+240%)
Mutual labels:  cli, parser
Sywac
🚫 🐭 Asynchronous, single package CLI framework for Node
Stars: ✭ 109 (+172.5%)
Mutual labels:  cli, parser
Spectre.cli
An extremely opinionated command-line parser.
Stars: ✭ 121 (+202.5%)
Mutual labels:  cli, parser
Swaggen
OpenAPI/Swagger 3.0 Parser and Swift code generator
Stars: ✭ 385 (+862.5%)
Mutual labels:  cli, parser
Redrun
✨🐌 🐎✨ fastest npm scripts runner
Stars: ✭ 85 (+112.5%)
Mutual labels:  cli, parser
Typin
Declarative framework for interactive CLI applications
Stars: ✭ 126 (+215%)
Mutual labels:  cli, parser
Fast Xml Parser
Validate XML, Parse XML to JS/JSON and vise versa, or parse XML to Nimn rapidly without C/C++ based libraries and no callback
Stars: ✭ 1,021 (+2452.5%)
Mutual labels:  cli, parser
Swagger Cli
Swagger 2.0 and OpenAPI 3.0 command-line tool
Stars: ✭ 321 (+702.5%)
Mutual labels:  cli, parser
Picocli
Picocli is a modern framework for building powerful, user-friendly, GraalVM-enabled command line apps with ease. It supports colors, autocompletion, subcommands, and more. In 1 source file so apps can include as source & avoid adding a dependency. Written in Java, usable from Groovy, Kotlin, Scala, etc.
Stars: ✭ 3,286 (+8115%)
Mutual labels:  cli, parser
Uptoc
A static file deployment tool that supports multiple platforms./ 一个支持多家云厂商的静态文件部署工具
Stars: ✭ 159 (+297.5%)
Mutual labels:  cli, qiniu
Dasel
Query, update and convert data structures from the command line. Comparable to jq/yq but supports JSON, TOML, YAML, XML and CSV with zero runtime dependencies.
Stars: ✭ 759 (+1797.5%)
Mutual labels:  cli, parser
Mri
Quickly scan for CLI flags and arguments
Stars: ✭ 394 (+885%)
Mutual labels:  cli, parser
Arg
Simple argument parsing
Stars: ✭ 897 (+2142.5%)
Mutual labels:  cli, parser
Usacloud
usacloud🐰 : CLI client for the Sakura Cloud🌸☁️
Stars: ✭ 37 (-7.5%)
Mutual labels:  cli
Android File Transfer Linux
Android File Transfer for Linux
Stars: ✭ 994 (+2385%)
Mutual labels:  cli
Create Wxapp Page
创建微信小程序页面的命令行工具
Stars: ✭ 37 (-7.5%)
Mutual labels:  cli
Rocket.chat.apps Cli
The CLI for interacting with Rocket.Chat Apps
Stars: ✭ 37 (-7.5%)
Mutual labels:  cli
Dw Cli
A command line utility for Salesforce Commerce Cloud (Demandware) SIG and PIG development.
Stars: ✭ 39 (-2.5%)
Mutual labels:  cli
Goawk
A POSIX-compliant AWK interpreter written in Go
Stars: ✭ 995 (+2387.5%)
Mutual labels:  parser

Rocket

Build Status npm

logo

Self hosted netdisk, pure command line tool to to pull or pull files with Qiniu cloud.

Features

  • Fully command line operation!
  • 100% self host.
  • Support custom storage provider with Qiniu(七牛).
  • Support index files with regex expression.
  • Expressive command lines
  • Easy config and use
  • ...

Screenshots

Soon!

Installation & Preparation

$ brew install node

1. Register Qiniu(七牛) storage provider

Register a free Qiniu account. Then create a new bucket.

Take bucket name down, then get accessKey and secretKey.

Finally, get your domain:

Take accessKey, secretKey domain and bucket name down, we will use it when config rocket :P.

2. CLI

$ npm install -g rocket-cli

After installation, type:

$ rocket -h

Succeed if you see the following tips.

  Usage: rocket [options] [command]

  Commands:

    init [options]           Init config file
    config [options] [show]  Config Qiniu bucket, domain, access key and secret key
    add [options]            Add dir or files to index
    push [options]           Push files to Qiniu cloud
    ls [options]             List files from local index
    pull [options] <key>     Pull file from Qiniu cloud

  Options:

    -h, --help     output usage information
    -V, --version  output the version number

Commands & Usage

Init config file

$ rocket init

If the config file already exists, you can use -o or -overwrite options to overwrite the old one.

The config file locates at ~/.rocket.json.

Config storage provider

$ rocket config -b <your bucket name> -a <your accessKey> -s <your secretKey> -d <domain>

Show config

List your cnfiguration.

$ rocket config show

Add files to local index

$ rocket add -d <directory> -r -f <regex expression>

-r means recursively add files in sub directories.

-f can set filters using regex expression, use . for all files.

Push files in local index to cloud

$ rocket push -m [max upload workers. defailt = 5]

-m set the maximum number of upload workers.

List all indexed files

$ rocket ls -o [offset] -l [limit]

You can use -o and -l to set proper offset and limit if there are too much files in local index.

Pull

$ rocket pull -d [destination] <key> This command will download file searched by key to destination directory, default directory is where this file uploaded.

How dose it work?

SOON!

TODO

  • [x] Add timestamp when upload
  • [x] Pull files to local(with default localPath).
  • [ ] Examples & Articles
  • [ ] Add rocket restore command(next version)
  • [ ] Support multi config file.
  • [x] Some default params.
  • [x] Support pull file(s) to certain directory.
  • [ ] Support multi object storage provider.
  • [ ] Code refactor.
  • [ ] Test case needed.

Release Note

  • [0.0.6] Add pull files function; Remove unneed command; Add show config operation; Add timestamp;

Contribute

PR and issues are welcomed! Join and make it better!

Info/Support

Email [email protected] for support!

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].