Skip to content
This repository has been archived by the owner on Aug 3, 2021. It is now read-only.

Commit

Permalink
rename commands to
Browse files Browse the repository at this point in the history
Fixes #5
  • Loading branch information
svenluijten committed Jun 11, 2017
1 parent 0c6251a commit 086ee74
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 18 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]
### Changed
- Renamed `create:*` commands to `make:*` ([#5](https://github.com/svenluijten/forge-cli/issues/5))

### Added
- `create:rule` command
- `show:rule` command
Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ PHP version: php71
Created: 2017-03-13 20:59:16
```

#### create:server
#### make:server
Create a new server.

```bash
$ forge create:server
$ forge make:server
--provider=ocean2
--credential={credentialId}
--region=ams2
Expand Down Expand Up @@ -155,11 +155,11 @@ Project type: html
Created: 2017-03-13 21:14:19
```

#### create:site
#### make:site
Create a new site on one of your servers.

```bash
$ forge create:site {serverId}
$ forge make:site {serverId}
--domain=example.com
--type=php
--directory=/public
Expand Down Expand Up @@ -245,11 +245,11 @@ Command: echo 'hello world' >> /dev/null
Created: 2017-03-21 18:26:33
```

#### create:daemon
#### make:daemon
Create a new daemon to run on the given server. If no user is supplied, it defaults to `forge`.

```bash
$ forge create:daemon {serverId}
$ forge make:daemon {serverId}
--command="command to run"
--user=root
```
Expand All @@ -272,11 +272,11 @@ $ forge delete:daemon {serverId} {daemonId}

### Firewall Rules

#### create:rule
#### make:rule
Create a new firewall rule.

```bash
$ forge create:rule {serverId}
$ forge make:rule {serverId}
--name="firewall rule"
--port=88
```
Expand Down Expand Up @@ -306,11 +306,11 @@ $ forge delete:rule {serverId} {ruleId}

### Scheduled jobs

#### create:job
#### make:job
Create a new scheduled job.

```bash
$ forge create:job {serverId}
$ forge make:job {serverId}
--command="echo 'hello world' > /dev/null"
--frequency="hourly"
```
Expand Down Expand Up @@ -340,12 +340,12 @@ $ forge delete:job {serverId} {jobId}

### Databases

#### create:database
#### make:database
Create a new database. The flags `--user` and `--password` must either both be present or both
be absent.

```bash
$ forge create:database {serverId}
$ forge make:database {serverId}
--user="sven"
--password="My_P45sw0rD"
```
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/Daemons/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Create extends BaseCommand
*/
public function configure()
{
$this->setName('create:daemon')
$this->setName('make:daemon')
->addArgument('server', InputArgument::REQUIRED, 'The id of the server to create the daemon on.')
->addOption('command', null, InputOption::VALUE_REQUIRED, 'The command to run.')
->addOption('user', null, InputOption::VALUE_REQUIRED, 'The user to run the command as.', 'forge')
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/Databases/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Create extends BaseCommand
*/
public function configure()
{
$this->setName('create:database')
$this->setName('make:database')
->addArgument('server', InputArgument::REQUIRED, 'The id of the server to create the database on.')
->addOption('user', null, InputOption::VALUE_REQUIRED, 'The username of an (optional) database user to create.', null)
->addOption('password', null, InputOption::VALUE_REQUIRED, 'The password of the database user. Required with "user".', null)
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/FirewallRules/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Create extends BaseCommand
*/
public function configure()
{
$this->setName('create:rule')
$this->setName('make:rule')
->addArgument('server', InputArgument::REQUIRED, 'The id of the server to create the firewall rule on.')
->addOption('name', null, InputOption::VALUE_REQUIRED, 'The name of the firewall rule.')
->addOption('port', null, InputOption::VALUE_REQUIRED, 'The port to create the firewall rule for.')
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/Jobs/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Create extends BaseCommand
*/
public function configure()
{
$this->setName('create:job')
$this->setName('make:job')
->addArgument('server', InputArgument::REQUIRED, 'The id of the server to schedule a new job for.')
->addOption('command', null, InputOption::VALUE_REQUIRED, 'The command to schedule.')
->addOption('frequency', null, InputOption::VALUE_REQUIRED, 'With what frequency should the command run? Valid values are "minutely", "hourly", "nightly", "weekly", "monthly", and "custom".', 'custom')
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/Servers/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Create extends BaseCommand
*/
public function configure()
{
$this->setName('create:server')
$this->setName('make:server')
->addOption('provider', null, InputOption::VALUE_REQUIRED, 'The provider to provision the server on. Can be either "ocean2", "linode", "aws", or "custom".', 'ocean2')
->addOption('credential', 'C', InputOption::VALUE_REQUIRED, 'Credentials to use. Not required when using the "custom" provider.')
->addOption('region', null, InputOption::VALUE_REQUIRED, 'The region to provision the server in. Not required when using the "custom" provider.')
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/Sites/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Create extends BaseCommand
*/
public function configure()
{
$this->setName('create:site')
$this->setName('make:site')
->addArgument('server', InputArgument::REQUIRED, 'The id of the server to create a new site on.')
->addOption('domain', null, InputOption::VALUE_REQUIRED, 'The domain of your new site')
->addOption('type', null, InputOption::VALUE_REQUIRED, 'The type of application to install on the site. Can be either "php", "html", "Symfony", or "symfony_dev".', 'php')
Expand Down

0 comments on commit 086ee74

Please sign in to comment.