Tutorial

How to Use Runtm in Claude Code

Deploy your applications directly from Claude Code with Runtm's powerful CLI. Learn the complete workflow from initialization to production deployment.

8 min read
December 2025
Deployment

Introduction

Runtm is a powerful deployment platform that makes it incredibly easy to deploy applications directly from your AI coding environment. When combined with Claude Code, you get a seamless workflow that takes you from code to production in minutes.

Prerequisites

1

Runtm CLI installed

Install via npm: npm install -g runtm

2

Claude Code or Cursor IDE

Your AI-powered coding environment

3

A project to deploy

Can be a Next.js app, backend service, or static site

Getting Started

1

Initialize Your Project

Start by initializing your project with Runtm. This creates the necessary configuration files.

$ runtm init

You'll be prompted to select a template: backend-service, static-site, or web-app. Choose the one that fits your project type.

2

Review Generated Files

Runtm creates several important files in your project:

  • runtm.yaml - Your deployment manifest (port, health checks, resources)
  • Dockerfile - Container build instructions
  • public/health - Health check endpoint
  • runtm.discovery.yaml - Service discovery configuration
3

Authenticate with Runtm

Before deploying, you need to authenticate with Runtm:

$ runtm login

This will open your browser to complete authentication. Once done, you're ready to deploy.

4

Validate Your Configuration

Before deploying, it's good practice to validate your configuration:

$ runtm validate

This checks that your manifest is correct, your Dockerfile is valid, and your health endpoint works.

5

Deploy to Production

Now for the magic moment - deploy your app:

$ runtm up

Runtm will build your Docker image, push it to their registry, and deploy it. You'll get a live URL in seconds!

The Complete Workflow

Here's the typical workflow when using Runtm in Claude Code:

1

Ask Claude Code to create your application

2

Claude generates the code and project structure

3

Ask Claude to initialize Runtm: "Initialize this with runtm init"

4

Claude runs the init command and reviews the generated files

5

Ask Claude to deploy: "Deploy this to runtm"

6

Claude validates and runs runtm up

7

Your app is live with a public URL!

Tips & Tricks

Use Natural Language

Claude Code understands commands like "deploy this" or "initialize runtm". You don't need to type exact terminal commands.

Iterate Quickly

Make changes and redeploy with "runtm up". Runtm handles incremental builds efficiently, so updates are fast.

Check Your Logs

Use "runtm logs" to view application logs and debug issues. You can also use "runtm status" to check deployment health.

Manage Costs

Use "runtm destroy [deployment-id]" to tear down deployments you're not using to avoid unnecessary costs.

Common Commands Reference

runtm init

Initialize a new Runtm project

runtm login

Authenticate with Runtm

runtm validate

Validate configuration and Dockerfile

runtm up

Deploy your application

runtm list

List all your deployments

runtm logs [id]

View logs for a deployment

runtm status

Check deployment status

runtm destroy [id]

Destroy a deployment

Ready to Deploy?

With Runtm and Claude Code, you can go from idea to deployed application in minutes. The combination of AI-powered coding and instant deployment makes building and shipping software faster than ever.

Try it out with your next project and experience the future of development workflows.

Start Deploying with Runtm Today

Experience the fastest way to go from code to production. Install Runtm and start building.

terminal
$ npm install -g runtm
$ runtm init
$ runtm up

Questions? Reach out to the Runtm team or check the documentation for more guides.