diff --git a/src/Providers/ArtisanServiceProvider.php b/src/Providers/ArtisanServiceProvider.php
index <HASH>..<HASH> 100644
--- a/src/Providers/ArtisanServiceProvider.php
+++ b/src/Providers/ArtisanServiceProvider.php
@@ -128,8 +128,8 @@ class ArtisanServiceProvider extends BaseArtisanServiceProvider
      */
     public function register(): void
     {
-        $this->registerCommands($this->commands);
-        $this->registerCommands($this->devCommands);
+        ! $this->app->runningInConsole() || $this->registerCommands($this->commands);
+        ! $this->app->runningInConsole() || $this->registerCommands($this->devCommands);
     }
 
     /**
Register artisan commands on console mode only