0.0.3 • Published 5 years ago

blaz-cli v0.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

Server Setup

Add new server

blaz server add

List configured servers

blaz server list

Remove a server

blaz server remove

Deploy

Deploy your project on Server

 blaz deploy

Deploy current folder

blaz deploy -f . -a sample-app -h https://server.example.com

Deploy a tar file

blaz deploy -t myapp.tar -a sample-app -h https://server.example.com

Deploy a zip file

blaz deploy -z myapp.zip -a sample-app -h https://server.example.com

Deploy current branch

blaz deploy -b master -a sample-app -h https://server.example.com

Deploy docker image

blaz deploy -i myapp:latest -a sample-app -h https://server.example.com

Deploy using local config file

blaz deploy -c blaz.json

blaz.json

{
  "server": "https://server.example.com",
  "ipv4": "127.0.0.1",
  "accessKey": "e42e2568c8d6d63501de60df39b6a00f9bb80818abb9cacb1bc234b6",
  "app": "my-app"
}

Arguments

ArgumentNameDescription
f , folderfolderDeploys current folder
t , tartar fileDeploys a tar file
z , zipzip fileDeploys a zip file
b , branchbranchDeploys current branch
a , appappSpecify the app name
h , hosthostSpecify the host name
m , modebuild modeeg. local:1, runner:runnerName
local - builds locally, 1 - uses 1 cpu ( default half of system cpu )
runner - specifying custom runner, runnerName - name of the runner
by default app builds on primary server/runner based on blaz settings