diff --git a/simplesamlphp_auth.module b/simplesamlphp_auth.module
index ff60aa6..a0b3338 100644
--- a/simplesamlphp_auth.module
+++ b/simplesamlphp_auth.module
@@ -91,7 +91,7 @@ function simplesamlphp_auth_loginpage() {
   $fail   = NULL;
   $output = NULL;
 
-  if (!_simplesamlphp_auth_isEnabled()) {
+  if (!drupal_is_cli() && !_simplesamlphp_auth_isEnabled()) {
     // Exit without initializing.
     drupal_set_message(t("We're sorry this feature is not yet enabled."));
     return '';
