Skip Navigation
Show nav
Dev Center
  • Get Started
  • Documentation
  • Changelog
  • Search
  • Get Started
    • Node.js
    • Ruby on Rails
    • Ruby
    • Python
    • Java
    • PHP
    • Go
    • Scala
    • Clojure
    • .NET
  • Documentation
  • Changelog
  • More
    Additional Resources
    • Home
    • Elements
    • Products
    • Pricing
    • Careers
    • Help
    • Status
    • Events
    • Podcasts
    • Compliance Center
    Heroku Blog

    Visit the Heroku Blog

    Find news and updates from Heroku in the blog.

    Visit Blog
  • Log inorSign up
Hide categories

Categories

  • Heroku Architecture
    • Compute (Dynos)
      • Dyno Management
      • Dyno Concepts
      • Dyno Behavior
      • Dyno Reference
      • Dyno Troubleshooting
    • Stacks (operating system images)
    • Networking & DNS
    • Platform Policies
    • Platform Principles
  • Developer Tools
    • Command Line
    • Heroku VS Code Extension
  • Deployment
    • Deploying with Git
    • Deploying with Docker
    • Deployment Integrations
  • Continuous Delivery & Integration (Heroku Flow)
    • Continuous Integration
  • Language Support
    • Node.js
      • Node.js Behavior in Heroku
      • Working with Node.js
      • Troubleshooting Node.js Apps
    • Ruby
      • Rails Support
      • Working with Bundler
      • Working with Ruby
      • Ruby Behavior in Heroku
      • Troubleshooting Ruby Apps
    • Python
      • Working with Python
      • Background Jobs in Python
      • Python Behavior in Heroku
      • Working with Django
    • Java
      • Java Behavior in Heroku
      • Working with Java
      • Working with Maven
      • Working with Spring Boot
      • Troubleshooting Java Apps
    • PHP
      • Working with PHP
      • PHP Behavior in Heroku
    • Go
      • Go Dependency Management
    • Scala
    • Clojure
    • .NET
      • Working with .NET
  • Databases & Data Management
    • Heroku Postgres
      • Postgres Basics
      • Postgres Getting Started
      • Postgres Performance
      • Postgres Data Transfer & Preservation
      • Postgres Availability
      • Postgres Special Topics
      • Migrating to Heroku Postgres
    • Heroku Key-Value Store
    • Apache Kafka on Heroku
    • Other Data Stores
  • AI
    • Heroku Inference
      • AI Models
      • Inference Essentials
      • Inference API
      • Quick Start Guides
    • Working with AI
    • Vector Database
  • Monitoring & Metrics
    • Logging
  • App Performance
  • Add-ons
    • All Add-ons
  • Collaboration
  • Security
    • App Security
    • Identities & Authentication
      • Single Sign-on (SSO)
    • Private Spaces
      • Infrastructure Networking
    • Compliance
  • Heroku Enterprise
    • Enterprise Accounts
    • Enterprise Teams
    • Heroku Connect (Salesforce sync)
      • Heroku Connect Administration
      • Heroku Connect Reference
      • Heroku Connect Troubleshooting
  • Patterns & Best Practices
  • Extending Heroku
    • Platform API
    • App Webhooks
    • Heroku Labs
    • Building Add-ons
      • Add-on Development Tasks
      • Add-on APIs
      • Add-on Guidelines & Requirements
    • Building CLI Plugins
    • Developing Buildpacks
    • Dev Center
  • Accounts & Billing
  • Troubleshooting & Support
  • Integrating with Salesforce
  • Developer Tools
  • Command Line
  • Renaming Apps

Renaming Apps

English — 日本語に切り替える

Last updated March 13, 2025

Table of Contents

  • Rename an App in the Heroku Dashboard
  • Rename an App with the CLI
  • Update Git Remotes After Renaming

Every Heroku app has a unique app name to identify the app. You can rename the app at any time, which also updates the subdomain that your app is accessible at.

Rename an App in the Heroku Dashboard

To rename an app, click the name of the app from the dashboard, and then click the Settings tab.

App settings tab

Rename an App with the CLI

You can rename an app at any time with the heroku apps:rename command. For example, to rename an app named old-example-app to new-example-app, run the heroku apps:rename command from your app’s Git repository.

$ heroku apps:rename new-example-app
Renaming old-example-app to new-example-app... done
http://new-example-app-1234567890ab.herokuapp.com/ | git@herokuapp.com:new-example-app.git
Git remote heroku updated

You can also rename an app from outside of its associated Git repository by including the --app option in the command.

$ heroku apps:rename newname --app oldname
http://new-example-app-1234567890ab.herokuapp.com/ | git@herokuapp.com:new-example-app.git

When you rename an app, it’s immediately available at the new corresponding herokuapp.com subdomain, new-example-app-1234567890ab.herokuapp.com, and it’s unavailable at the old one, old-example-app-0123456789yz.herokuapp.com.

If you have custom domains configured that use your app’s old subdomain, for example, a CNAME record that points to old-example-app-0123456789yz.herokuapp.com, you must update the configuration for those domains.

For Fir-generation apps, the DNS zone can change as well when you rename your app. For example, old-example-app-0123456789yz.cherry-virginia.herokuapp.com updates to new-example-app-1234567890ab.holly-virginia.herokuapp.com.

Update Git Remotes After Renaming

If you use the Heroku CLI to rename an app from inside its associated Git repository, your local Heroku remote is updated automatically.

You must update the remote’s details on other instances of the repository manually.

You can run these commands to update the remote’s details in other repository instances.

$ git remote rm heroku
$ heroku git:remote -a new-example-app

Keep reading

  • Command Line

Feedback

Log in to submit feedback.

Using CLI Plugins Running Apps Locally

Information & Support

  • Getting Started
  • Documentation
  • Changelog
  • Compliance Center
  • Training & Education
  • Blog
  • Support Channels
  • Status

Language Reference

  • Node.js
  • Ruby
  • Java
  • PHP
  • Python
  • Go
  • Scala
  • Clojure
  • .NET

Other Resources

  • Careers
  • Elements
  • Products
  • Pricing
  • RSS
    • Dev Center Articles
    • Dev Center Changelog
    • Heroku Blog
    • Heroku News Blog
    • Heroku Engineering Blog
  • Twitter
    • Dev Center Articles
    • Dev Center Changelog
    • Heroku
    • Heroku Status
  • Github
  • LinkedIn
  • © 2025 Salesforce, Inc. All rights reserved. Various trademarks held by their respective owners. Salesforce Tower, 415 Mission Street, 3rd Floor, San Francisco, CA 94105, United States
  • heroku.com
  • Legal
  • Terms of Service
  • Privacy Information
  • Responsible Disclosure
  • Trust
  • Contact
  • Cookie Preferences
  • Your Privacy Choices