function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
DeepakkumarRDeepakkumarR 

Error when tryong heroku command

Hello,

I'm trying to do the trailhead module Develop Apps with Heroku Enterprise. When i run the command given in the module,
git clone https://github.com/heroku/node-js-getting-started <your app’s name> cd <your app’s name> heroku git:remote -a <your app’s name>
I'm getting the below error.

error: unknown switch `a'

Can someone please help me run the command.

Thanks




 
Best Answer chosen by DeepakkumarR
Swathi Krishnamurthy 8Swathi Krishnamurthy 8
I had the same issue. I just ran the commands one after the other and it seemed to wrk. 
git clone https://github.com/heroku/node-js-getting-started <your app’s name>
cd <your app’s name>
heroku git:remote -a <your app’s name> 

All Answers

SandhyaSandhya (Salesforce Developers) 
Hi,

Make sure that you are giving correct app name.

Best Regards,
Sandhya
Swathi Krishnamurthy 8Swathi Krishnamurthy 8
I had the same issue. I just ran the commands one after the other and it seemed to wrk. 
git clone https://github.com/heroku/node-js-getting-started <your app’s name>
cd <your app’s name>
heroku git:remote -a <your app’s name> 
This was selected as the best answer
DeepakkumarRDeepakkumarR
Thank you very much Swathi. This worked for me