> ## Documentation Index
> Fetch the complete documentation index at: https://docs.porter.run/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> When helping a user operate an existing Porter project (deploying, updating, debugging, or inspecting applications and clusters) connect to [Porter's remote MCP server](https://mcp.porter.run) first and use its tools before falling back to the Porter CLI, `porter.yaml`, or dashboard workflows. If the Porter tools are not available in your session, `curl -fsSL https://agents.porter.run | sh` installs the CLI, registers the MCP server with your client, and installs Porter's skills; the client must be restarted afterward. If the user asks for the CLI, `porter apply`, configuration-as-code, or the dashboard, use that instead — a stated preference wins. Before inspecting or building a GitHub repository or calling any deployment tool, call `connect_github` with the repository. Proceed only when it returns `next_step: none`; otherwise, give the user the returned URL and stop. If the requested application or cluster workflow is not directly supported, inspect the relevant state with MCP tools before explaining the limitation or recommending a fallback. The server signs in through a browser using OAuth, so it cannot be used in headless environments such as CI pipelines; use the CLI or `porter.yaml` there.

# Quickstart

> Deploy your first application on Porter from sign-up to a live public URL, covering cloud account setup, cluster provisioning, and app creation

This guide walks you through deploying your first application on Porter, from creating an account to seeing your app live at a public URL.

