While both of these commands are used to execute code, there is a big difference when you would choose to run one rather than the other. For
ops run, you would use this command to run compiled code (executable machine code). So, for example, any golang code that you may run, you would use this command. Any code that is compiled at runtime, you would use
ops pkg load. Example of languages where you would use this are NodeJS or PHP. Each supported language for
ops pkg load, will have a corresponding package. To see a list of available packages, run
ops pkg list.