DEV Community

Yasu Flores
Yasu Flores

Posted on

How to create your own nginx cheatsheet using the waterdeep.io command line interface

Here's a guide on how to create your nginx cheatsheet using the waterdeep.io CLI

  1. Install the CLI
npm install -g waterdeep-cli
  1. Sign up and create an account at waterdeep.io

  2. Create a new file in with name nginx_cheatsheet.txt

  3. Copy and paste the following content to the editor:

### Nginx Cheatsheet

[Start service]
systemctl start nginx

[Stop service]
systemctl stop nginx

[Restart service]
systemctl restart nginx

[Reload config]
systemctl reload nginx
  1. Save the file with "Save Script"

  2. Now you can retrieve that file using the CLI:

$ water get [your username]/nginx_cheatsheet.txt
systemctl start nginx
systemctl stop nginx
systemctl restart nginx

As a side note, remember you can also retrieve a list of all your files on waterdeep by using:

$ water get [your username]

Top comments (0)