Files
openchamber/packages/docs/content/docs/project-actions.mdx
T

29 lines
1.2 KiB
Plaintext
Raw Normal View History

---
title: Project Actions
description: Save commands you run often and launch them in one click.
---
# Project Actions
A project action is a shell command you save once and run with a click — your dev server, a build, a test run. Each project keeps its own list. Set them up at **Settings → Projects → Project Actions**.
## Add an action
1. Open **Settings → Projects** and find the **Project Actions** section.
2. Add an action, give it a name, pick an icon, and enter the command to run.
3. Save.
You can limit an action to certain operating systems if a command only makes sense on one.
## Run an action
Actions live in a menu in the app header. Click one and OpenChamber runs it in a terminal in your project folder, switching you to the terminal view so you can watch the output. Stop it from the same menu.
## Auto-open a dev server
Turn on **auto-open URL** for an action that starts a server. OpenChamber watches the output for a local address and offers to open it — see [Preview & Dev Servers](/preview/). On desktop you can also route it through an SSH port forward.
## Related
- [Preview & Dev Servers](/preview/) — open a running dev server inside OpenChamber