SharePoint Online upload a wsp in SharePoint Online Sandbox gallery using powershell

%3CLINGO-SUB%20id%3D%22lingo-sub-179743%22%20slang%3D%22en-US%22%3ESharePoint%20Online%20upload%20a%20wsp%20in%20SharePoint%20Online%20Sandbox%20gallery%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-179743%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%20upload%20a%20wsp%20file%20as%20a%20sandbox%20solution%20to%20SharePoint%20Online%20.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EUsually%26nbsp%3BAdd-SPUserSolution%20is%20used%20for%20On-Prem%20for%20SandBox%20wsps.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHowever%2C%20when%20i%20execute%20in%20SP%20Online%2C%20i%20am%20getting%20the%20below%20message%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3BThe%20term%20'Add-SPUserSolution'%20is%20not%20recognized%20as%20the%20name%20of%20a%20cmdlet%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20think%20there%20should%20be%20an%20alternative%20in%20SP%20Online%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EInstall%E2%80%91PnPSolution%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3Egood%20for%20installing%20once%20uploaded%20what%20i%20am%20looking%20for%20is%20how%20to%20add%2Fupload%20to%20the%20sandbox%20gallery.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Ethanks%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-179743%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-180911%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Online%20upload%20a%20wsp%20in%20SharePoint%20Online%20Sandbox%20gallery%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-180911%22%20slang%3D%22en-US%22%3E%3CP%3EThis%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.vrdmn.com%2F2015%2F11%2Finstall-and-update-sandbox-solutions.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.vrdmn.com%2F2015%2F11%2Finstall-and-update-sandbox-solutions.html%3C%2FA%3E%20might%20help...%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Regular Contributor

I am trying to upload a wsp file as a sandbox solution to SharePoint Online .

 

Usually Add-SPUserSolution is used for On-Prem for SandBox wsps.

 

However, when i execute in SP Online, i am getting the below message:

 The term 'Add-SPUserSolution' is not recognized as the name of a cmdlet

 

I think there should be an alternative in SP Online 

Install‑PnPSolution 

good for installing once uploaded what i am looking for is how to add/upload to the sandbox gallery.

 

thanks

 

1 Reply