-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from grayfolk/dev
Dev
- Loading branch information
Showing
8 changed files
with
165 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,3 +79,4 @@ fabric.properties | |
/accounts.json | ||
/.php-cs-fixer.cache | ||
/tmp | ||
/do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
"email": "[email protected]" | ||
} | ||
], | ||
"minimum-stability": "dev", | ||
"minimum-stability": "stable", | ||
"autoload": { | ||
"psr-4": { | ||
"App\\": "src/" | ||
|
@@ -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" | ||
], | ||
|
Oops, something went wrong.