Import a package by code

Hi all,

Im looking to improve my workflows a bit and Im looking to install a couple of packages off the unity store by default in a new project… so lets pick “Weaver Pro”…

I know its possible, it says do "Client.Add(“Weaver Pro”) as far as I can tell, but it doesnt seem to do anything…
I even tried Client.Add(“Cinemachine”); that didnt seem to do anything either.

Has anyone got some snippets on working for adding my purchased assets, and unity assets as a menu option or such?

There was a thread about this just earlier for purchased assets: How can I install an asset from the Asset Store?

And I feel like for packages on the Unity registry, you’d need to use an identifier like com.unity.inputsystem@1.8.1, but I haven’t tried it out myself.

Cheers, I swear i looked but my forum fu here for finding posts is way less than my googlefu