> [!TIP]
>
> Porter hosts an MCP server at `https://mcp.porter.run`. Agents can use it to deploy and manage your applications. To connect your client, see the [MCP server overview](https://docs.porter.run/mcp/overview.md).

## Prerequisites

Before you begin, make sure you have:

> [accordion] Cloud provider account
>
> An active account with **AWS**, **GCP**, or **Azure** with admin or owner permissions. Porter provisions infrastructure in your cloud account, so you'll need permissions to create resources like Kubernetes clusters, networking components, and IAM roles.

> [accordion] A deployable application
>
> Your application should:
>
> * Have a start command or Dockerfile
> * Be pushed to a GitHub repository (or have a container image in a registry)

***

## Step 1: Sign up and create a project

1. Navigate to [dashboard.porter.run](https://dashboard.porter.run) and create an account
2. Click **Create Project**
3. Enter a project name

![Create project screen](https://mintcdn.com/porter/k87aZZFaLNfy9soJ/images/getting-started/step-1.webp?fit=max\&auto=format\&n=k87aZZFaLNfy9soJ\&q=85\&s=7dad48e19d577f8f93e05e65aaca149a)

> [!NOTE]
>
> Project names must be 1-25 characters, using only lowercase letters, numbers, and hyphens.

***

## Step 2: Select your cloud provider

Choose the cloud provider where you want Porter to provision your infrastructure.

![Cloud provider selection](https://mintcdn.com/porter/k87aZZFaLNfy9soJ/images/getting-started/step-2.webp?fit=max\&auto=format\&n=k87aZZFaLNfy9soJ\&q=85\&s=5283ed0d828fda92ffe751b966e6b540)

If you've previously connected a cloud account to Porter, you can reuse those credentials.

![Existing cloud accounts](https://mintcdn.com/porter/k87aZZFaLNfy9soJ/images/getting-started/step-2-existing.webp?fit=max\&auto=format\&n=k87aZZFaLNfy9soJ\&q=85\&s=fcb323d5fa8ba03e0990ae73b7ff4f25)

***

## Step 3: Set up your cluster

Porter provisions a Kubernetes cluster in your cloud account. The setup process varies by provider.

> [tab] AWS
>
> Porter uses AWS IAM role assumption to securely access your account without storing static credentials.
>
> **1. Enter your AWS Account ID**
>
> Log into your [AWS Console](https://console.aws.amazon.com) and find your 12-digit Account ID in the top-right corner. Enter this ID in Porter.
>
> **2. Create the CloudFormation stack**
>
> Click **Grant Permissions**. Porter opens the AWS CloudFormation console to create a stack that provisions the `porter-manager` IAM role.
>
> ![Create CloudFormation stack](https://mintcdn.com/porter/k87aZZFaLNfy9soJ/images/getting-started/step-3-aws-create-stack.webp?fit=max\&auto=format\&n=k87aZZFaLNfy9soJ\&q=85\&s=254f30b268ae7b8590f403f874e5aee1)
>
> > [!WARNING]
> >
> > If the popup is blocked, check your browser settings and allow popups from Porter.
>
> Scroll to the bottom of the CloudFormation page, check the **I acknowledge that AWS CloudFormation might create IAM resources** box, and click **Create Stack**.
>
> > [!NOTE]
> >
> > The IAM role must remain in your AWS account for Porter to manage your infrastructure. Deleting it will prevent Porter from making changes.
>
> **3. Review costs**
>
> Porter displays estimated monthly costs for your infrastructure (\~\$225/month for AWS).
>
> ![AWS cost review](https://mintcdn.com/porter/zqQS4FM4YSdp2anY/images/getting-started/step-3-aws-review-costs.webp?fit=max\&auto=format\&n=zqQS4FM4YSdp2anY\&q=85\&s=0034b2f3a25c1925f3b3b2ee6295f151)
>
> These estimates are for the default cluster configuration. Actual costs vary based on usage, region, and any customizations you make.
>
> Review the cost breakdown and click **Accept** to continue.
>
> **4. Configure and provision**
>
> Porter pre-configures your cluster with sensible defaults:
>
> * **Cluster name**: Auto-generated based on your project
>
> * **Region**: Defaults to `us-east-1`
>
> * **Node groups**: Pre-configured with appropriate instance types
>
>   ![AWS cluster configuration](https://mintcdn.com/porter/k87aZZFaLNfy9soJ/images/getting-started/step-3-aws-configure-and-provision.webp?fit=max\&auto=format\&n=k87aZZFaLNfy9soJ\&q=85\&s=35f852e92362e6ae9e8b52aa707ebd2f)
>
> > [accordion] AWS resource quota limits
> >
> > If AWS is limiting your account's resource quota, Porter will display a warning and offer to auto-request quota increases on your behalf. **Allow Porter to auto-request AWS quota** is enabled by default.
> >
> > ![AWS quota limits](https://mintcdn.com/porter/k87aZZFaLNfy9soJ/images/getting-started/step-3-aws-limiting-quota.webp?fit=max\&auto=format\&n=k87aZZFaLNfy9soJ\&q=85\&s=afca442903dd39ec7d8abdfdd1151c2e)
> >
> > Alternatively, you can manually request quota increases through the [AWS Service Quotas console](https://console.aws.amazon.com/servicequotas/).
>
> You can customize these settings or accept the defaults. Click **Provision** to start creating your infrastructure.
>
> > [!WARNING]
> >
> > Provisioning takes approximately 30-45 minutes. You can close the browser and return later. Porter continues working in the background.

> [tab] GCP
>
> Porter connects to GCP using [Workload Identity Federation](https://cloud.google.com/iam/docs/workload-identity-federation). Workload Identity Federation offers a mechanism for Porter to connect with your GCP project without requiring any static keys.
>
> **1. Enter your GCP Project ID**
>
> In Porter, select GCP. Enter your [GCP project ID](https://console.cloud.google.com) (visible at the top of any page in the GCP Console) and click **Connect**.
>
> **2. Run the setup in Cloud Shell**
>
> Porter generates a one-line setup command tied to this integration. Copy it, click **Open Cloud Shell**, and paste it into the shell that opens.
>
> The script runs Terraform inside your project to create a service account, a Workload Identity Pool with a trust policy scoped to your tenant, and the five Google APIs Porter needs to bootstrap federation (Cloud Resource Manager, IAM, IAM Credentials, STS, Service Usage). Setup takes about 30 seconds.
>
> **3. Wait for verification**
>
> The Porter dashboard polls automatically. Once the bootstrap completes, Porter finishes enabling the remaining APIs, grants the heavier IAM roles, and marks the cloud account connected. The status banner turns green and the Continue button enables.
>
> For the full mechanism (trust boundary, permissions granted, troubleshooting), see [Connecting a Cloud Account → GCP](https://docs.porter.run/cloud-accounts/connecting-a-cloud-account.md).
>
> **4. Review costs**
>
> Porter displays estimated monthly costs for your infrastructure (\~\$253/month for GCP).
>
> ![GCP cost review](https://mintcdn.com/porter/zqQS4FM4YSdp2anY/images/getting-started/step-3-gcp-review-costs.webp?fit=max\&auto=format\&n=zqQS4FM4YSdp2anY\&q=85\&s=273640ee2f266d9152aa586c2ce42b82)
>
> These estimates are for the default cluster configuration. Actual costs vary based on usage, region, and any customizations you make.
>
> Review the cost breakdown and click **Accept** to continue.
>
> **5. Configure and provision**
>
> Porter pre-configures your cluster with sensible defaults:
>
> * **Cluster name**: Auto-generated based on your project
> * **Region**: Defaults to `us-east1`
> * **Node groups**: Pre-configured with appropriate instance types
>
>   ![GCP cluster configuration](https://mintcdn.com/porter/zqQS4FM4YSdp2anY/images/getting-started/step-3-gcp-configure-and-provision.webp?fit=max\&auto=format\&n=zqQS4FM4YSdp2anY\&q=85\&s=423ddf8257fe2ddfabc9a6cb8aed76fe)
>
> You can customize these settings or accept the defaults. Click **Provision** to start creating your infrastructure.
>
> > [!WARNING]
> >
> > Provisioning takes approximately 30-45 minutes. You can close the browser and return later. Porter continues working in the background.

> [tab] Azure
>
> Porter connects to Azure using a service principal with permissions to manage your infrastructure.
>
> **1. Create a service principal**
>
> Before connecting Azure to Porter, you need to create a service principal. Follow the Azure tab of [Connecting a cloud account](https://docs.porter.run/cloud-accounts/connecting-a-cloud-account.md): the Porter dashboard shows the exact setup commands to run, and the script outputs the values you need for the next step.
>
> **2. Enter your credentials**
>
> In Porter, enter the following values from your service principal:
>
> | Field | Description |
> | - | - |
> | **Subscription ID** | Your Azure subscription ID |
> | **Application (Client) ID** | The `appId` from your service principal |
> | **Client Secret** | The `password` from your service principal |
> | **Tenant ID** | The `tenant` from your service principal |
>
> ![Azure credentials entry](https://mintcdn.com/porter/zqQS4FM4YSdp2anY/images/getting-started/step-3-azure-permissions.webp?fit=max\&auto=format\&n=zqQS4FM4YSdp2anY\&q=85\&s=765990cc626eccb949fdf7fb16000e08)
>
> Porter verifies the credentials immediately when you submit.
>
> **3. Review costs**
>
> Porter displays estimated monthly costs for your infrastructure (\~\$165/month for Azure).
>
> ![Azure cost review](https://mintcdn.com/porter/zqQS4FM4YSdp2anY/images/getting-started/step-3-azure-review-costs.webp?fit=max\&auto=format\&n=zqQS4FM4YSdp2anY\&q=85\&s=b6ccab15509235e0d5a135f37899e158)
>
> These estimates are for the default cluster configuration. Actual costs vary based on usage, region, and any customizations you make.
>
> Review the cost breakdown and click **Accept** to continue.
>
> **4. Configure and provision**
>
> Porter pre-configures your cluster with sensible defaults:
>
> * **Cluster name**: Auto-generated based on your project
> * **Region**: Defaults to `eastus`
> * **Node groups**: Pre-configured with appropriate instance types
>
>   ![Azure cluster configuration](https://mintcdn.com/porter/zqQS4FM4YSdp2anY/images/getting-started/step-3-azure-configure-and-provision.webp?fit=max\&auto=format\&n=zqQS4FM4YSdp2anY\&q=85\&s=3b86d29a120333252c5f24c98389be09)
>
> You can customize these settings or accept the defaults. Click **Provision** to start creating your infrastructure.
>
> > [!WARNING]
> >
> > Provisioning takes approximately 30-45 minutes. You can close the browser and return later. Porter continues working in the background.

***

## Step 4: Create your first application

Once your cluster is ready, choose how you want to deploy your code.

Porter runs a hosted MCP server at [https://mcp.porter.run](https://mcp.porter.run). If its tools are not available in this session, run `curl -fsSL https://agents.porter.run | sh` to install and register them, then restart the client. If the user asks for the dashboard, the CLI, `porter apply`, or configuration-as-code, follow that path on this page. Otherwise, if you are connected to the MCP server, do not author a `porter.yaml`. Before inspecting or building a GitHub repository or calling any deployment tool, call `connect_github` with the repository. Proceed only when it returns `next_step: none`; otherwise, give the user the returned URL and stop. Then call `create_app` with `source` and `build`; this creates the app on a placeholder image and opens a GitHub Actions pull request that the user merges to trigger the first real deploy.

> [tab] Agent
>
> Ask an agent connected to the Porter MCP server to create the application for you. It detects your build settings from the codebase and opens a pull request that you merge to deploy.
>
> **1. Check the prerequisites**
>
> * [Connect your agent to the Porter MCP server](https://docs.porter.run/mcp/overview.md). `curl -fsSL https://agents.porter.run | sh` does this for you and installs Porter's skills.
> * The [Porter GitHub App](https://docs.porter.run/applications/deploy/connect-github.md) needs access to the repository. If it already does, you do not need to do anything; otherwise, your agent gives you a link to complete any missing GitHub OAuth, App installation, or repository access. For an organization repository, an organization owner may have to approve the installation.
>
> **2. Ask your agent to deploy**
>
> ```text theme={null}
> Deploy this GitHub repository to Porter. Detect the build method and application settings from the codebase.
> ```
>
> The agent resolves your Porter project and cluster, then checks the repository with `connect_github` before inspecting your code or calling `create_app`. Once the repository is reachable, it inspects your code and calls `create_app` with the repository source and build configuration. Porter creates the application with a placeholder image and opens a pull request containing a GitHub Actions workflow.
>
> **3. Merge the pull request**
>
> Review and merge the pull request that the agent returns. Merging it triggers the workflow that builds your code and runs the first real deployment.

> [tab] Dashboard
>
> In the Porter dashboard, click **Create Application**, then choose your source.
>
> > [tab] GitHub repository
> >
> > Porter builds your application from source code and sets up automated deployments on every push.
> >
> > **1. Connect GitHub**
> >
> > If this is your first deployment, [install the Porter GitHub App](https://docs.porter.run/applications/deploy/connect-github.md):
> >
> > ![Source selection screen](https://mintcdn.com/porter/rTf4JWBYOzQjpLlM/images/deploy/v2/github-source-selection.webp?fit=max\&auto=format\&n=rTf4JWBYOzQjpLlM\&q=85\&s=8e3422acb973ae6ac09684a1c235c515)
> >
> > 1. Click **Connect repositories**
> > 2. Authorize the Porter GitHub App
> > 3. Choose which repositories Porter can access (all repositories or select specific ones)
> >
> > Porter needs read access to detect your code structure and write access to create the deployment workflow.
> >
> > **2. Select your repository**
> >
> > 1. Choose the repository containing your application
> > 2. Select the branch to deploy (defaults to `main` or `master`)
> >
> >    ![GitHub repository and branch selector](https://mintcdn.com/porter/rTf4JWBYOzQjpLlM/images/deploy/v2/github-repo-branch-selector.webp?fit=max\&auto=format\&n=rTf4JWBYOzQjpLlM\&q=85\&s=be7df38a829e255c46f3bbbdc5a22be4)
> >
> > **3. Review detected applications**
> >
> > Porter scans your repository and automatically detects:
> >
> > * Frameworks and languages (Node.js, Python, Go, etc.)
> > * Dockerfiles
> > * Service types (web servers, workers, etc.)
> >
> >   ![Detected applications list](https://mintcdn.com/porter/rTf4JWBYOzQjpLlM/images/deploy/v2/detected-apps-list.webp?fit=max\&auto=format\&n=rTf4JWBYOzQjpLlM\&q=85\&s=59a2e5204cea9415f5e938f925bdd3f8)
> >
> > You'll see a card for each detected application showing the app name, detected framework, and repository path.
> >
> > > [!NOTE]
> > >
> > > For monorepos with multiple services, Porter detects each application separately. A Node.js API in `/api` and a React frontend in `/web` appear as distinct applications. If some services are already deployed on your cluster, Porter hides them by default so you can focus on new applications. Expand the **previously deployed** section to view or re-add them.
> >
> > **4. Configure your application (optional)**
> >
> > Click the **gear icon** on any application card to customize:
> >
> > ![Settings button on application card](https://mintcdn.com/porter/rTf4JWBYOzQjpLlM/images/deploy/v2/app-card-settings-button.webp?fit=max\&auto=format\&n=rTf4JWBYOzQjpLlM\&q=85\&s=5107323040904d8b0883253be5543f2b)
> >
> > * **Build method**: Docker (using your Dockerfile) or Buildpacks (automatic)
> > * **Start command**: The command to run your application
> > * **Port**: The port your application listens on
> >
> > For most applications, Porter's detected defaults work without changes.
> >
> > **5. Deploy**
> >
> > Click **Deploy** to start your deployment.
> >
> > **6. Merge the GitHub Actions PR**
> >
> > > [!WARNING]
> > >
> > > This step is critical. Your application won't be available until you merge the PR.
> >
> > Porter creates a pull request in your repository containing a GitHub Actions workflow file at `.github/workflows/porter.yml`. This workflow handles building and deploying your application on every push.
> >
> > After clicking Deploy, you'll see:
> >
> > * A **toast notification** with a "View PR" button that links directly to the pull request
> > * A **warning banner** on your app's page with a "Merge PR" link
> >
> >   ![Merge PR banner](https://mintcdn.com/porter/zqQS4FM4YSdp2anY/images/getting-started/step-4-github-merge-pr-banner.webp?fit=max\&auto=format\&n=zqQS4FM4YSdp2anY\&q=85\&s=4bffbb23739d82aa2f299dec7fdef078)
> >
> > Click either link to open the pull request on GitHub, then merge it. After merging, click **Refresh** on the banner to update the status. GitHub Actions triggers automatically and your first deployment begins.
> >
> > > [accordion] What's in the workflow file?
> > >
> > > The workflow Porter creates looks like this:
> > >
> > > ```yaml theme={null}
> > > on:
> > >   push:
> > >     branches:
> > >       - main
> > > name: Deploy to Porter
> > > jobs:
> > >   porter-deploy:
> > >     runs-on: ubuntu-latest
> > >     steps:
> > >       - uses: actions/checkout@v4
> > >       - uses: porter-dev/setup-porter@v0.2.0
> > >       - run: porter apply
> > >         env:
> > >           PORTER_TOKEN: ${{ secrets.PORTER_APP_... }}
> > > ```
>
> > [tab] Docker registry
> >
> > This approach works well when you have an existing CI/CD pipeline or are deploying third-party images.
> >
> > **1. Select container registry**
> >
> > From the Create Application screen, click **Or, deploy from a container registry** in the top right.
> >
> > ![Container registry link](https://mintcdn.com/porter/rTf4JWBYOzQjpLlM/images/deploy/v2/github-deploy-registry-link.webp?fit=max\&auto=format\&n=rTf4JWBYOzQjpLlM\&q=85\&s=37df4e84d1bd2590e3852cf088e0e0df)
> >
> > **2. Specify your image**
> >
> > Enter your image details:
> >
> > * **Image repository**: The full path to your image
> >   * Docker Hub: `docker.io/username/image` or `username/image`
> >   * Amazon ECR: `123456789.dkr.ecr.us-east-1.amazonaws.com/my-app`
> >   * Google Artifact Registry: `us-docker.pkg.dev/project-id/repo/image`
> >   * Azure Container Registry: `myregistry.azurecr.io/my-app`
> > * **Tag**: The version to deploy (e.g., `latest`, `v1.2.3`, or a commit SHA)
> >
> >   ![Container registry inputs](https://mintcdn.com/porter/rTf4JWBYOzQjpLlM/images/deploy/v2/container-registry-inputs.webp?fit=max\&auto=format\&n=rTf4JWBYOzQjpLlM\&q=85\&s=28c5589b7595d388641c72cea952d344)
> >
> > **3. Configure your application**
> >
> > Porter creates an application configuration with sensible defaults. Since Porter can't inspect your pre-built image, you'll need to specify:
> >
> > * **Port**: The port your container listens on (for web services)
> > * **Start command**: Override the image's default CMD if needed
> >
> > Click the **gear icon** to adjust resources (CPU, RAM, instances) if the defaults don't fit your needs.
> >
> > **4. Deploy**
> >
> > Click **Deploy** to pull your image and start running it.
> >
> > > [!NOTE]
> > >
> > > To update your application later, push a new image tag and use the Porter CLI:
> > >
> > > ```bash theme={null}
> > > porter app update-tag APP_NAME --tag NEW_TAG
> > > ```

> [tab] CLI
>
> Deploy the application from a `porter.yaml` file:
>
> ```bash theme={null}
> porter apply -f porter.yaml
> ```
>
> Learn how to define and deploy an application in the [configuration-as-code guide](https://docs.porter.run/applications/configuration-as-code/overview.md).

***

## Step 5: View your running application

Return to the Porter dashboard to monitor your deployment:

1. Click on your application to view deployment progress
2. Watch the build logs as Porter builds your container image
3. Monitor the deployment as Porter starts your application

Once the deployment completes, your application status changes to **Running**.

### Access your application

Porter automatically provisions a public URL for your application at `*.onporter.run`. Click the URL in your dashboard to visit your deployed application.

![Deployed application](https://mintcdn.com/porter/zqQS4FM4YSdp2anY/images/getting-started/step-5-deployed.webp?fit=max\&auto=format\&n=zqQS4FM4YSdp2anY\&q=85\&s=8c0155ef198a20c446c792f517858064)

> [!TIP]
>
> Congratulations! Your application is now live and will automatically redeploy whenever you push to your selected branch.

***

## Next steps

Now that your application is running, explore these guides to customize your deployment:

> [card] [MCP server](https://docs.porter.run/mcp/overview.md)
>
> Connect an AI agent to deploy, inspect, and manage your applications.

> [card] [Custom domains](https://docs.porter.run/applications/configure/custom-domains.md)
>
> Connect your own domain name to your application.

> [card] [Environment groups](https://docs.porter.run/applications/configure/environment-groups.md)
>
> Configure secrets and environment variables for your app.

> [card] [Autoscaling](https://docs.porter.run/applications/configure/autoscaling.md)
>
> Scale your application automatically based on traffic.

> [card] [Types of services](https://docs.porter.run/applications/deploy/types-of-services.md)
>
> Add workers, jobs, and configure service settings.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.