While waiting for decent developer support for SharePoint in Visual Studio 2010 one might use the STSADM utiliy from codeplex.
However, Microsoft is working on it and now the 1.3 version of the Visual Studio extensions fix some of the earlier shortcomings of the Microsoft tools, get the CTP and try it out…