_____
/ ____|
| (___ ___ _ ____ _____ _ __ _ __ ___ __ _ _ __
\___ \ / _ \ '__\ \ / / _ \ '__| '_ ` _ \ / _` | '_ \
____) | __/ | \ 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!
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
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
- Your Digital Ocean Token. You can get it here
- the path to your ssh key (necessary for ssh your way to the server)
- 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.
- Your github username
- Your Github Token. You can get one by going here
- Your Netlify username
- Your Netlify Token. You can get one by going here
- 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.
- Your Vercel Token