Closed mware closed 8 months ago
Your version of cli is super old.
Try running composer global require statamic/cli
to update.
Thank you @jasonvarga. Ran it, still stuck on 1.0.3.
Nothing to install, update or remove
I think the issue is more on my end. We can close this.
Ok how about composer global require statamic/cli:^3
no matches found: statamic/cli:^3
composer -V
?
Composer version 2.5.5
Try composer self-update
and then composer global require statamic/cli:^3
again. Paste the entire output.
Here's what I get in return
Upgrading to version 2.6.5 (stable channel).
Use composer self-update --rollback to return to version 2.5.5
macpro@MacBook-Pro-2 ~ % composer global require statamic/cli:^3
zsh: no matches found: statamic/cli:^3
~What about composer global update statamic/cli
?~
Ok 😄 How about this:
composer global require "statamic/cli ^3.0"
@robdekort If he has v1 in his composer.json file, an update
isn't going to make the major jump to 3.
Ah got it. I'll see myself out.
Can I edit that file directly? Currently:
{
"require": {
"squizlabs/php_codesniffer": "*",
"statamic/cli": "^1.0"
}
}
Yep, change that to ^3.0
then run composer global update
.
Success! The CLI tool now works as expected. Thank you so much for patience and sticking with this one. -Michael
Cannot create a new site with the CLI. Running Composer 2.5.5 Statamic CLI 1.0.3 Mac OS Sonoma 14.0
Running
statamic new whatever
throws an error:There might be user error involved or something that needs to be configured on my end? Thanks