2023-10-25 12:30:00 +00:00

30 lines
1.1 KiB
JSON

{
"version": "2.9.0",
"description": "Command-line interface for WordPress",
"homepage": "https://wp-cli.org",
"license": "MIT",
"notes": "'wp cli update' is aliased to 'scoop update wp-cli'",
"suggest": {
"PHP": [
"php",
"php-nts"
]
},
"url": "https://github.com/wp-cli/wp-cli/releases/download/v2.9.0/wp-cli-2.9.0.phar#/wp-cli.phar",
"hash": "sha512:39fa365300ab45840e30cc344595bbd175c3558a4499679edd9f9e3a00a846e94179c29c80de3242f1c405f3623605605748d188d9bb98450d9377388f60f113",
"pre_install": [
"echo 'if($args.length -eq 2 -and ($args[0] -eq \"cli\" -and $args[1] -eq \"update\")) { & scoop update wp-cli }' | out-file \"$dir\\wp.ps1\"",
"echo 'else { & php (join-path $PSScriptRoot \"wp-cli.phar\") @args }' | out-file \"$dir\\wp.ps1\" -append"
],
"bin": "wp.ps1",
"checkver": {
"github": "https://github.com/wp-cli/wp-cli"
},
"autoupdate": {
"url": "https://github.com/wp-cli/wp-cli/releases/download/v$version/wp-cli-$version.phar#/wp-cli.phar",
"hash": {
"url": "$url.sha512"
}
}
}