automation

dbatools: Automate SQL Server

Faster, safer SQL Server migrations for founders. 2.8k+ GitHub stars
2,847 stars865 forksPowerShellGuide quality 9/10 · reviewed Jul 13Updated 10/5/2026100% free · open source
What it does

dbatools is a PowerShell module that automates SQL Server migrations and administration tasks, making it faster and safer for founders to manage their databases

When to use it
  • •When migrating a SQL Server database to a new instance or environment
  • •When automating repetitive database administration tasks, such as backups or index maintenance
  • •When needing to quickly diagnose and troubleshoot SQL Server performance issues
Ready-to-paste prompt
Get-DbaDatabase -SqlInstance 'localhost' -Database 'mydatabase' | Backup-DbaDatabase -Path 'C:\backups'
Heads up: Ensure you have the necessary permissions and credentials to access and manage the SQL Server instances, as dbatools will prompt for authentication if not properly configured
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

🔑 Needs an API key

Works after you add credentials — the setup agent will ask you for them.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/dbatools && curl -fsSL https://workflowstacks.com/api/skills/dbatools/claude-skill -o ~/.claude/skills/dbatools/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

What's inside — free to inspect

No purchase needed

Read the entire source before you build — unlike paid marketplaces that hide it behind a buy button.

13
top-level files
12
folders
94.0M
source size
MIT
license
Key files
AGENTS.md
readme.md
File tree
.claude/
.devcontainer/
.github/
.vscode/
bin/
docs/
en-us/
opt/
private/
public/
tests/
xml/
.gitattributes
.gitignore
.markdownlint.json
AGENTS.md
CLAUDE.md
cleanup.ps1
code_of_conduct.md
codecov.yml
CONTRIBUTING.md
dbatools.psd1
dbatools.psm1
license
Quick Actions
Details
Creator
dataplat
Language
PowerShell
Category
automation
Published
2/2/2015

Are you the creator of this tool? and earn 85% of every sale.

Show it off in your README:

Featured on WorkflowStacks
[![Featured on WorkflowStacks](https://workflowstacks.com/api/badge/dbatools.svg)](https://workflowstacks.com/skills/dbatools?utm_source=github&utm_medium=badge)
🔥 Hot this week, in your inbox
Skills like this, every Monday.

The five fastest-growing open-source AI skills, ranked by GitHub star growth. One email a week, unsubscribe anytime.