punkave / zoltar

Zoltar sees all! Zoltar launches your node-powered sites on demand when you access them by their actual names. No more "node app", no more "http://localhost:3000". Also provides a web console to view the output and start, stop and restart apps.
MIT License
8 stars 0 forks source link

considerations for a nice CLI #11

Open kylestetz opened 10 years ago

kylestetz commented 10 years ago

rather than running node app.js in the zoltar directory, this should be a global npm install:

npm install -g zoltar

and it should be accessed by calling

zoltar start

which should spawn a background process so that I can close my terminal window for the rest of time.

Other commands that make sense:

zoltar stop   # turn off zoltar
zoltar list   # show me the servers and their port numbers
zoltar killall   # turn off my sites but don't turn off zoltar
kylestetz commented 10 years ago

it'd also be nice to configure the folder that houses your node apps from the command line:

zoltar from ~/Sites
zoltar folder ~/Sites
zoltar set ~/Sites

what would impress me would be the ability to cd to my node apps folder and say

zoltar from .

as in "here is where I want you to do your zoltar-ing"