# Start from a template

URL: https://forculuslabs.tech/docs/get-started/templates/

> Make a new app from a template with forculus init, or have your agent do it, then deploy it.

When you don’t have any code yet, `forculus init` writes a small app that deploys as it is. Every template with code already checks who is calling with our [SDK](https://forculuslabs.tech/docs/sdks/), so you start with sign-in done properly.

## The templates

| Template        | What it is                                                                                                      | Runs as                                                              |
| --------------- | --------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------- |
| `static-site`   | A page of HTML and CSS. Nothing to install or build.                                                            | A [static site](https://forculuslabs.tech/docs/deploy/static-sites/) |
| `worker`        | A JavaScript app that greets whoever signed in and shows their role                                             | A [Worker](https://forculuslabs.tech/docs/deploy/workers/)           |
| `internal-tool` | A list your team shares and adds to, kept in the app’s own [database](https://forculuslabs.tech/docs/database/) | A Worker                                                             |
| `express`       | A Node server with Express and `@forculus/sdk`                                                                  | A [container](https://forculuslabs.tech/docs/deploy/containers/)     |
| `fastapi`       | A Python app with FastAPI and the `forculus` package                                                            | A container                                                          |

Container apps need a paid plan. Static sites and Workers run on every plan, Free included.

`forculus init` on its own lists them:

```sh
forculus init
```

## Make one and deploy it

1. **Write the template.**

   ```sh
   forculus init worker
   ```

   ```text
   Made a Worker in ./worker, with README.md, index.js and forculus.mjs.

   Deploy it, with your workspace in place of <workspace>:
     forculus deploy <workspace>/worker ./worker --create
   ```

   If you’re signed in and in one workspace, the command names it in place of `<workspace>`.

   It goes in `./<template>` unless you name a directory: `forculus init worker hello` writes it into `./hello`. Each template has a `README.md` saying what it does and how to change it.

2. **Deploy it.**

   ```sh
   forculus deploy acme/hello ./worker --create
   ```

   ```text
   a Worker
     because it has index.js
   Version 1 is going live. Waiting for it ...
   Version 1 (8b217ef9bf3c) is live.
   https://hello--acme.forculuslabs-apps.tech
   ```

   The app is private, so only you can open it until you [share it](https://forculuslabs.tech/docs/access/share/).

3. **Check who it thinks you are.**

   ```sh
   forculus curl acme/hello /api/me
   ```

   ```text
   {"email":"ada@example.com","role":"owner","kind":"user"}
   200 OK
   ```

## Files that are already there

`forculus init` never replaces a file. If any of the template’s files is already in the directory, it writes nothing at all and says which:

```text
error: ./worker already has README.md, index.js and forculus.mjs, and a template never replaces a file. Nothing was written. Pick a new directory, or an empty one.
```

Other files in the directory are left as they are, so you can write a template into a directory that already has, say, a `.git`.

In a script, `--json` gives the files it wrote and the command to run next:

```sh
forculus --json init internal-tool team-list
```

## With your AI agent

The [agent plugin and MCP server](https://forculuslabs.tech/docs/agents/) have the same templates. Ask for an app that doesn’t exist yet, like “make me a page where the team can keep a list of orders”, and the agent calls `list_templates`, writes one with `create_from_template`, changes it to do what you asked, and deploys it.

`create_from_template` writes only inside the project the agent is working in, never into a hidden directory, and never over a file. Neither tool needs you to be signed in, since they don’t reach the platform. Deploying does.

## Next steps

- [Check who is calling](https://forculuslabs.tech/docs/sdks/), to change what each person can do.
- [Share an app](https://forculuslabs.tech/docs/access/share/) with your team.
- [Run your app locally](https://forculuslabs.tech/docs/sdks/local-development/) behind our sign-in with `forculus dev`.
