Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ccc_interns's avatar

Can not run 'register' for Laravel Spark. Help Please!!!

I must be missing something but I'm not sure how that can be as the documentation for installation is quite short.
I have cloned spark-installer. I have run composer install. I have added spark-installer to my $PATH variable.

WHAT'S NEXT? Just run spark register..... NOPE!

 [InvalidArgumentException]          
  Command "register" is not defined.

spark new.... NOPE!

I run spark list and I see no commands for new, register, token. Am I missing something?

Laravel Spark version 1.0.0

Usage:
  command [options] [arguments]

Options:
  -h, --help            Display this help message
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi            Force ANSI output
      --no-ansi         Disable ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Available commands:
  help     Displays help for a command
  install  Install Laravel Spark into the current project.
  list     Lists commands
0 likes
4 replies
martinbean's avatar
Level 80

@ccc_interns I had the same issue but not sure what caused it. I fixed it by doing the following:

  1. Remove the locally-cloned spark-installer.
  2. Install spark-installer globally using Composer: composer global require laravel/spark-installer
  3. Add the global Composer bin directory to my PATH.

Then when I ran spark from the command line, it had all the commands (including register).

As I say, I didn’t look into the cause of the issue, but wonder if it’s something to do with running the command from a different directory, and the installing using a relative path to find command classes.

4 likes
euclimauro's avatar

I'm having the same issue I have just subscribed now, and I'm really struggling to install spark on mac

Please or to participate in this conversation.