Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get a list of available `heroku run` commands?

Tags:

heroku

There are several native Linux commands not available using heroku run, for example heroku run less filename and heroku run apropos. How do I get a list of all available heroku run commands?

Btw I'm just trying to look into some dirs and files from my application but for some reason I can't view them with the available commands. I tried cd my_project/my_application && ls but it just shows the ls of my_project for some reason.

like image 395
Bentley4 Avatar asked Feb 01 '13 14:02

Bentley4


People also ask

How do I get heroku command line?

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 can I see heroku logs in CMD?

You can view logs with the Heroku CLI, the dashboard, your logging add-on, or in your log drain. You can't view logs for apps in Shield spaces with Private Space Logging enabled. Retrieve logs from your log drain instead.

What is heroku cli autocomplete?

Heroku CLI Autocomplete helps you complete command and flag names when you press the tab key. CLI Autocomplete completes all of the commands in the Heroku CLI and will automatically support new commands as they are added. You can also complete values for some flags and args—including apps, pipelines and config vars.


2 Answers

You can get command list doing a ls in /bin Heroku folder. Follow this steps:

  • Login into Heroku via bash: heroku run bash
  • List bin commands: ls /bin

Remember than you are in a cloned instance. All changes you do in filesystem will be dropped exiting shell.

like image 79
dani herrera Avatar answered Sep 20 '22 07:09

dani herrera


You can bash into a dyno using heroku run bash and run this command:

echo -n $PATH | xargs -d : -I {} find {} -maxdepth 1 -executable -type f -printf '%P\n' | sort -u

(source: Linux command to list all available commands and aliases)

like image 22
friism Avatar answered Sep 21 '22 07:09

friism



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!