# wp-release: commands

Read from wp-release at v1.0.1.

## mmwp-release all

build → check → deploy-wporg → release-github, stopping at the first failure

```
mmwp-release all
```

| Argument | Description |
| --- | --- |
| --fail-if-unapproved | Exit 32 when the plugin has no wordpress.org SVN repository yet |
| --dry-run | Do not publish anything (deploy-wporg stops before svn commit) |
| --debug-mode | Verbose output (command output, table format) |
| --force | Skip the passing-check gate |
| --path=<path> | Plugin root (default: current directory) |
| --format=<format> | Output format: table\|json |
| --slug=<slug> | Plugin slug (default: MMWP_SLUG or main plugin file) |

Source: https://github.com/mammothwp/wp-release/blob/v1.0.1/src/Command/AllCommand.php#L23

## mmwp-release build

Build dist/<slug>/ and <slug>.zip and validate them

```
mmwp-release build
```

| Argument | Description |
| --- | --- |
| --dry-run | Do not publish anything (deploy-wporg stops before svn commit) |
| --debug-mode | Verbose output (command output, table format) |
| --force | Skip the passing-check gate |
| --path=<path> | Plugin root (default: current directory) |
| --format=<format> | Output format: table\|json |
| --slug=<slug> | Plugin slug (default: MMWP_SLUG or main plugin file) |

Source: https://github.com/mammothwp/wp-release/blob/v1.0.1/src/Command/BuildCommand.php#L22

## mmwp-release check

Run Plugin Check against the built zip in a throwaway WordPress site

```
mmwp-release check
```

| Argument | Description |
| --- | --- |
| --strict | Fail on Plugin Check warnings too (MMWP_PCP_STRICT=true) |
| --allow=<allow> | Allow Plugin Check WARNINGs matching this regex; repeatable (MMWP_PCP_ALLOW) |
| --deps=<deps> | wordpress.org slugs (space/comma separated) installed and activated before the plugin; overrides MMWP_BROWSER_DEPS |
| --self-test | Also run `wp mmwp self-test <slug>` when provided |
| --keep | Keep the temp WordPress site |
| --db=<db> | sqlite (default) or mysql (MMWP_DB_HOST/USER/PASS/NAME) |
| --dry-run | Do not publish anything (deploy-wporg stops before svn commit) |
| --debug-mode | Verbose output (command output, table format) |
| --force | Skip the passing-check gate |
| --path=<path> | Plugin root (default: current directory) |
| --format=<format> | Output format: table\|json |
| --slug=<slug> | Plugin slug (default: MMWP_SLUG or main plugin file) |

Source: https://github.com/mammothwp/wp-release/blob/v1.0.1/src/Command/CheckCommand.php#L54

## mmwp-release deploy-wporg

Publish the built plugin to wordpress.org SVN (idempotent)

```
mmwp-release deploy-wporg
```

| Argument | Description |
| --- | --- |
| --fail-if-unapproved | Exit 32 when the plugin has no wordpress.org SVN repository yet |
| --strict | Also require 0 warnings in plugin-check.json |
| --allow=<allow> | Allow Plugin Check WARNINGs matching this regex when re-checking; repeatable (MMWP_PCP_ALLOW) |
| --dry-run | Do not publish anything (deploy-wporg stops before svn commit) |
| --debug-mode | Verbose output (command output, table format) |
| --force | Skip the passing-check gate |
| --path=<path> | Plugin root (default: current directory) |
| --format=<format> | Output format: table\|json |
| --slug=<slug> | Plugin slug (default: MMWP_SLUG or main plugin file) |

Source: https://github.com/mammothwp/wp-release/blob/v1.0.1/src/Command/DeployWporgCommand.php#L37

## mmwp-release release-github

Create the GitHub Release for the header version (idempotent)

```
mmwp-release release-github
```

| Argument | Description |
| --- | --- |
| --dry-run | Do not publish anything (deploy-wporg stops before svn commit) |
| --debug-mode | Verbose output (command output, table format) |
| --force | Skip the passing-check gate |
| --path=<path> | Plugin root (default: current directory) |
| --format=<format> | Output format: table\|json |
| --slug=<slug> | Plugin slug (default: MMWP_SLUG or main plugin file) |

Source: https://github.com/mammothwp/wp-release/blob/v1.0.1/src/Command/ReleaseGithubCommand.php#L22

## mmwp-release status

Show versions, published state and what the deploy commands would do

```
mmwp-release status
```

| Argument | Description |
| --- | --- |
| --dry-run | Do not publish anything (deploy-wporg stops before svn commit) |
| --debug-mode | Verbose output (command output, table format) |
| --force | Skip the passing-check gate |
| --path=<path> | Plugin root (default: current directory) |
| --format=<format> | Output format: table\|json |
| --slug=<slug> | Plugin slug (default: MMWP_SLUG or main plugin file) |

Source: https://github.com/mammothwp/wp-release/blob/v1.0.1/src/Command/StatusCommand.php#L22
