Ask coding questions

← Back to all posts
entrypoint key in .replit file
AlvinSeville7cf (0)

Hello! I have the following default .replit file for .NET Core 2.1:

I want to understand how entrypoint works under the hood. Is it simply substituted into run command or not? Why not to use simple run without entrypoint?

InvisibleOne (3263)

The default run command when you press the button will be something like run file.txt or something like that. Adding a .replit file just lets you change that command to something else.
When you run your repl, to start the file it runs that command like you would on your computer terminal, and then displays the results.