diff --git a/src/commands/create-repository.php b/src/commands/github-repo-create.php
similarity index 99%
rename from src/commands/create-repository.php
rename to src/commands/github-repo-create.php
index b5a1cbc9..34f5dcda 100644
--- a/src/commands/create-repository.php
+++ b/src/commands/github-repo-create.php
@@ -32,7 +32,7 @@ class Create_Repository extends Command {
/**
* {@inheritdoc}
*/
- protected static $defaultName = 'create-repository'; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.PropertyNotSnakeCase
+ protected static $defaultName = 'github:create-repository'; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.PropertyNotSnakeCase
/**
* The new repository's slug.
diff --git a/src/commands/delete-branch-protection-rules.php b/src/commands/github-repo-delete-trunk-protection-rules.php
similarity index 88%
rename from src/commands/delete-branch-protection-rules.php
rename to src/commands/github-repo-delete-trunk-protection-rules.php
index f3d2ce54..20e0e8a1 100644
--- a/src/commands/delete-branch-protection-rules.php
+++ b/src/commands/github-repo-delete-trunk-protection-rules.php
@@ -9,7 +9,7 @@
use Symfony\Component\Console\Output\OutputInterface;
class Delete_Branch_Protection_Rules extends Command {
- protected static $defaultName = 'delete-branch-protection-rules';
+ protected static $defaultName = 'github:delete-trunk-protection-rules';
protected function configure() {
$this
@@ -24,7 +24,7 @@ protected function execute( InputInterface $input, OutputInterface $output ) {
$slug = $input->getArgument( 'repo-slug' );
$output->writeln( "Adding branch protection rules to $slug." );
- $delete_branch_protection_rules = $api_helper->call_github_api( "repos/" . GITHUB_API_OWNER . "/$slug/branches/master/protection", array(), 'DELETE' );
+ $delete_branch_protection_rules = $api_helper->call_github_api( "repos/" . GITHUB_API_OWNER . "/$slug/branches/trunk/protection", array(), 'DELETE' );
if ( ! empty( '' === $delete_branch_protection_rules ) ) {
$output->writeln( "Done. Deleted branch protection rules for $slug." );
diff --git a/src/commands/add-branch-protection-rules.php b/src/commands/github-repo-set-trunk-protection-rules.php
similarity index 95%
rename from src/commands/add-branch-protection-rules.php
rename to src/commands/github-repo-set-trunk-protection-rules.php
index b1d1cf7d..d5ec3d0d 100644
--- a/src/commands/add-branch-protection-rules.php
+++ b/src/commands/github-repo-set-trunk-protection-rules.php
@@ -9,7 +9,7 @@
use Symfony\Component\Console\Output\OutputInterface;
class Add_Branch_Protection_Rules extends Command {
- protected static $defaultName = 'add-branch-protection-rules';
+ protected static $defaultName = 'github:set-repo-trunk-protection-rules';
protected function configure() {
$this
diff --git a/src/commands/jetpack-enable-sso.php b/src/commands/jetpack-module-enable-sso.php
similarity index 96%
rename from src/commands/jetpack-enable-sso.php
rename to src/commands/jetpack-module-enable-sso.php
index ab3964f0..4323a484 100644
--- a/src/commands/jetpack-enable-sso.php
+++ b/src/commands/jetpack-module-enable-sso.php
@@ -9,7 +9,7 @@
use Symfony\Component\Console\Output\OutputInterface;
class Jetpack_Enable_SSO extends Command {
- protected static $defaultName = 'jetpack-enable-sso';
+ protected static $defaultName = 'jetpack:enable-sso-module';
protected function configure() {
$this
diff --git a/src/commands/jetpack-module-list.php b/src/commands/jetpack-module-list.php
index 3901d80e..29d33d17 100644
--- a/src/commands/jetpack-module-list.php
+++ b/src/commands/jetpack-module-list.php
@@ -10,7 +10,7 @@
use Symfony\Component\Console\Helper\Table;
class Jetpack_Modules extends Command {
- protected static $defaultName = 'jetpack-module-list';
+ protected static $defaultName = 'jetpack:list-modules';
protected function configure() {
$this
diff --git a/src/commands/jetpack-sites-with.php b/src/commands/jetpack-module-search.php
similarity index 98%
rename from src/commands/jetpack-sites-with.php
rename to src/commands/jetpack-module-search.php
index c1916b52..752eeac1 100644
--- a/src/commands/jetpack-sites-with.php
+++ b/src/commands/jetpack-module-search.php
@@ -12,7 +12,7 @@
class Jetpack_Sites_With extends Command {
- protected static $defaultName = 'jetpack-sites-with';
+ protected static $defaultName = 'jetpack:search-modules';
/**
* @var Api_Helper|null API Helper instance.
diff --git a/src/commands/jetpack-module.php b/src/commands/jetpack-module-toggle.php
similarity index 97%
rename from src/commands/jetpack-module.php
rename to src/commands/jetpack-module-toggle.php
index f5b05048..2a4eda77 100644
--- a/src/commands/jetpack-module.php
+++ b/src/commands/jetpack-module-toggle.php
@@ -9,7 +9,7 @@
use Symfony\Component\Console\Output\OutputInterface;
class Jetpack_Module extends Command {
- protected static $defaultName = 'jetpack-module';
+ protected static $defaultName = 'jetpack:toggle-module';
private array $settings = array(
'enable' => true,
diff --git a/src/commands/create-development-site.php b/src/commands/pressable-site-clone.php
similarity index 99%
rename from src/commands/create-development-site.php
rename to src/commands/pressable-site-clone.php
index 836ac958..e253a5ca 100644
--- a/src/commands/create-development-site.php
+++ b/src/commands/pressable-site-clone.php
@@ -16,7 +16,7 @@
use function Team51\Helper\run_pressable_site_wp_cli_command;
class Create_Development_Site extends Command {
- protected static $defaultName = 'create-development-site';
+ protected static $defaultName = 'pressable:clone-site';
protected function configure() {
$this
diff --git a/src/commands/create-production-site.php b/src/commands/pressable-site-create.php
similarity index 99%
rename from src/commands/create-production-site.php
rename to src/commands/pressable-site-create.php
index 4e4e672d..7f01cabf 100644
--- a/src/commands/create-production-site.php
+++ b/src/commands/pressable-site-create.php
@@ -11,7 +11,7 @@
use function Team51\Helper\run_app_command;
class Create_Production_Site extends Command {
- protected static $defaultName = 'create-production-site';
+ protected static $defaultName = 'pressable:create-site';
const DEPLOYHQ_ZONE_EUROPE = 3; // UK
const DEPLOYHQ_ZONE_US_EAST = 6;
diff --git a/src/commands/plugin-list.php b/src/commands/wp-plugin-list.php
similarity index 97%
rename from src/commands/plugin-list.php
rename to src/commands/wp-plugin-list.php
index 5b4105b2..061ece3b 100644
--- a/src/commands/plugin-list.php
+++ b/src/commands/wp-plugin-list.php
@@ -10,7 +10,7 @@
use Symfony\Component\Console\Helper\Table;
class Plugin_List extends Command {
- protected static $defaultName = 'plugin-list';
+ protected static $defaultName = 'wp:plugin-list';
protected function configure() {
$this