diff --git a/src/phpDocumentor/Application.php b/src/phpDocumentor/Application.php
index <HASH>..<HASH> 100644
--- a/src/phpDocumentor/Application.php
+++ b/src/phpDocumentor/Application.php
@@ -85,7 +85,10 @@ class Application extends Cilex
         $this->register(new Plugin\ServiceProvider());
 
         $this->addCommandsForProjectNamespace();
-        $this->addCommandsForPharNamespace();
+
+        if (\Phar::isRunning()) {
+            $this->addCommandsForPharNamespace();
+        }
     }
 
     /**
Only add update command for using it in phar context