Skip to content

Commit 8a3d70b

Browse files
normjSteven Yuan
authored andcommitted
Update CLI install PowerShell instructions (smithy-lang#1757)
1 parent 749288b commit 8a3d70b

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

docs/source-2.0/guides/smithy-cli/cli_installation.rst

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,9 @@ Releases of the Smithy CLI can be found on the `Smithy GitHub releases`_ page.
221221
:caption: powershell
222222
:substitutions:
223223
224-
(mkdir smithy-install\smithy -Force) -and
225-
(wget |release-uri|/|windows-tar| -outfile smithy-install\|windows-tar|)
224+
New-Item -Type Directory -Path smithy-install\smithy -Force; `
225+
Invoke-WebRequest -Uri |release-uri|/|windows-tar| `
226+
-OutFile smithy-install\|windows-tar|
226227
227228
.. seealso::
228229
|verification-note|
@@ -240,8 +241,8 @@ Releases of the Smithy CLI can be found on the `Smithy GitHub releases`_ page.
240241
:caption: powershell
241242
:substitutions:
242243
243-
(tar -xf smithy-install\|windows-tar| -C smithy-install\smithy) -and
244-
(smithy-install\smithy\install)
244+
tar -xf smithy-install\|windows-tar| -C smithy-install\smithy;
245+
smithy-install\smithy\install
245246
246247
Follow the installer prompts accordingly to complete the installation.
247248

@@ -444,16 +445,18 @@ We'll be using these to perform the verification.
444445
:caption: powershell
445446
:substitutions:
446447
447-
(wget |release-uri|/|windows-tar|.asc -outfile smithy-install\|windows-tar|.asc) -and
448-
(wget |release-uri|/|windows-tar|.sha256 -outfile smithy-install\|windows-tar|.sha256)
448+
Invoke-WebRequest -Uri |release-uri|/|windows-tar|.asc `
449+
-OutFile smithy-install\smithy-cli-windows-x64.tar.gz.asc;
450+
Invoke-WebRequest -Uri |release-uri|/|windows-tar|.sha256 `
451+
-OutFile smithy-install\smithy-cli-windows-x64.tar.gz.sha256
449452
450453
Compute the actual checksum of the tarball using ``certutil``.
451454

452455
.. code-block:: powershell
453456
:caption: powershell
454457
:substitutions:
455458
456-
certutil -hashfile smithy-install\|windows-tar|.sha256 SHA256
459+
certutil -hashfile smithy-install\|windows-tar| SHA256
457460
458461
Now, print out the expected checksum from the file that you
459462
downloaded (``.sha256``).
@@ -474,7 +477,8 @@ We'll be using these to perform the verification.
474477
:caption: powershell
475478
:substitutions:
476479
477-
(wget |release-uri|/smithy.asc -outfile smithy-install\smithy.asc) -and (gpg --import smithy-install\smithy.asc)
480+
Invoke-WebRequest -Uri |release-uri|/smithy.asc -OutFile smithy-install\smithy.asc;
481+
gpg --import smithy-install\smithy.asc
478482
479483
Finally, after importing the key, verify the signature of the
480484
tarball with gpg.

0 commit comments

Comments
 (0)