Bird
0
0

Which PowerShell command correctly installs Helm on Windows using the official installation script?

hard📝 Workflow Q8 of 15
Kubernetes - Helm Package Manager
Which PowerShell command correctly installs Helm on Windows using the official installation script?
AInvoke-WebRequest -Uri https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 -OutFile get-helm-3.ps1; .\get-helm-3.ps1
BInvoke-WebRequest -Uri https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | Invoke-Expression
Ccurl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
Dchoco install helm
Step-by-Step Solution
Solution:
  1. Step 1: Understand Windows PowerShell script execution

    PowerShell requires downloading the script file and then executing it explicitly.
  2. Step 2: Analyze options

    Invoke-WebRequest -Uri https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 -OutFile get-helm-3.ps1; .\get-helm-3.ps1 downloads the script and runs it correctly; Invoke-WebRequest -Uri https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | Invoke-Expression pipes raw content incorrectly; curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash uses bash which is not native to Windows PowerShell; choco install helm is a valid alternative but not the official script method.
  3. Final Answer:

    Invoke-WebRequest -Uri ... -OutFile get-helm-3.ps1; .\get-helm-3.ps1 -> Option A
  4. Quick Check:

    Download then execute script in PowerShell [OK]
Quick Trick: Download script then run it in PowerShell [OK]
Common Mistakes:
  • Piping script directly to Invoke-Expression without saving
  • Using bash commands on Windows PowerShell
  • Assuming Chocolatey is the only install method

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes