rpi-cli
v1.0.0
Published
Cli utility to interact with a server instance
Downloads
12
Readme
Installation
npm install rpi-cli -g
or
yarn global add rpi-cli
Getting started
The target server-instance needs to have ssh configured.
The first step is to setup the desired server-instance:
rpi init
You will be prompted for some required configuration and preferences:
- Server IP: ip of the target server.
- Server user: user to be used when connecting through ssh.
- Configure nginx: whether to setup nginx.
Server Ip and user will be stored in a configuration file
.rpirc
, which will be read on consecutive executions.
The process will:
- Install
vsftdp
, required for deploying. - Install
docker
. - Configure
nginx
, if requested.
Available commands
- init: described above, to initially configure a server.
- deploy: deploy a docker/web application from a folder.
- config: read and update configuration values.
Development
# install dependencies
npm i
# build cli
npm run build-local
# link the package globally
npm link
# test cli
rpi -h