@ghostylab/serverman
v0.1.1
Published
A command-line tool for managing all your servers all in one place
Downloads
6
Maintainers
Readme
_____
/ ____|
| (___ ___ _ ____ _____ _ __ _ __ ___ __ _ _ __
\___ \ / _ \ '__\ \ / / _ \ '__| '_ ` _ \ / _` | '_ \
____) | __/ | \ V / __/ | | | | | | | (_| | | | |
|_____/ \___|_| \_/ \___|_| |_| |_| |_|\__,_|_| |_|
Serverman is a comprehensive tool for managing your servers across different platforms directly from your terminal. At the moment the tool can handle DigitalOcean Server Creation and Sites addition, and deploying Github repos on Netlify and Vercel.
If you want to contribute to this project, please read the Contributing file first. For any further doubt don't hesitate to contact me! Issues and features ideas are welcome!
Installation
To install ServerMan locally just open a terminal and run:
npm i -g ghostylab/serverman@latest
then to use it you can run
sm
or
serverman
Configuration
The first time you'll run serverman you'll be asked to provide some configurations. Don't worry if you don't have everything at your first run, you can always access and edit your configs later
Digital Ocean
doAuthToken
- Your Digital Ocean Token. You can get it here
localKeyFile
- the path to your ssh key (necessary for ssh your way to the server)
sshKey
- your Ssh key fingerprint. You can either use an already exsisting key or creating a new one. To add a new ssh key from your computer to Digital Ocean's recognized keys you can go here. You can then ad the fingerprint to your config.
GitHub
GitUser
- Your github username
GitToken
- Your Github Token. You can get one by going here
Netlify
NetlifyUser
- Your Netlify username
NetlifyToken
- Your Netlify Token. You can get one by going here
GithubInstallation
- Your Netlify Installation ID on github. If you wish to use ServerMan to create sites on netlify you will need to connect Netlify and github manually and save the installation ID. To create you connection between Netlify and github you just need to go on netlify user settings and configure the connection with your github account (grant access to all the repos to easily deploy further projects). After doing this you can con on Github Application settings click on configure and copy the number appended at the end of the URL.
Vercel
vercelToken
- Your Vercel Token