---
title: "Import-Command"
description: " Import-Command [-Path <string>] [<CommonParameters>] "
url: "https://dbatools.io/Import-Command/"
availability: "Windows, Linux, macOS"
source: "https://github.com/dataplat/dbatools/blob/master/public/Import-Command.ps1"
last_updated: "2024-01-01"
---

# Import-Command

## Synopsis

  
Import-Command [-Path <string>] [<CommonParameters>]  

## Description

## Syntax

```powershell
Import-CommandsyntaxItem                                                                                                ----------                                                                                                {@{name=

Import-Command; CommonParameters=True; WorkflowCommonParameters=False; parameter=System.Object[]}}

```

## Examples

### Optional Parameters

##### -Path

| Property | Value |
| --- | --- |
| Alias |  |
| Required | False |
| Pipeline | true (ByValue) |
| Default Value |  |

---

Part of [dbatools](https://dbatools.io/), a free and open source PowerShell module for SQL Server administration. Full command index: https://dbatools.io/commands/
