> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Developing from your machine

> Edit locally and select the development deployment that serves your app.

Run `bijection dev` from the application workspace. It installs the app tree
on its selected development deployment and watches your source. For a named
hosted target, select it explicitly:

```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
bijection dev --installation my-app:dev-sam
```

Use `--once` to install the tree and exit after the first attempt. Before
calling a function whose target presents a secret, set that secret's
development value with [`bijection secret set <path>`](https://docs.bijection.com/development/cli#set-a-secret).
Keep performer credentials and provider accounts scoped to the development
deployment.

Development from a Git worktree follows the same deployment selection rules.
Give concurrent developers separate hosted targets when each needs its own
installed code and live effects. Use a [branch](https://docs.bijection.com/branches) for isolated data
changes within one installation.

## Preview an ontology with fixtures

```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
bijection create customer-demo --template ontology
cd customer-demo
bijection dev --fixture customer-orders
```

Open the frontend URL printed by `dev`. The scenario starts Acme with an
unasked warehouse value. Request evidence to land the open-order aggregate,
then trial the approval action. Request the Orders link's first page and its
continuation. Advance the fixture clock and trial again to see the action
refuse stale evidence. Switch to the restricted caller to see the access
refusal. The browser and the CLI commands printed at startup exercise the
same scenario.

A fixture is a factory in `fixtures/<name>.ts` that prepares the memory
kernel and supplies named caller clients, callable paths, and an example
key. Its provider replies use the application's existing intake. Backend
or fixture edits load a new scenario, and stopping `dev` discards its store
and temporary credentials.

## Preview a frontend with installed data

```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
bijection dev --read-only --installation commerce:staging
```

Sign in to the selected application before starting. The frontend preview
uses the caller's existing application credential. Startup checks the
app's reviewed local contracts and confirms the queries that the caller
can discover on the selected installation. Each call carries the reviewed
path digest. The preview serves queries and watches through a loopback
gateway. Mutations, trials, and tasks are unavailable through the gateway.
It serves the installed backend definitions as you edit the frontend.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.