OSDN Command Line Interface
OSDN command line interface using REST API.
Requirement
- ruby (>= 1.9.3)
- gem build environment or pre-build ffi gem
- libcurl
On debian (ubuntu) system, you can install with following packages.
$ sudo apt-get install ruby ruby-ffi libcurl3
Installation
You can install by rubygem, type following on terminal.
$ gem install osdn-cli
Usage
First you need to login to API with 'login' subcommand.
$ osdn login
To get command list use help.
$ osdn help
osdn [global-options] <command> [command-options] [args]
osdn help <command>
Global Options:
-h --help Show help message. use 'help <command>' for specific command.
-v --verbose Increase log level (multiple)
-q --quiet Decrease log level (multiple)
Avaiable Commands:
help
login Login and save access token.
package Manipulate frs packages of project
release Manipulate frs releases of project
relfile Manipulate frs files of project
frs_mkdirs Make directory tree for current project release
frs_upload Upload local file tree and create package/release implicitly.
ping Test API request.
vars Get/set request environment variable.
Contributing
Bug reports and pull requests are welcome on OSDN at https://osdn.jp/projects/osdn-codes/ticket/
License
Copyright (c) 2016 OSDN
Source files and gem are distributed under MIT License.