CLI
Pode has some commands that you can utilise from the CLI - when your in a PowerShell terminal, or pwsh
session. These commands help you to intialise, 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.
At the moment, Pode only uses the
start
,test
,build
andinstall
properties of thescripts
section in yourpackage.json
. You can still have others, likedependencies
for Yarn
Commands
Build
The build
command will run the script found in the package.json
file, at the scripts/build
value:
Init
The init
command 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:
By default, Pode will pre-populate the
test
,build
andinstall
values usingyarn
,psake
andpester
respectively
Install
The install
command will run the script found in the package.json
file, at the scripts/install
value:
Start
The start
command will run the script found in the package.json
file, at the scripts/start
value. If this value is not set, then this command will instead run the value under main
:
Test
The test
command will run the script found in the package.json
file, at the scripts/test
value:
Package File
The following is an example of a package.json
file:
Last updated