Watch it first

What a page is for

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:

1. Add the page to the navigation

  1. Open the Navigation Manager from the compass icon at the bottom of the left navigation.
  2. Click Add Page, or Add Folder to group pages together.
  3. Type a Name, and pick an icon from Icon Search.
  4. Drag items to reorder them, or to move a page into a folder.
  5. Click Save. Cancel throws away your changes.

2. Write the page

Open the new page from the left navigation.

  1. Click the header at the top to give the page a title and subtitle.
  2. Click Add to add a segment. Each segment is a heading, a block of text, or a line.
  3. Click a segment's edit button to open its editor. Pick its type from the row at the top: segment for text, h1 to h6 for headings, or line break. Type its content in markdown, and click the edit button again to close it.
  4. Click Delete in the editor to remove a segment, and drag a segment by its edit button to move it.
  5. Click Save.

A few shortcuts:

3. Add scripts

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}.

4. Run a step

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.

5. Share it

Commit the new files in .taskproxy, the page and Navigation.json, and push. Teammates get the page the next time they pull.

See also

Task Proxy for teams

Continue to Use variables, secrets, and environments

Build a Page for Your Team

Tutorial: about 10 minutes

You can also come chat with us on the Stoic Dreams discord server.

About Task Proxy Contact Stoic Dreams Privacy Terms & Conditions