Vscode: Create CLI command to update all extensions

Created on 16 Aug 2018  ·  12Comments  ·  Source: microsoft/vscode

Something like: $ code --update-extensions.

Should not open VS Code. Should mimic Atom’s $ apm upgrade.

extensions feature-request help wanted

Most helpful comment

To add some context, I want to use this in a shell script to automate updating my extensions.

All 12 comments

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

Hi, what's the status here?

This would be really neat to have, as being able to keep all extensions up to date without actually having to go through: start, search for the updates, update then potentially restart in order to ensure when you need to start coding all distractions are already taken care of.

While it seems like it's a minor workflow, for people like me that more often than not get distracted by "Oh.. shiny!", it'd be a lovely quality of life thing to have.

@equinox For your scenario, there is a Extensions: Update All Extensions command that can be used. Would that help?

@ramya-rao-a It's definitely a lovely feature, but sadly that requires having VSCode open. Being able to ensure all extensions are up to date without actually opening the editor would be best, IMO (which would mean I could automate the updating).

To add some context, I want to use this in a shell script to automate updating my extensions.

@equinox For your scenario, there is a Extensions: Update All Extensions command that can be used. Would that help?

Is there a way to run said command (or others) from the command line?

@equinox For your scenario, there is a Extensions: Update All Extensions command that can be used. Would that help?

Is there a way to run said command (or others) from the command line?

This is slow but solved my problem:

for ext in `code --list-extensions`
  do 
    code --install-extension "$ext" 
  done

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.

Happy Coding

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.

Happy Coding

:slightly_frowning_face: In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ryan-wong picture ryan-wong  ·  3Comments

omidgolparvar picture omidgolparvar  ·  3Comments

chrisdias picture chrisdias  ·  3Comments

philipgiuliani picture philipgiuliani  ·  3Comments

biij5698 picture biij5698  ·  3Comments