Open Source CLI Tool

.NET Aspire to Coolify

Convert your .NET Aspire configurations to Coolify deployments in seconds. Parse, generate scripts, or deploy directly via the Coolify REST API.

Install with npm
$ npm install -g aspire2coolify
or run directly: npx aspire2coolify

Features

Everything you need to bridge Aspire and Coolify

🔄

Automatic Conversion

Parse your .NET Aspire Program.cs and convert it to Coolify-compatible deployments automatically.

🚀

Direct Deployment

Deploy directly to Coolify via REST API, or generate bash scripts for manual execution.

🗄️

Full Database Support

PostgreSQL, MySQL, MongoDB, Redis, SQL Server — all Aspire databases supported out of the box.

📦

Services & Apps

RabbitMQ, Kafka, Keycloak, NPM apps, Docker containers, and more.

🔗

GitHub Integration

Deploy from public or private GitHub repositories with full GitHub App support.

Idempotent Deploys

Skip existing resources with --skip-existing for safe, repeatable deployments.

Quick Start

Get up and running in minutes

1

Install the CLI

$ npm install -g aspire2coolify
$ npx aspire2coolify <command>
$ yarn global add aspire2coolify
$ pnpm add -g aspire2coolify

Requires Node.js 18+

2

Configure

export COOLIFY_API_URL=https://coolify.example.com
export COOLIFY_TOKEN=your-api-token
3

Deploy

aspire2coolify deploy ./AppHost/Program.cs \
  --server-id your-server-uuid

Example Input

var builder = DistributedApplication.CreateBuilder(args);

var postgres = builder.AddPostgres("db")
    .WithDataVolume()
    .WithHostPort(5432);

builder.AddNpmApp("frontend", "../Web")
    .WithReference(postgres)
    .WithHttpEndpoint(env: "PORT")
    .PublishAsDockerFile();

builder.Build().Run();

This automatically creates PostgreSQL database and deploys your frontend app to Coolify!

Supported Resources

Comprehensive support for Aspire's resource types

🗄️ Databases

  • PostgreSQL
  • MySQL
  • MongoDB
  • Redis
  • SQL Server

🔧 Services

  • RabbitMQ
  • Kafka
  • Keycloak
  • Seq
  • MailDev
  • Elasticsearch

📱 Applications

  • NPM/Node.js Apps
  • Docker Containers
  • Dockerfiles
  • .NET Projects

Support the Project

If aspire2coolify helped you save time or simplified your deployments,
consider supporting its development!

Buy Me A Coffee