Tutorial List Commands - FH-Inway/d365fo.tools GitHub Wiki

List available commands from d365fo.tools module

This tutorial will show you how to list and search for commands that are available from the d365fo.tools module.

Prerequisites

  • Machine with D365FO installed
  • PowerShell 5.1
  • d365fo.tools module installed

Please visit the Install as a Administrator or the Install as a Administrator tutorials to learn how to install the tools.

Start PowerShell

Locate the PowerShell icon, if you don't have it on your desktop or in the task pane, we can locate it in the Windows Start Menu. Search for it or type PowerShell.

images/tutorials/First-Time-Start-PowerShell-Non-Administrator.gif

Import module

You need to import / load the d365fo.tools module into the current PowerShell console. Type the following command:

Import-Module -Name d365fo.tools

images/tutorials/Import-Module-Administrator.gif

List all available commands

If you want to see the entire list of available commands from the d365fo.tools, you can ask PowerShell to list them for you. Type the following command:

Get-Command -Module d365fo.tools

images/tutorials/First-Time-List-Commands.gif

Search for commands

If you want to search for command that contains a specific word or phrase, you can ask PowerShell to search for commands in the d365fo.tools module. Type the following command:

Get-Command *bacpac* -Module d365fo.tools

images/tutorials/First-Time-Search-Commands.gif

Closing comments

In this tutorial we showed you how to list all of the functions that is part of the d365fo.tools. We also showed how you can search for a specific keyword and find all commands containing that keyword.