Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 974
JOSEMAFUEN Avatar asked Jan 29 '18 09:01

JOSEMAFUEN


People also ask

How do you fork in heroku?

You can create forks using the Heroku CLI with the heroku addons:create command. Provision a new database add-on with the --fork flag.

Why heroku login is not working?

Double check that there are no typos in your password as well. Reset your password and try logging in with the new password. Try using a different email address. Try using an email alias with a plus sign if you might have signed up using an alias such as [email protected] instead of just [email protected].

How do I log into heroku in Vscode?

Get Started with the Heroku CLIAfter you install the CLI, run the heroku login command. Enter any key to go to your web browser to complete login. The CLI then logs you in automatically. If you'd prefer to stay in the CLI to enter your credentials, run heroku login -i .

How do I copy a heroku app?

If you don't have a copy of the app's code locally, you can clone it from Heroku by running the CLI command heroku git:clone -a <myapp> . Alternatively, if your source code is stored in a service like Github (highly recommended), you could also clone it from there.


1 Answers

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

like image 112
fool-dev Avatar answered Sep 18 '22 11:09

fool-dev