A page is a document that can do things. Write the steps for a job in markdown, and include the PowerShell that carries each one out. Anyone on your team can then follow the page and run each step with a click.
Pages are saved in your project's .taskproxy/pages folder. Commit them, and everyone who opens the project in Task Proxy gets them.
Good first pages:
Open the new page from the left navigation.
A few shortcuts:
.taskproxy/pages, such as , as they would beside the file in your repository. Right-clicking an image offers Copy image.A fenced code block marked pwsh, powershell, or ps1 becomes a script with a run button:
Drops and reseeds the local database. Your data is lost.
```pwsh
$databaseName = 'acme_dev'
npm run db:reset -- --database $databaseName
```
If a variable called databaseName is set, Task Proxy puts its value into the script in place of 'acme_dev' when it runs. Each teammate can then use their own value without editing the page. See Use variables, secrets, and environments.
You can also show a variable's value in the page text. Write its name in capitals inside braces, so a variable named api_url shows as {API_URL}.
Click the run button on a script. The first time you run a script from a project, Task Proxy shows you the script, with long values masked, and asks whether you trust the project. Scripts can do anything your user account can, so only trust projects you know.
The script runs in the Terminal Manager, which opens to show its output.
Commit the new files in .taskproxy, the page and Navigation.json, and push. Teammates get the page the next time they pull.
Continue to Use variables, secrets, and environments
You can also come chat with us on the Stoic Dreams discord server.
Use Task Proxy on your computer from this browser: its projects, pages, scripts, and Git Controller.