Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CLI install PowerShell instructions #1757

Merged
merged 1 commit into from
May 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update CLI install PowerShell instructions
normj authored and haydenbaker committed May 2, 2023
commit fb515a94db93b74bed904599e88d69823be6d4ee
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
@@ -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|
@@ -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.

@@ -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``).
@@ -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.