Skip to content

Command Line Interface for Blaz

License

Notifications You must be signed in to change notification settings

aroliant/blaz-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install blaz CLI

npm i blaz-cli -g

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

Argument Name Description
f , folder folder Deploys current folder
t , tar tar file Deploys a tar file
z , zip zip file Deploys a zip file
b , branch branch Deploys current branch
a , app app Specify the app name
h , host host Specify the host name
m , mode build mode eg. 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

About

Command Line Interface for Blaz

Resources

License

Stars

Watchers

Forks

Packages

No packages published