grayfolk/digitalocean-api-shell

v1.0.4 2021-10-16 23:49 UTC

This package is auto-updated.

Last update: 2024-03-17 05:07:18 UTC


README

Console utility for working with DigitalOcean API

Requirements

Installation

  • Run composer create-project grayfolk/digitalocean-api-shell.
  • Go to digitalocean-api-shell folder and edit accounts.json. This is a simple JSON file with "username" : "API Key" pairs. You can use whatever username is convenient for you - it's not related to DigitalOcean and used as alias only (but it shoud be unique) and real DigitalOcean API key. You can obtain API key in your DigitalOcean Account - API - Personal access tokens - Generate New Token.

Running

Go to digitalocean-api-shell folder and run ./do.
By default utility will be runned in dry mode, any changes will not be applied. For working mode use -w option: ./do -w.

Features

  • Move Domain to another account
  • Backup Domain(s) zone file
  • Create new Domain from zone file