Coder Social home page Coder Social logo

kii-cli's Introduction

README

Installation

go get github.com/tmtk75/kii-cli/cmd/kii-cli

or

Download binary from https://github.com/tmtk75/kii-cli/releases

Getting Started

Create config file in ~/.kii/config as follow.

[default]
app_id = aaaaa...
app_key = bbbbbbbbbbbbbbbbb...
client_id = xxxxxxxxxxxxxx...
client_secret = yyyyyyyyyyyyyyyyyyyyyyyyy...
site = us

First, login to get your app admin access token. If you encounter an error message, please make sure your credentials in default section of ~/.kii/config.

kii-cli auth login

OK, you're ready to run kii-cli. Try log subcommand.

kii-cli log

You might not see any outputs, in the case, type next.

echo "function main(params, ctx) {}" > foobar
kii-cli servercode deploy foobar

Then try log again and you can see a line that showed you deployed a servercode.

kii-cli log
2015-01-08T23:14:52.229Z [INFO] servercode.file.deploy description:Server Code File deployed data-type:application/javascript versionID:efag40m0pxqyzxi7zkkftw3d1

TBD

Usage

NAME:
   kii-cli - KiiCloud command line interface

USAGE:
   kii-cli [global options] command [command options] [arguments...]

VERSION:
   0.1.5

COMMANDS:
   auth         Authentication
   app          Application management
   log          Disply logs for an app
   servercode   Server code management
   user         User management
   bucket       Bucket management
   object       Object management
   dev          Development support
   profile      Profile management
   help, h      Shows a list of commands or help for one command
   
GLOBAL OPTIONS:
   --app-id                  AppID
   --app-key                 AppKey
   --client-id               ClientID
   --client-secret           ClientSecret
   --token                   Token to be used
   --site                    us,jp,cn,sg
   --endpoint-url            Site URL
   --log-url                 Log URL
   --verbose                 Verbosely
   --profile, -p 'default'   Profile name for ~/.kii/config
   --profile-path            Profile path instead of ~/.kii/config
   --curl                    Print curl command saving body as a tmp file if body exists
   --suppress-exit           Suppress exit with 1 when receiving status code other than 2xx
   --http-proxy              HTTP proxy URL to be used
   --disable-http-proxy      Disable HTTP proxy in your profile
   --use-utc                 Format time in UTC
   --help, -h                show help
   --version, -v             print the version

And supports flat-style subcommands.

FLAT=1 kii-cil
COMMANDS:
   auth:login                   Login as AppAdmin
   auth:info                    Print login info
   app:config                   Print config of app
   log                          Disply logs for an app
   servercode:list              List versions of server code
   servercode:deploy            Deploy a server code
   servercode:get               Get specified server code
   ...

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.