From fb3a48af927e9aeb4e14e2d47fcf95c74c209634 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A1lm=C3=A1n=20Tarnay?= Date: Sun, 15 Mar 2020 16:41:07 +0100 Subject: [PATCH 1/2] Change example deployment IDs to alphanumeric to avoid confusing them with version numbers --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0494bf75..1b79f680 100644 --- a/README.md +++ b/README.md @@ -288,8 +288,8 @@ The response gives the version of the deployment. - `clasp deploy` (create new deployment and new version) - `clasp deploy --versionNumber 4` (create new deployment) - `clasp deploy --description "Updates sidebar logo."` (deploy with description) -- `clasp deploy --deploymentId 123` (create new version) -- `clasp deploy -V 7 -d "Updates sidebar logo." -i 456` +- `clasp deploy --deploymentId abcd1234` (create new version) +- `clasp deploy -V 7 -d "Updates sidebar logo." -i abdc1234` ### Undeploy From 6d1ac3347c83e4dc4f1cb49943410d5a1450aeb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A1lm=C3=A1n=20Tarnay?= Date: Sun, 15 Mar 2020 17:11:47 +0100 Subject: [PATCH 2/2] Add note about each deployment having a unique URL This would have helped me immensely. There seems to be a lot of confusion around redeployments, see google/clasp#752 and see the somewhat unrelated google/clasp#63 with lots of "unrelated" comments --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1b79f680..ddadcebc 100644 --- a/README.md +++ b/README.md @@ -275,7 +275,10 @@ List deployments of a script. ### Deploy Creates a version and deploys a script. -The response gives the version of the deployment. +The response gives the deployment ID and the version of the deployment. + +For web apps, each deployment has a unique URL. +To update/redeploy an existing deployment, provide the deployment ID. #### Options @@ -288,7 +291,7 @@ The response gives the version of the deployment. - `clasp deploy` (create new deployment and new version) - `clasp deploy --versionNumber 4` (create new deployment) - `clasp deploy --description "Updates sidebar logo."` (deploy with description) -- `clasp deploy --deploymentId abcd1234` (create new version) +- `clasp deploy --deploymentId abcd1234` (redeploy and create new version) - `clasp deploy -V 7 -d "Updates sidebar logo." -i abdc1234` ### Undeploy