Skip to content

Instantly share code, notes, and snippets.

@soft2help
soft2help / refreshVendor.ps1
Last active July 27, 2021 09:38
This this a powershel script to connect to your remote server with ssh certificate access, and bring your vendor dependencies in a php project. This brings vendor folder to your local project.
#refresh vendor folder to helpe your ide for example from remote ssh access server,
#you should have 7zip tool to windows and also your certificate to ssh server access
#check how get certificate https://gist.github.com/soft2help/1a037fc08ade3be87418ce50a0383063
#you should place in folder that contains vendor folder in your localproject
#Usually i put it inside the folder .vscode folder and call it from a shortcut that i have in my powershell modules check https://github.com/soft2help/powershell-profile
#of course that you can use this script to update local from remote any folder that you want, this is an example with vendor
Remove-Item -Recurse -Force vendor -ErrorAction SilentlyContinue
Remove-Item -Recurse -Force vendor.tar.gz -ErrorAction SilentlyContinue
Remove-Item -Recurse -Force vendor.tar -ErrorAction SilentlyContinue