Manage, provision and automate Sitefinity instances on local machine.
Get the release branch of this repo locally or pull changes to update.
- Powershell 5.1 64bit
- VS 2017 (or other, but needs configuration)
- First run of internet explorer to have completed (this is required for the WebClient in .NET)
- Enabled IIS server feature, which should add the WebAdministration powershell module
In powershell console window type:
Import-Module $path # where $path is your local path to https://github.com/todorm85/Sf-PoSh/blob/release/sf-posh/sf-posh.psm1
sf-PSmodule-openConfig # opens the configuration file with its default settings and paths (set for VS2017 tools) after editing you must restart the powershell session
sf- #then press (ctrl + space), which should list all commands
sf-proj #then ctrl+space, would list all related to module`s projects commands etc.
sf-project-new -displayName test -sourcePath "any path to sitefinity web app zip or tfs branch" # this creates a new project, in case of tfs branch a separate workspace. It is automatically selected for the current session. All commands that are executed in the powershell session are modifying the currently selected project - it should be displayed on the prompt and on the console status bar.
sf-project-select # to select a different project previously created etc.
sf-project-get # returns the currently selected project object
sf-project-set # sets the project object passed to the command as the current