0.6.4 • Published 2 years ago

sakku v0.6.4

Weekly downloads
108
License
MIT
Repository
github
Last release
2 years ago

SAKKU cli

Sakku cli is trying to make real world even a better place!

Version Downloads/week

Usage

$ npm install -g sakku
$ sakku COMMAND
running command...
$ sakku (-v|--version|version)
sakku/0.0.0 linux-x64 node-v8.10.0
$ sakku --help [COMMAND]
USAGE
  $ sakku COMMAND

Commands

sakku app

manage all apps

USAGE
  $ sakku app:COMMAND

COMMANDS
  app:add       add new app
  app:deploy    deploy app
  app:ps        showing all [running/stopped] app
  app:rm        Remove app*
  app:scale     scale app
  app:stop      stop app
  app:port      change app port
  app:stats     app realtime monitroing
  app:pipeline  create pipeline from docker-compose
  app:logs      app realtime logs
  app:exportlogs    app logs history
  app:commit    commit application container
  app:restart   restart application
  app:rebuild   rebuild application source

sakku app:add

add new app

USAGE
  $ sakku app:add

OPTIONS
  -h, --help  show CLI help

See code: src\commands\app\add.ts

sakku app:collab [APP]

Add new collaborators, as well as showing the list of collaborators

USAGE
  $ sakku app:collab [APP]

ARGUMENTS
  APP  app id/name

OPTIONS
  -a, --add
  -r, --delete
  -e, --edit
  -h, --help    show CLI help

EXAMPLES
  $ sakku app:collab
  $ sakku app:collab -a

See code: src\commands\app\collab.ts

sakku app:deploy

deploy app

USAGE
  $ sakku app:deploy

OPTIONS
  -a, --app=app  app name

See code: src\commands\app\deploy.ts

sakku app:logs [APP]

Shows logs of an app

USAGE
  $ sakku app:logs [APP]

ARGUMENTS
  APP  app id/name

OPTIONS
  -h, --help  show CLI help

EXAMPLE
  $ sakku app:logs

See code: src\commands\app\logs.ts

sakku app:ps

showing all running/all app

USAGE
  $ sakku app:ps

OPTIONS
  -a, --all   show all apps
  -h, --help  show CLI help

See code: src\commands\app\ps.ts

sakku app:rm

Remove app*

USAGE
  $ sakku app:rm

OPTIONS
  -f, --force
  -h, --help   show CLI help

EXAMPLE
  $ sakku app:rm
  Enter your app id: APP-ID
  are you really sure to remove? (y/n): y

See code: src\commands\app\rm.ts

sakku app:scale [APP]

scale app

USAGE
  $ sakku app:scale [APP]

ARGUMENTS
  APP  app id/name

OPTIONS
  -h, --help  show CLI help

EXAMPLE
  $ sakku app:scale
  Enter your app id: APP-ID
  Enter your new Configuration

See code: src\commands\app\scale.ts

sakku app:stop

stop app

USAGE
  $ sakku app:stop

OPTIONS
  -h, --help  show CLI help

EXAMPLE
  $ sakku app:stop
     Enter your app-id: APP-ID
     please wait...... stoped!
     your app (APP-ID) is stoped

See code: src\commands\app\stop.ts

sakku app:stats [APP]

realtime app monitoring

USAGE
  $ sakku app:stats [APP]

OPTIONS
  -h, --help  show CLI help
  -a, --app   app ID

EXAMPLE
  $ sakku app:stats
     Enter your app-id: APP-ID
     Connection established successfully.
     show app stats realtime

See code: src\commands\app\stats.ts

sakku app:pipeline [APP]

create pipeline from docker-compose

USAGE
  $ sakku app:pipeline

OPTIONS
  -h, --help  show CLI help
  -f, --file  docker-compose file path

EXAMPLE
  $ sakku app:pipeline
     Enter your docker compose file: FILE-PATH
     Applications configiguration review ...
     
     Do you want to continue pipeline creation of these applications? (y or n):
     Pipeline applications are being created!

See code: src\commands\app\pipeline.ts

sakku app:exportlogs [APP] [FROM] [TO] [FILE-DIR]

show / (export to a text file) logs history of an app

USAGE
  $ sakku app:exportlogs [APP]

OPTIONS
  -h, --help  show CLI help
  -a, --app   app ID
  -f, --from  from Date
  -t, --to    to Date
  -d, --dir   File Directory

