DEV Community

Birol AYDIN
Birol AYDIN

Posted on

Update with a single command

Instead of doing the updates one by one via the command line, let's do them all with a single command.

When installing Deno and TypeScript, we use the following commands respectively. If we consider that there are more and add that we run them one by one... Instead, let's write a small script with PowerShell to make our job easier.

irm https://deno.land/install.ps1 | iex
Enter fullscreen mode Exit fullscreen mode
npm install -g typescript@next
Enter fullscreen mode Exit fullscreen mode
# .\script.ps1

# Bun update
powershell -c "irm https://bun.sh/install.ps1 | iex"
Write-Output "`e[1;32mBun was installed successfully!`n`n`e[0m"


# Deno update
Invoke-RestMethod https://deno.land/install.ps1 | Invoke-Expression
Write-Output "`e[1;32mDeno was installed successfully!`n`n`e[0m"

# Typescript update
npm install -g typescript@next
Write-Output "`e[1;32mTypeScript was installed successfully!`n`n`e[0m"

# Rust ( nightly toolchain ) update
rustup toolchain install nightly
Write-Output "`e[1;32mRust was installed successfully!`n`n`e[0m"
Enter fullscreen mode Exit fullscreen mode

powershell script

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay