Command-line tool designed to simplify the process of deploying your projects to a server. Using Toad CLI and Toad Server, you can upload, start, stop, and monitor your projects with ease.
Before you start, you'll need to setup Toad Server on your Virtual Private Server (VPS) or any Linux machine.
- Install Toad Serverglobally using npm:
npm i -g toad-server- Run Toad Server.
Make sure to configure Toad Server with necessary configurations. This involves setting up a configuration file where the Conf package stores its data, including a token for authentication and Redis host/port and password for data storage and management.
This configuration file is usually located at /home/USER/.config/toad-server/config.json.
Once Toad Server is up and running, you can setup Toad CLI on the machine where your project's source code is located.
- Install Toad CLIglobally using npm:
npm i -g toad-cli- Run the setupcommand with the-toption to provide the server's token and the-doption to specify the domain of the server whereToad Serveris installed.
Example:
toad setup -t YOUR_SERVER_TOKEN -d YOUR_SERVER_DOMAINWith Toad CLI setup, you're ready to deploy your projects.
- Navigate to your project directory.
- Run toad initto initialize your project for theToadsystem. This might involve creating some configuration files or making other necessary preparations.
- Use toad upto upload the latest changes of your project to the server.
Example:
cd my-project/
toad init
toad upToad CLI provides several commands to manage your project on the server.
- toad start: Starts your project on the server.
- toad stop: Stops your project on the server.
- toad status: Checks the running status of your project on the server.
Example:
toad start
toad stop
toad statusThat's it! With Toad CLI and Toad Server, managing and deploying your projects has never been easier.
Toad CLI and Toad Server are MIT licensed.