Get up and running with Agent Studio Kit packages in minutes!
Best for automation, scripts, and CI/CD pipelines.
Best for visual interface and IDE integration.
Best for enterprise deployment and package deployer customization.
No installation required with NPX!
# 1. Authenticate to Power Platform
npx @agent-studio/cli auth login
# Follow prompts:
# - Enter environment URL: https://yourorg.crm.dynamics.com
# - Enter profile name: default
# 2. List solutions in your environment
npx @agent-studio/cli solution list
# 3. Clone a solution
npx @agent-studio/cli solution clone YourSolutionName -o ./MySolution
# 4. Export a solution
npx @agent-studio/cli solution export YourSolutionName -o ./solution.zipThat's it! You're ready to manage Power Platform solutions from the command line.
-
Install Extension
- Open VS Code
- Press
Ctrl+Shift+X(orCmd+Shift+Xon Mac) - Search for "Agent Studio Kit"
- Click Install
-
Connect to Environment
- Click the Agent Studio icon in Activity Bar (left sidebar)
- Click the plug icon or press
Ctrl+Shift+Pand type "Agent Studio: Connect" - Enter your environment URL:
https://yourorg.crm.dynamics.com
-
Browse and Manage Solutions
- View all solutions in the Solutions panel
- Right-click any solution to:
- Clone to workspace
- Export as ZIP
- View details
That's it! You're ready to manage solutions visually in VS Code.
-
Install Package
dotnet add package AgentStudioKit.PackageDeployer
-
Use in Your .NET Application
using PowerCAT.PackageDeployer.Package; // Initialize and use package deployer var deployer = new PackageImportExtension();
-
Deploy Solutions
# Build and package dotnet pack --configuration Release # Deploy (when ready) dotnet nuget push ./nupkg/*.nupkg
That's it! You can now automate solution deployment in .NET.
Before using any package, make sure you have:
- PAC CLI installed - Download here
- Power Platform environment with admin access
- Node.js 16+ (for CLI and VSCode)
- .NET 8+ (for NuGet package)
# Check if PAC CLI is installed
pac --version
# If not installed, download from:
# https://learn.microsoft.com/power-platform/developer/cli/introductionCLI:
npx @agent-studio/cli solution export MySolution -o ./MySolution.zipVSCode:
- Open Agent Studio view
- Right-click solution
- Select "Export Solution"
CLI:
npx @agent-studio/cli solution clone MySolution -o ./workspaceVSCode:
- Right-click solution
- Select "Clone Solution"
- Choose output directory
CLI:
npx @agent-studio/cli solution import ./MySolution.zipVSCode:
- Use Command Palette
- Type "Agent Studio: Import Solution"
- Select ZIP file
CLI:
npx @agent-studio/cli env listVSCode:
- View in Environments panel
Configuration is stored automatically at:
- Windows:
%APPDATA%\agent-studio-cli\config.json - macOS/Linux:
~/.config/agent-studio-cli/config.json
Settings available in VS Code preferences:
{
"agentStudio.defaultEnvironment": "https://yourorg.crm.dynamics.com",
"agentStudio.pacCliPath": "pac",
"agentStudio.autoRefresh": true,
"agentStudio.showNotifications": true
}Use Aliases for Speed:
# Instead of:
npx @agent-studio/cli solution list
# Use:
npx @agent-studio/cli sol list
# or even shorter:
npx ast sol listInstall Globally for Faster Access:
npm install -g @agent-studio/cli
agent-studio sol list # Much faster!Keyboard Shortcuts:
Ctrl+Shift+P→ "Agent Studio: Connect" (Quick connect)Ctrl+Shift+P→ "Agent Studio: Show Output" (View logs)
Quick Refresh:
- Click refresh icon in panel headers
- Auto-refresh on connect (if enabled)
Solution:
# Verify PAC CLI installation
pac --version
# If not found, install from:
# https://learn.microsoft.com/power-platform/developer/cli/introduction
# Add to PATH if neededSolution:
# Try authenticating directly with PAC CLI first
pac auth create --url https://yourorg.crm.dynamics.com
# Then use Agent Studio CLI
npx @agent-studio/cli auth listSolution:
- Verify you're connected (check Environments panel)
- Ensure you have permissions
- Click refresh button
- Check output panel for errors
Now that you're set up, explore:
- Complete CLI Documentation - All CLI commands and options
- VSCode Extension Guide - Full extension features
- NuGet Package Docs - .NET integration
- Package Comparison - Choose the right package for your needs
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Documentation: Main README
| Task | CLI Command | VSCode Action |
|---|---|---|
| Connect | ast auth login |
Click plug icon |
| List Solutions | ast sol list |
View Solutions panel |
| Clone Solution | ast sol clone NAME |
Right-click → Clone |
| Export Solution | ast sol export NAME |
Right-click → Export |
| Import Solution | ast sol import PATH |
Cmd Palette → Import |
Ready to go? Pick your package and start managing Power Platform solutions like a pro! 🚀