Skip to content

Latest commit

 

History

History
71 lines (45 loc) · 1.06 KB

digital-ocean.md

File metadata and controls

71 lines (45 loc) · 1.06 KB

Digital Ocean

https://www.digitalocean.com/

Smaller simpler cloud provider used by developers for personal projects.

CLI - doctl

Create your API token

You will need this to authenticate the CLI.

Create it here:

Left panel -> API

Install

Install doc

in HariSekhon/DevOps-Bash-tools:

install_doctl.sh

This automates installation and on Mac if $DIGITAL_OCEAN_TOKEN is set automates config initialization via Expect if no config.yml is found.

Usage

doctl account get

Install serverless extensions

doctl serverless install

or

doctl sls install

(sls is short form for serverless)

Connect to development namespace:

doctl sls connect
doctl sls status
doctl sls deploy .
doctl sls fn get sample/hello --url
doctl sls uninstall
Ported from private Knowledge Base page 2020+