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 …


This content originally appeared on DEV Community and was authored by Birol AYDIN

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
npm install -g typescript@next
# .\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"

powershell script


This content originally appeared on DEV Community and was authored by Birol AYDIN


Print Share Comment Cite Upload Translate Updates
APA

Birol AYDIN | Sciencx (2024-11-10T19:27:05+00:00) Update with a single command. Retrieved from https://www.scien.cx/2024/11/10/update-with-a-single-command/

MLA
" » Update with a single command." Birol AYDIN | Sciencx - Sunday November 10, 2024, https://www.scien.cx/2024/11/10/update-with-a-single-command/
HARVARD
Birol AYDIN | Sciencx Sunday November 10, 2024 » Update with a single command., viewed ,<https://www.scien.cx/2024/11/10/update-with-a-single-command/>
VANCOUVER
Birol AYDIN | Sciencx - » Update with a single command. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/11/10/update-with-a-single-command/
CHICAGO
" » Update with a single command." Birol AYDIN | Sciencx - Accessed . https://www.scien.cx/2024/11/10/update-with-a-single-command/
IEEE
" » Update with a single command." Birol AYDIN | Sciencx [Online]. Available: https://www.scien.cx/2024/11/10/update-with-a-single-command/. [Accessed: ]
rf:citation
» Update with a single command | Birol AYDIN | Sciencx | https://www.scien.cx/2024/11/10/update-with-a-single-command/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.