O'Reilly logo

Java 9 Cookbook by Nick Samoylov, Mohamed Sanaulla

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a new app from the CLI

Perform the following steps to create a new app from the CLI:

  1. Install the Heroku CLI from https://cli.heroku.com.
  2. Once installed, Heroku should be in your system's PATH variable. 
  3. Open a command prompt and run heroku create. You will see output similar to the following:
        Creating app... done, glacial-beyond-27911        https://glacial-beyond-27911.herokuapp.com/ |        https://git.heroku.com/glacial-beyond-27911.git
  1. The app name is generated dynamically and a remote Git repository is created. You can specify the app name and region (as done via the UI) by running the command: 
      $ heroku create test-app-9812 --region us      Creating test-app-9812... done, region is us      https://test-app-9812.herokuapp.com/ | https://git.heroku.com/test-app-9812.git ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required