Pass arguments to an application

Azure Sphere applications receive command-line arguments through the application manifest. The application must follow the C language conventions by specifying argc and argv as arguments to main().

In the application manifest, the command-line arguments appear as an array in the "CmdArgs" field. This example passes four arguments to the application:

{
    "SchemaVersion": 1,
    "Name": "MyTestApp",
    "ComponentId": "072c9364-61d4-4303-86e0-b0f883c7ada2",
    "EntryPoint": "/bin/app",
    "CmdArgs": ["-m", "262144", "-t", "1"],
    "Capabilities": {
   ...