Console utility for working with DigitalOcean API
- Run
composer create-project grayfolk/digitalocean-api-shell
. - Go to
digitalocean-api-shell
folder and editaccounts.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.
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
.
- Move Domain to another account
- Backup Domain(s) zone file
- Create new Domain from zone file