---
title: "oz0 job run"
description: "Run a workflow through the edge's Temporal proxy and print its result as JSON."
canonical_url: "https://docs.oz0.ai/reference/cli/oz0/job/run"
---
# oz0 job run

> Run a workflow through the edge's Temporal proxy and print its result as JSON.

For: Operators and developers looking up a command.

Run a workflow through the edge's Temporal proxy and print its result as JSON. This talks Temporal directly and is meant for debugging nodes and tools; agents are run with `oz0 run`.

## Usage

```bash
oz0 job run [flags]
```

## Flags

<table>
<thead>
  <tr>
    <th>
      Flag
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        --address
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        from the context, else 127.0.0.1:7233
      </code>
    </td>
    
    <td>
      edge Temporal address
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --id
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        random
      </code>
    </td>
    
    <td>
      workflow ID
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --input
      </code>
    </td>
    
    <td>
      stringArray
    </td>
    
    <td>
      
    </td>
    
    <td>
      workflow argument as JSON; repeat for several arguments
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --namespace
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        from the context, else default
      </code>
    </td>
    
    <td>
      namespace
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --task-queue
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      
    </td>
    
    <td>
      task queue to run on (required)
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --timeout
      </code>
    </td>
    
    <td>
      duration
    </td>
    
    <td>
      <code>
        1m0s
      </code>
    </td>
    
    <td>
      how long to wait for the result
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --workflow
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      
    </td>
    
    <td>
      workflow type name (required)
    </td>
  </tr>
</tbody>
</table>

## Inherited flags

<table>
<thead>
  <tr>
    <th>
      Flag
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        --context
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        $OZ0_CONTEXT or &lt;config dir>/orchestrator-zero/context.json
      </code>
    </td>
    
    <td>
      CLI context file written by server init
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --log-level
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        info
      </code>
    </td>
    
    <td>
      log level: debug, info, warn or error
    </td>
  </tr>
</tbody>
</table>

See [all `oz0` commands](https://docs.oz0.ai/reference/cli/oz0) and the [global flags](https://docs.oz0.ai/reference/cli/oz0#global-flags).


## Sitemap

See the full [sitemap](https://docs.oz0.ai/sitemap.md) for all pages.
