Modify page from terminal?

I have lua in my homepage that I think is crashing my site.
I can’t navigate at all because of it, so I’d like to modify the page through cli so that I can verify if the homepage is the problem.

How can I modify the homepage if I’m able to ssh into the device?

Just use any editor to edit your index.md file for instance. You may prefer to temporarily disable a bunch of things though, have a look at this: https://silverbullet.md/Troubleshooting