Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

The Ed-Fi Alliance source code repositories for the ODS/API contain many PowerShell scripts that are useful for development and deployment of the ODS/API components. While the "Getting started" section introduces the initdev  command, it does not make clear what is going on under the hood - and what other functions are available. This page aims to correct that by documenting many of the most commonly-used functions.

Each module mentioned below

...

is implicitly loaded when you run .\Initialize-PowerShellForDevelopment.ps1  from the Ed-Fi-ODS-Implementation  directory. Alternately, you can be load them into the current PowerShell context via

...

Import-Module

...

:

Code Block
PS C:\Ed-Fi\Ed-Fi-Ods-Implementation> ..\Ed-Fi-Common\logistics\modules\EdFiDatabaseLifecycle.V1 # or in a script
# "-Force" and "-Scope Global" are optional
# Assuming working directory is Ed-Fi-ODS-Implementation
Import-Module -Force -Scope Global scripts\NuGet\EdFi.RestApi.
\Ed-Fi-Common\logistics\modules\EdFiDatabaseLifecycle.V1
Datagbases\Deployment.psm1
Import-Module -Force -Scope Global Application\SolutionScripts\InitializeDevelopmentEnvironment.psm1

Review the top of InitializeDevelopmentEnvironment

...

for more detailed Import-Module  examples that use the path-resolver to find modules.

Modules

Child pages (Children Display)