Skip to content
Sign upLog in
← Back to Community

entrypoint key in .replit file

Profile icon
[deleted]

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

run = "dotnet run" entrypoint = "main.cs" [env] DOTNET_SKIP_FIRST_TIME_EXPERIENCE = "true"

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?

Comments
hotnewtop
Profile icon
InvisibleOne

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.