sakku-cli v0.6.4
SAKKU cli
Sakku cli is trying to make real world even a better place!
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 COMMANDCommands
sakku help [COMMAND]sakku zone:getsakku zone:setsakku loginsakku exec APP [CMD]sakku whoamisakku catalogsakku app:addsakku app:collab [APP]sakku app:deploysakku app:logssakku app:exportlogssakku app:pssakku app:rmsakku app:scalesakku app:stopsakku app:portsakku app:statssakku app:commitsakku app:restartsakku app:rebuildsakku app:pipelinesakku app:healthcheck:allsakku app:healthcheck:createsakku app:healthcheck:rmsakku domain:allsakku domain:addsakku domain:appsakku domain:rmsakku domain:record:allsakku domain:record:addsakku domain:record:updatesakku domain:record:rmsakku network:allsakku network:createsakku network:addappsakku network:rmsakku network:rmappsakku image:buildsakku image:pssakku image:share
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 sourcesakku app:add
add new app
USAGE
$ sakku app:add
OPTIONS
-h, --help show CLI helpSee 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 -aSee code: src\commands\app\collab.ts
sakku app:deploy
deploy app
USAGE
$ sakku app:deploy
OPTIONS
-a, --app=app app nameSee 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:logsSee 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 helpSee 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): ySee 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 ConfigurationSee 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 stopedSee 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 realtimeSee 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-DIRSee 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 : TAGSee 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-STARTSee 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-ARGSSee 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 -aSee 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 execSee 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 CLISee 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 TehranSee 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 TehranSee 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 BrowserSee 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 -cSee 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 CLI3 years ago