diff --git a/README.md b/README.md index c872a89..fd9ea97 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ CLI for the ContinuousPHP platform. Manage projects and build easily from your f ## Installation as Phar ( Recommended ) -Download the latest version of continuousphpcli as a Phar: +Download the latest version of continuousphp cli as a Phar: ```sh $ curl -LSs https://continuousphp.github.io/cli/phar-installer.php | php @@ -24,7 +24,7 @@ $ curl -LSs https://continuousphp.github.io/cli/phar-installer.php | php The command will check your PHP settings, warn you of any issues, and then download it to the current directory. From there, you may place it anywhere you want to make it easier to access (such as `/usr/local/bin`) and chmod it to 755. -You can even rename it to just `continuousphpcli` to avoid having to type the .phar extension every time. +You can even rename it to just `continuousphp` to avoid having to type the .phar extension every time. ## Documentation diff --git a/cphp-gh-release-asset.sh b/cphp-gh-release-asset.sh index 2dc9f59..c677027 100755 --- a/cphp-gh-release-asset.sh +++ b/cphp-gh-release-asset.sh @@ -22,8 +22,8 @@ upload_url=`curl -sS -H "Authorization: token ${GITHUB_TOKEN}" https://api.githu echo "Attach phar to github release: $PHAR_NAME" echo "Upload to $upload_url" -curl -sS -H "Authorization: token ${GITHUB_TOKEN}" -H "Content-Type: application/octet-stream" --upload-file $PHAR_NAME "$upload_url?name=continuousphpcli.phar" -curl -sS -H "Authorization: token ${GITHUB_TOKEN}" -H "Content-Type: application/octet-stream" --upload-file "$PHAR_NAME.sig" "$upload_url?name=continuousphpcli.sig" +curl -sS -H "Authorization: token ${GITHUB_TOKEN}" -H "Content-Type: application/octet-stream" --upload-file $PHAR_NAME "$upload_url?name=continuousphp.phar" +curl -sS -H "Authorization: token ${GITHUB_TOKEN}" -H "Content-Type: application/octet-stream" --upload-file "$PHAR_NAME.sig" "$upload_url?name=continuousphp.sig" rm -rf .git mkdocs build -d doc_dist @@ -34,7 +34,7 @@ git checkout gh-pages rm -rf doc mv ../doc_dist doc -php -r '$x = json_decode(file_get_contents("manifest.json"), true); $x["'$TAG'"] = ["name"=>"continuousphpcli.phar","sha1"=>sha1_file("../'$PHAR_NAME'"),"url"=>"https://github.com/continuousphp/cli/releases/download/'$TAG'/continuousphpcli.phar","version"=>substr("'$TAG'",1)]; file_put_contents("manifest.json", json_encode($x)); print_r($x);' +php -r '$x = json_decode(file_get_contents("manifest.json"), true); $x["'$TAG'"] = ["name"=>"continuousphp.phar","sha1"=>sha1_file("../'$PHAR_NAME'"),"url"=>"https://github.com/continuousphp/cli/releases/download/'$TAG'/continuousphp.phar","version"=>substr("'$TAG'",1)]; file_put_contents("manifest.json", json_encode($x)); print_r($x);' git config user.email "info@continuousphp.com" git config user.name "${CPHP_BUILT_BY}" @@ -43,4 +43,4 @@ git add -A doc git add manifest.json git commit -m "Update doc to tag $TAG" -git push origin gh-pages \ No newline at end of file +git push origin gh-pages diff --git a/docs/index.md b/docs/index.md index b043f72..b7609a8 100644 --- a/docs/index.md +++ b/docs/index.md @@ -7,15 +7,15 @@ The ContinuousPHP CLI is a command line interface for the ContinuousPHP Platform ## Installation We recommend using the php installer script to install the latest version -of continuousphpcli PHAR. +of continuousphp PHAR. $ curl -LSs https://continuousphp.github.io/cli/phar-installer.php | php # Move the phar in your user bin directory - $ mv continuousphpcli.phar /usr/local/bin/continuousphpcli + $ mv continuousphp.phar /usr/local/bin/continuousphp The command will check your PHP settings, warn you of any issues, and then download it to the current directory. From there, you may place it anywhere you want to make it easier to access (such as `/usr/local/bin`) and chmod it to 755. -You can even rename it to just `continuousphpcli` to avoid having to type the .phar extension every time. +You can even rename it to just `continuousphp` to avoid having to type the .phar extension every time. ## Configuration @@ -29,10 +29,10 @@ on your credentials page at https://app.continuousphp.com/credentials Configure a new profile in interactive mode with this command: - $ continuousphpcli configure + $ continuousphp configure > Profile name [default]: myProfileName > User Token: XXXXXXXXXX < Profile myUserAccount saved in /home/user/.continuousphp/credentials -If you choose `default` as the profile name, the continuousphpcli will automatically use this credential. -Otherwise, you must specify the option `--profile myProfileName` on each command. \ No newline at end of file +If you choose `default` as the profile name, the continuousphp command will automatically use this credential. +Otherwise, you must specify the option `--profile myProfileName` on each command.