EXAMPLE
  $ sakku app:exportlogs
     Enter app id:: APP-ID
     Enter from date in yyyy/mm/dd | yyyy/mm/dd H:i:s format (Georgian): FROM-DATE
     Enter to date in yyyy/mm/dd | yyyy/mm/dd H:i:s format (Georgian): TO-DATE
     Enter log file directory without file name: (**hint: If you want to save logs in a file, fill this field else skip it!): FILE-DIR

See code: src\commands\app\exportlogs.ts

sakku app:commit [AppID]

Commit application container

USAGE
  $ sakku app:commit 

OPTIONS
  -h, --help  show CLI help
  -a, --app     app ID
  -c, --cid     Container ID
  -t, --tag     TAG
  -r, --isRestart

EXAMPLE
  $ sakku image:commit
        Enter your app id : APP-ID
        Enter container id : CONTAINER-ID
        Change restart image to this image? : (y/n)
        Enter version of application : TAG

See code: src\commands\app\commit.ts

sakku app:restart [AppId]

Restart application by id

USAGE
  $ sakku app:restart 

OPTIONS
  -h, --help  show CLI help
  -a, --app     app ID
  -c, --cstop   {Commit app before stopping}
  -t, --tstop   TAG-STOP {Tag for commited app}
  -s, --cstart  {Start app from specific version}
  -v, --tstart  TAG-START

EXAMPLE
  $ sakku image:restart
      Enter your app id : APP-ID
      Do you want to commit this application before stopping it? : (y/n)
      Enter tag for stopped application : TAG-STOP
      Do you want to start this application from specific version? : (y/n)
      Enter version of application you want to start from : TAG-START

See code: src\commands\app\restart.ts

sakku app:rebuild -a [AppId] -b [buildArgs]

rebuild application source

USAGE
  $ sakku app:rebuild 

OPTIONS
  -h, --help  show CLI help
  -a, --app     app ID
  -b, --build-args   

EXAMPLE
      $ sakku app:rebuild
      Enter your app id : APP-ID
      Enter build Arguments : BUILD-ARGS

See code: src\commands\app\rebuild.ts

sakku catalog

List all different Program Catalogs

USAGE
  $ sakku catalog

OPTIONS
  -a, --add   show CLI help
  -h, --help  show CLI help

EXAMPLES
  $ sakku catalog
  $ sakku catalog -a

See code: src\commands\catalog.ts

sakku exec APP [CMD]

execute command on instance

USAGE
  $ sakku exec APP [CMD]

ARGUMENTS
  APP  app id/name
  CMD  [default: bash] command

OPTIONS
  -h, --help         show CLI help
  -i, --interactive
  -t, --tty

EXAMPLE
  $ sakku exec

See code: src\commands\exec.ts

sakku help [COMMAND]

display help for sakku

USAGE
  $ sakku help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

sakku zone:get

get datacenter zone

USAGE
  $ sakku zone:get

OPTIONS
  -h, --help  show CLI help

EXAMPLE
  $ sakku zone:get
  - Khatam University Datacenter in Tehran

See code: src\commands\zone\get.ts

sakku zone:set

set datacenter zone

USAGE
  $ sakku zone:set

OPTIONS
  -h, --help  show CLI help
  -z, --zone khatam | serverius | pardis | sandbox  set zone to khatam, serverius, pardis or sandbox datacenter
EXAMPLE
  $ sakku zone:set
  ? Choose datacenter zone : (Use arrow keys)
> serverius : Serverius Datacenter in holland
  khatam : Khatam University Datacenter in Tehran
  pardis : Pardis Datacenter in Tehran
  sandbox : Sandbox Datacenter in Tehran

See code: src\commands\zone\set.ts

sakku login

login to Sakku cli interface.

USAGE
  $ sakku login

OPTIONS
  -h, --help  show CLI help

EXAMPLE
  $ sakku login
  ? there is two way you can login: (Use arrow keys)
  ❯ Login by Username & Password
     Login by Browser

See code: src\commands\login.ts

sakku whoami

Shows username or complete user info and stats

USAGE
  $ sakku whoami

OPTIONS
  -c, --complete
  -h, --help      show CLI help

EXAMPLES
  $ sakku whoami
  $ sakku whoami -c

See code: src\commands\whoami.ts

sakku help

help!

USAGE
  $ sakku help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI
0.6.4

2 years ago

0.6.3

2 years ago

0.6.2

2 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.5.0

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.0

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.0

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago

0.0.0

5 years ago