# basemodo restart

Restart an App: its Machine starts again on its live Deploy.

```sh
basemodo restart [OPTIONS]
```

It starts with the App's Secrets as they are now, so a Secret set with `basemodo env set` applies without a new Deploy (waking from sleep does the same). A cron run going on stops. An App paused because a Process kept crashing or ran out of its memory or disk quota is resumed; one paused until its Owner chooses a Plan, or for review, stays paused. Owners and Editors restart an App.

## Arguments

- `--app <APP>`: The App to restart. Default: the one named after the current folder.

Like every command, it also takes the [global options](https://basemodo.com/docs/cli#global-options) `--json` and `--api-url`.

## Examples

Apply a Secret just set to the App of this folder:

```sh
basemodo env set STRIPE_KEY=sk_live_123
basemodo restart
```

Resume an App paused after its worker kept crashing, once fixed:

```sh
basemodo restart --app newsletter
```

## Output

With `--json`, it prints the App's status after, as status prints it: {"app", "state", "latest_deploy", "public_paths", "extras"}. An App with no live Deploy is an error with code app_not_deployed.

## From an agent

Basemodo's [MCP](https://basemodo.com/docs/mcp) serves it as the tool [`restart`](https://basemodo.com/docs/mcp/tools/restart). It changes things, so an agent's client may ask you before it runs. Its arguments are the command's, named as JSON keys: `app` (text). It answers what the command prints with `--json`.

## Explained in

- [Getting started](https://basemodo.com/docs/getting-started)
- [Secrets](https://basemodo.com/docs/secrets)
- [Expose an API to another Owner's App](https://basemodo.com/docs/expose-an-api)
- [Connect your App to Google, Slack or Notion](https://basemodo.com/docs/connections)
- [How Apps run](https://basemodo.com/docs/how-apps-run)