如何在 windows 上通过 bash 访问 AWS SAM-CLI?
How do i access AWS SAM-CLI through bash on windows?
我 运行 Windows 10 岁,只能通过命令提示符访问 AWS SAM,但不能 bash。当我尝试使用 bash 时,出现 bash: sam: command not found
错误。
如果有帮助,我目前已经安装了 AWS CLI v2 并通过 MSI 文件安装了它。
为什么我无法通过 bash 使用 SAM?
编辑:是的,我知道它没有明确说明您可以使用 AWS 设置指南bash
Verify the installation.
After completing the installation, verify it by opening a new command prompt or PowerShell prompt. You should be able to invoke sam from the command line.
但是,我还是希望能够通过bash来使用它。有解决方法吗?
你试过了吗sam.cmd
?
有时bash 不知道如何执行.cmd
文件。这是一个 thread 有这个问题。
你也可以试试this solution:
alias sam='sam.cmd'
我 运行 Windows 10 岁,只能通过命令提示符访问 AWS SAM,但不能 bash。当我尝试使用 bash 时,出现 bash: sam: command not found
错误。
如果有帮助,我目前已经安装了 AWS CLI v2 并通过 MSI 文件安装了它。
为什么我无法通过 bash 使用 SAM?
编辑:是的,我知道它没有明确说明您可以使用 AWS 设置指南bash
Verify the installation. After completing the installation, verify it by opening a new command prompt or PowerShell prompt. You should be able to invoke sam from the command line.
但是,我还是希望能够通过bash来使用它。有解决方法吗?
你试过了吗sam.cmd
?
有时bash 不知道如何执行.cmd
文件。这是一个 thread 有这个问题。
你也可以试试this solution:
alias sam='sam.cmd'