Skip to content

Commit

Permalink
Merge pull request #7 from grayfolk/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
grayfolk authored Oct 15, 2021
2 parents 94e694d + 2628a47 commit 4aa0d45
Show file tree
Hide file tree
Showing 8 changed files with 165 additions and 169 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,4 @@ fabric.properties
/accounts.json
/.php-cs-fixer.cache
/tmp
/do
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Digitalocean API shell
Console utility for working with DigitalOcean API

### Requirements
* PHP 7.4+
* [Composer](https://getcomposer.org)
* PHP [Curl](https://www.php.net/manual/book.curl.php) extension
* PHP [GMP](https://www.php.net/manual/book.gmp.php) extension
* PHP [JSON](https://www.php.net/manual/book.json.php) extension

### Installation
* Run `composer create-project grayfolk/digitalocean-api-shell`.
* Go to `digitalocean-api-shell` folder and edit `accounts.json`. This is a simple [JSON](https://www.json.org) file with `"username" : "API Key"` records. You can use whatever name is convenient for you (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](https://cloud.digitalocean.com/account/api/tokens/new).

### Running
Go to `digitalocean-api-shell` folder and run `./do`.
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"email": "[email protected]"
}
],
"minimum-stability": "dev",
"minimum-stability": "stable",
"autoload": {
"psr-4": {
"App\\": "src/"
Expand All @@ -35,7 +35,8 @@
},
"scripts": {
"post-install-cmd": [
"chmod +x do.sh",
"ln -sf src/digitalocean-api-shell.sh do",
"chmod +x do",
"mkdir -m=777 -p tmp",
"cp accounts.json.example accounts.json"
],
Expand Down
Loading

0 comments on commit 4aa0d45

Please sign in to comment.