{
  "description": "Run WebAssembly modules and packages.",
  "name": "wasmer",
  "subcommands": [
    {
      "name": "run",
      "description": "Run a .wasm/.wat file, URL or registry package. Environment variables, networking, journals and compiler backend options are left out.",
      "options": [
        {
          "names": [
            "--volume"
          ],
          "description": "Map a host directory into the module as [HOST_DIR:]GUEST_DIR.",
          "args": {
            "name": "volume",
            "description": "Map a host directory into the module as [HOST_DIR:]GUEST_DIR.",
            "isOptional": false,
            "isVariadic": true
          },
          "isRepeatable": true
        },
        {
          "names": [
            "--cwd"
          ],
          "description": "Initial working directory",
          "args": {
            "name": "cwd",
            "isOptional": false
          }
        },
        {
          "names": [
            "--invoke"
          ],
          "description": "Function to invoke",
          "args": {
            "name": "invoke",
            "isOptional": false
          }
        },
        {
          "names": [
            "--entrypoint"
          ],
          "description": "Entrypoint (webc packages)",
          "args": {
            "name": "entrypoint",
            "isOptional": false
          }
        },
        {
          "names": [
            "--forward-host-env"
          ],
          "description": "Forward host environment"
        },
        {
          "names": [
            "--offline"
          ],
          "description": "Offline (local sources only)"
        },
        {
          "names": [
            "--no-tty"
          ],
          "description": "Disable TTY bridge"
        },
        {
          "names": [
            "--stack-size"
          ],
          "description": "Stack size (bytes)",
          "args": {
            "name": "stack_size",
            "isOptional": false
          }
        }
      ],
      "args": [
        {
          "name": "input",
          "isOptional": false
        },
        {
          "name": "args",
          "description": "Passed to the program after the module.",
          "isOptional": true,
          "isVariadic": true
        }
      ]
    }
  ]
}
