Skip to content

Commit

Permalink
Update CLI install PowerShell instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
normj authored and haydenbaker committed May 2, 2023
1 parent 2b647ab commit fb515a9
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions docs/source-2.0/guides/smithy-cli/cli_installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,9 @@ Releases of the Smithy CLI can be found on the `Smithy GitHub releases`_ page.
:caption: powershell
:substitutions:
(mkdir smithy-install\smithy -Force) -and
(wget |release-uri|/|windows-tar| -outfile smithy-install\|windows-tar|)
New-Item -Type Directory -Path smithy-install\smithy -Force; `
Invoke-WebRequest -Uri |release-uri|/|windows-tar| `
-OutFile smithy-install\|windows-tar|
.. seealso::
|verification-note|
Expand All @@ -240,8 +241,8 @@ Releases of the Smithy CLI can be found on the `Smithy GitHub releases`_ page.
:caption: powershell
:substitutions:
(tar -xf smithy-install\|windows-tar| -C smithy-install\smithy) -and
(smithy-install\smithy\install)
tar -xf smithy-install\|windows-tar| -C smithy-install\smithy;
smithy-install\smithy\install
Follow the installer prompts accordingly to complete the installation.

Expand Down Expand Up @@ -444,16 +445,18 @@ We'll be using these to perform the verification.
:caption: powershell
:substitutions:
(wget |release-uri|/|windows-tar|.asc -outfile smithy-install\|windows-tar|.asc) -and
(wget |release-uri|/|windows-tar|.sha256 -outfile smithy-install\|windows-tar|.sha256)
Invoke-WebRequest -Uri |release-uri|/|windows-tar|.asc `
-OutFile smithy-install\smithy-cli-windows-x64.tar.gz.asc;
Invoke-WebRequest -Uri |release-uri|/|windows-tar|.sha256 `
-OutFile smithy-install\smithy-cli-windows-x64.tar.gz.sha256
Compute the actual checksum of the tarball using ``certutil``.

.. code-block:: powershell
:caption: powershell
:substitutions:
certutil -hashfile smithy-install\|windows-tar|.sha256 SHA256
certutil -hashfile smithy-install\|windows-tar| SHA256
Now, print out the expected checksum from the file that you
downloaded (``.sha256``).
Expand All @@ -474,7 +477,8 @@ We'll be using these to perform the verification.
:caption: powershell
:substitutions:
(wget |release-uri|/smithy.asc -outfile smithy-install\smithy.asc) -and (gpg --import smithy-install\smithy.asc)
Invoke-WebRequest -Uri |release-uri|/smithy.asc -OutFile smithy-install\smithy.asc;
gpg --import smithy-install\smithy.asc
Finally, after importing the key, verify the signature of the
tarball with gpg.
Expand Down

0 comments on commit fb515a9

Please sign in to comment.