2022-05-11 08:32:20 +00:00

30 lines
1.1 KiB
JSON

{
"version": "2.6.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.6.0/wp-cli-2.6.0.phar#/wp-cli.phar",
"hash": "sha512:d73f9161a1f03b8ecaac7b196b6051fe847b3c402b9c92b1f6f3acbe5b1cf91f7260c0e499b8947bab75920ecec918b39533ca65fa5a1fd3eb6ce7b8e2c58e7d",
"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"
}
}
}