CLI - mdaneri/Pode GitHub Wiki
Pode has some commands that you can utilise from a PowerShell terminal, or pwsh session. These commands help you to initialise, start, test, build, or install any packages for your repo/server.
All of these commands are centered around the package.json format - similar to that of Node.js and Yarn.
!!! info
At the moment, Pode only uses the start, test, build and install properties of the scripts section in your package.json. You can still have others, like dependencies for Yarn
The build action will run the script found in the package.json file, at the scripts/build value:
pode buildThe init action will help you create a new package.json file from scratch. It will ask a few questions, such as author/name/etc, and then create the file for you:
pode init!!! tip
By default, Pode will pre-populate the test, build and install values using yarn, psake and pester respectively
The install action will run the script found in the package.json file, at the scripts/install value:
pode installThe start action will run the script found in the package.json file, at the scripts/start value. If this value is not set, then this action will instead run the value under main:
pode startThe test action will run the script found in the package.json file, at the scripts/test value:
pode testThe following is an example of a package.json file:
{
"name": "example",
"description": "",
"version": "1.0.0",
"main": "./server.ps1",
"scripts": {
"start": "./server.ps1",
"test": "invoke-pester ./tests/*.ps1",
"install": "yarn install --force --ignore-scripts --modules-folder pode_modules",
"build": "psake"
},
"author": "Rick Sanchez",
"license": "MIT"
}