Deep-dive on the Next Gen Platform. Join the Webinar!

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

    Heroku Blog

    Find out what's new with Heroku on our 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
      • Working with Node.js
      • Troubleshooting Node.js Apps
      • Node.js Behavior in Heroku
    • 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
      • PHP Behavior in Heroku
      • Working with PHP
    • 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
    • Working with AI
  • 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
  • Heroku Architecture
  • Compute (Dynos)
  • Dyno Reference
  • Dyno CLI and API Commands

Dyno CLI and API Commands

Last updated October 16, 2024

Table of Contents

  • Dyno-Related CLI Commands
  • Dyno-Related API Endpoints
  • Additional Reading

The Heroku CLI and Platform API provide many useful commands for working with your dynos.

Dyno-Related CLI Commands

To view and modify your app’s dyno settings, you can use the Heroku CLI. It’s also possible to modify some of your app’s dyno settings with the Heroku Dashboard.

Task Example See Also
List the dynos for an app heroku ps View Your App’s Dynos
Start worker dynos heroku ps:scale worker=2 Introspect
Stop a particular process type * heroku ps:stop worker Stop
Stop a particular dyno * heroku ps:stop worker.2 Stop
Restart all dynos heroku ps:restart Dyno Restarts
Restart a particular dyno type heroku ps:restart web Dyno Restarts
Restart a particular dyno heroku ps:restart web.1 Dyno Restarts
Scale horizontally (Add more dynos) heroku ps:scale web=2 Scaling
Scale horizontally by incrementing the current number of dynos heroku ps:scale web+5 Scaling
Scale different dyno types horizontally at the same time heroku ps:scale web=1 worker=5 Scaling
Scale vertically (Use bigger dynos) heroku ps:type worker=standard-2x Scaling
Scale horizontally and vertically at the same time. This example scales the number of web dynos to 3 and resizes them to performance-l heroku ps:scale web=3:performance-l Scaling
Get help for the heroku ps command heroku ps --help
Launch a one-off dyno that runs bash in a console heroku run bash One-Off Dynos
Launch a one-off dyno that runs the “worker” process type that is present in your application’s Procfile heroku run worker One-Off Dynos
View logs heroku logs or heroku logs --tail Logging

*Running ps:stop on dynos that are part of a scaled process automatically restart. In Private Spaces, ps:stop terminates and replaces the dedicated instance running the dyno(s). To permanently stop dynos, scale down the process.

Dyno-Related API Endpoints

See the Heroku Platform API Reference for more information on these dyno-related endpoints:

  • Dyno endpoint for creating and managing individual dynos
  • Formation endpoint for managing your dyno formation, such as scaling horizontally or vertically.
  • Dyno Size endpoint for retrieving details about dyno sizes available on Heroku

Additional Reading

  • The Heroku CLI
  • Heroku CLI Commands
  • Platform API Reference
  • Dyno Management category

Keep reading

  • Dyno Reference

Feedback

Log in to submit feedback.

Technical Specifications by Dyno Size Dyno Scaling and Process Limits

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