Run a TanStack Start App

Getting an application running on Fly.io is essentially working out how to package it as a deployable image. Once packaged it can be deployed to the Fly.io platform.

In this guide we’ll learn how to deploy a TanStack Start application on Fly.io.

You can deploy your TanStack Start app on Fly.io with minimal effort, our CLI will do the heavy lifting.

Deploy a TanStack Start app


First, install flyctl, the Fly.io CLI, and sign up to Fly.io if you haven’t already.

If you don’t already have a TanStack Start app, you can create one:

npm create @tanstack/start@latest hello-tanstack

Now let’s launch your TanStack Start app.

cd hello-tanstack
fly launch
Creating app in /Users/me/hello-tanstack
Scanning source code
Detected a TanStack Start app
? App Name (leave blank to use an auto-generated name): hello-tanstack
? Select organization: flyio (flyio)
? Select region: mad (Madrid, Spain)
Created app hello-tanstack in organization soupedup
? Would you like to deploy now? Yes
==> Validating app configuration
--> Validating app configuration done
Services
TCP 80/443 ⇢ 8080
Remote builder fly-builder-little-glitter-8329 ready
...
1 desired, 1 placed, 1 healthy, 0 unhealthy [health checks: 2 total, 2 passing]
--> v0 deployed successfully

That’s it! Run fly apps open to see your deployed app in action.

Try a few other commands: