# Core App Development Kit

> coreapp-dev: build apps for Federated Core and test them on a real Core running in a VM on your computer.

- Web page: https://documentation.federated.computer/developer-tools/core-app-development-kit/

The Core App Development Kit, **coreapp-dev**, is the SDK for making [Coreapps](https://documentation.federated.computer/hosting/coreapps/): your own web apps, or existing open source ones, packaged so any Core can install them. It runs a real Federated Core in a virtual machine on your computer, so you test against the same sign-in, database, proxy, and mail server your users will have.

## What's in the kit

- **`coreapp-vm`** creates and runs the VM with your development Core.
- **`coreapp`** makes, deploys, tests, and publishes apps.
- **The Core's installer, `coreapps`**, which the kit puts on your development Core. It's the same installer a Core's owner uses to install your app.
- **A Claude Code skill**, `coreapp`, that knows how to turn a repository into a Coreapp, and deploys and tests it for you.

## Install it

On a computer running CoreDesktop, with VT-x or AMD-V turned on:

```
sibling add https://gitea.federated.computer/Federated_Computer/coreapp-dev.git
```

This installs libvirt, QEMU/KVM, and Docker, sets up a private network for the VM, and adds the commands and the Claude Code skill. Log out and back in afterwards. CoreDesktop's `update` keeps the kit up to date.

To remove it completely, run `bash ~/.local/share/siblings/coreapp-dev/uninstall.sh`. (`sibling remove` only deletes the kit's files, not what it installed.)

## Commands

| Command | What it does |
|---|---|
| `coreapp-vm create` | Downloads CoreServer (1.3 GB, the first time) and creates the VM, `coreserver`, at `10.123.0.10` |
| `coreapp-vm start`, `stop`, `delete` | Starts, stops, or deletes the VM |
| `coreapp-vm ssh`, `ip`, `list` | Connects to the VM, or shows its address and state |
| `coreapp new <name>` | Makes a new app. Add `--postgres`, `--mysql`, `--sso`, or `--email` for what it needs. |
| `coreapp deploy` | Builds the app and installs or updates it on your development Core |
| `coreapp check`, `signin`, `inbox`, `mail` | Tests its address and certificate, sign-in, and email |
| `coreapp status`, `logs`, `shell` | Inspects the running app |
| `coreapp core` | Shows what the Core offers apps, and the names apps can't use |
| `coreapp list`, `install`, `update`, `remove` | Manages apps installed from repositories, as a Core's owner would |
| `coreapp login`, `logout`, `logins` | Manages tokens for private repositories |
| `coreapp publish` | Builds and pushes a release, and tags it |

## Source code

[gitea.federated.computer/Federated_Computer/coreapp-dev](https://gitea.federated.computer/Federated_Computer/coreapp-dev)

## Pages in this section

- [Setting up coreapp-dev](https://documentation.federated.computer/developer-tools/core-app-development-kit/setting-up-coreapp-dev/index.md): Step by step: install the Core App Development Kit, run a Core in a VM on your computer, make it reachable, provision it, and deploy your first app.
- [Building a Coreapp](https://documentation.federated.computer/developer-tools/core-app-development-kit/building-a-coreapp/index.md): For developers: make an app or port an existing one with coreapp-dev, and test it on a Core on your own computer.
- [coreapp.toml reference](https://documentation.federated.computer/developer-tools/core-app-development-kit/coreapp-toml/index.md): Every setting in a Coreapp's coreapp.toml, and what the Core gives the app for each need.
- [Publishing a Coreapp](https://documentation.federated.computer/developer-tools/core-app-development-kit/publishing-a-coreapp/index.md): Release a version of your app so any Core can install it from its repository.
