Skip to content

Dlay.io CLI for hybrid workers and job deployment

Notifications You must be signed in to change notification settings

dlay-io/dlay-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dlay-cli

Install

npm install dlay -g

Credentials

Exported env var

DLAY_WORKER="adlayer:8d8fs949rd9sfdf90300030fdfdf0"
DLAY_SECRET="0df0oj300000-0099330"
dlay worker leia --jobs bill.js

Command

# Passing credentials on execution
DLAY_WORKER=adlayer:8d8fs949rd9sfdf90300030fdfdf0 DLAY_SECRET=0df0oj300000-0099330 dlay worker biller --jobs biller.js

dotfiles

touch .env
echo "DLAY_WORKER="adlayer:8d8fs949rd9sfdf90300030fdfdf0"" >> .env
echo "DLAY_SECRET="0df0oj300000-0099330"" >> .env

dlay worker lando --jobs bill.js -e .env

Workers

Explicit job files

dlay worker leia --jobs bill.js

Multiple job files

dlay worker leia --jobs bill.js collec.js

Relative module as job

dlay worker biller

Child module as a job

dlay worker luke --jobs ./bill ./collect

Jobs

Deploy file

dlay job deploy index.js

Deploy the package

dlay job deploy

About

Dlay.io CLI for hybrid workers and job deployment

Resources

Stars

Watchers

Forks

Packages

No packages published