Search code examples
ruby-on-railsgitherokuheroku-cli

Fork is not a heroku command


I'm trying to change my Heroku app region by following this official guide: https://devcenter.heroku.com/articles/app-migration.

The problem is that, when I try to fork it at the very beginning using: heroku fork --from sourceapp --to targetapp --region eu.

Heroku cli returns:

 !    fork is not a heroku command.
 !    Perhaps you meant info
 !    Run heroku help for a list of available commands.

I'm using the latest version of Heroku Cli 6.15.18-fdf2097 in Windows 10


Solution

  • heroku-fork says

    Heroku CLI plugin to fork an existing app into a new app.

    DEPRECATED: Heroku fork is deprecated as a core command. It will no longer be included in the CLI by default 2017-12-01. See Developing CLI Plugins for more information on developing plugins.

    You need to install heroku-fork plugin

    Installation

    heroku plugins:install heroku-fork
    

    More info see here

    Hope it helps