Skip to content

Instantly share code, notes, and snippets.

@idleberg
Last active August 28, 2024 17:09
Show Gist options
  • Save idleberg/e0872d37f792d3d969f4f3d24698773f to your computer and use it in GitHub Desktop.
Save idleberg/e0872d37f792d3d969f4f3d24698773f to your computer and use it in GitHub Desktop.
Scoop Aliases

Common aliases for the scoop package manager

# Install app
scoop alias add i 'scoop install $args[0]' 'Install app'
scoop alias add add 'scoop install $args[0]' 'Install app'

# Uninstall app
scoop alias add rm 'scoop uninstall $args[0]' 'Uninstall an app'
scoop alias add remove 'scoop uninstall $args[0]' 'Uninstall an app'

# List apps
scoop alias add ls 'scoop list' 'List installed apps'

# Update
scoop alias add u 'scoop update $args[0]' 'Update apps, or Scoop itself'
scoop alias add upgrade 'scoop update $args[0]' 'Update apps, or Scoop itself'
@Luckz
Copy link

Luckz commented Jun 19, 2019

scoop alias add ua 'scoop update *' 'Update all installed apps'
scoop alias add ca 'scoop cleanup *' 'Delete all old installed versions; better exit running programs first'
scoop alias add cc 'scoop cache rm *' 'Empty download cache'
scoop alias add s 'scoop status' 'Show status and check for new app versions'

the description block does not seem to be retained or used, so don't bother with that.

Typo above:
scoop alias add i 'scoop install $args[0]' 'Install app'

@kid1412621
Copy link

how can I pass multiple args?

@2x-Helix
Copy link

how can I pass multiple args?

Old post but:
scoop alias add i 'foreach ($_ in $args) {scoop install $_}' 'Install apps'

@kid1412621
Copy link

how can I pass multiple args?

Old post but: scoop alias add i 'foreach ($_ in $args) {scoop install $_}' 'Install apps'

thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment