How to add to PATH?

I would like to add an executable to the environment PATH variable

I have something like this in my .replit file:

run = "chmod 755 cli && export PATH=/home/runner/cli:$PATH && cli start"

But it gets reset every time I run <Ctrl> <Enter>.

What is the best way to do this?

You are viewing a single comment. View All

replit secrets are just env variables- maybe try setting the path using that?