Dejo aquí la lista de comandos powershell para instalar/actualizar soluciones y características, a modo de chuleta para no tener que buscarlo.
Add SolutionAdd-SPSolution c:\solutions\myproject.wsp
Deploy Solution
Install-SPSolution –Identity myproject.wsp –WebApplication http://myprojectsite -GACDeployment
Nota: Se pueden usar los parametros
Install-SPSolution –Identity myproject.wsp –WebApplication http://myprojectsite -GACDeployment
Nota: Se pueden usar los parametros
- –CASPolicies: Si no quieres desplegar a la GAC
- –AllWebApplications: Si quieres desplegar la solucion a todas las aplicaciones web
- –Force: para forzar el despliegue de la solucion
Upgrade Solution
Update-SPSolution –Identity myproject.wsp –LiteralPath c:\solutions\myproject.wsp –GACDeployment
Update-SPSolution –Identity myproject.wsp –LiteralPath c:\solutions\myproject.wsp –GACDeployment
Retract Solution
Uninstall-SPSolution –Identity myproject.wsp –WebApplication http://myprojectsite
Uninstall-SPSolution –Identity myproject.wsp –WebApplication http://myprojectsite
Remove Solution
Remove-SPSolution –Identity myproject.wsp
Remove-SPSolution –Identity myproject.wsp
Activate Feature
Enable-SPFeature –Identity MyFeature –url http://myprojectsite
Enable-SPFeature –Identity MyFeature –url http://myprojectsite
Deactivate Feature
Disable-SPFeature –Identity MyFeature –url http://myprojectsite
Disable-SPFeature –Identity MyFeature –url http://myprojectsite
No hay comentarios:
Publicar un comentario