> For the complete documentation index, see [llms.txt](/llms.txt).
> A full single-fetch corpus is available at [llms-full.txt](/llms-full.txt).
---
last_verified: 2026-05-13
title: Deployment Visibility Commands
category: CLI
description: Monitor and inspect deployment history and logs
---

Two top-level commands surface deployment information. They mirror Vercel's `vercel list` and `vercel logs`, but the current implementation is still a work in progress. Expect behavior to evolve as the Control Plane endpoints mature.


**Commands**: `agnt5 list [--environment <env>] [--limit <n>] [--status <s>] [--all]` (alias `agnt5 ls`); `agnt5 logs [options]`
**Status**: work-in-progress; both commands return a placeholder error today (`list functionality not yet implemented`) — use the Control Plane UI/API directly until the integration ships
**Inspection alternatives**: query the Control Plane HTTP API or browse Studio


<Callout type="warning">
**Work in Progress**

Both commands are currently under development. They return placeholder errors today but will provide full deployment visibility once the Control Plane endpoints are stabilized.
</Callout>

### `agnt5 list`

<CommandLayout command="list">
  <div slot="documentation">
    Displays a list of deployments for the current project. The command accepts filters that will be wired to the Control Plane once the backing API stabilizes.

    ### Syntax
    ```bash
    agnt5 list [options]
    agnt5 ls [options]
    ```

    ### Options

    | Flag | Description |
    | --- | --- |
    | `--environment` | Environment to inspect (default: `development`) |
    | `--limit` | Maximum number of deployments to show (default: `10`) |
    | `--status` | Filter by deployment status |
    | `--all` | Include deployments from every environment |

    <Callout type="info">
    **Current Status:** Returns a placeholder error today (`list functionality not yet implemented`). Use the Control Plane UI or APIs directly for detailed history until the CLI integration ships.
    </Callout>
  </div>

  <div slot="examples">
    <Tabs defaultValue="basic">
      <TabsList>
        <TabsTrigger value="basic">Basic listing</TabsTrigger>
        <TabsTrigger value="filtered">Filtered results</TabsTrigger>
        <TabsTrigger value="environments">Environment-specific</TabsTrigger>
      </TabsList>

      <TabsContent value="basic">
        <ExampleBlock title="Command" variant="command">
          ```bash
          # List recent deployments
          agnt5 list
          ```
        </ExampleBlock>

        <ExampleBlock title="Response" variant="response">
          ```
          Error: list functionality not yet implemented

          Use the Control Plane UI for deployment history.
          ```
        </ExampleBlock>

        <ExampleBlock title="Command" variant="command">
          ```bash
          # Short alias
          agnt5 ls
          ```
        </ExampleBlock>
      </TabsContent>

      <TabsContent value="filtered">
        <ExampleBlock title="Command" variant="command">
          ```bash
          # Filter by status
          agnt5 list --status running --limit 20
          ```
        </ExampleBlock>

        <ExampleBlock title="Response" variant="response">
          ```
          Error: list functionality not yet implemented

          Expected output:
          ID          | Status  | Environment | Created    | Image
          ------------|---------|-------------|------------|-------
          dep-abc123  | running | production  | 2 min ago  | v1.2.0
          dep-def456  | running | staging     | 1 hr ago   | v1.1.8
          ```
        </ExampleBlock>

        <ExampleBlock title="Command" variant="command">
          ```bash
          # List all deployments across environments
          agnt5 list --all
          ```
        </ExampleBlock>
      </TabsContent>

      <TabsContent value="environments">
        <ExampleBlock title="Command" variant="command">
          ```bash
          # Show production deployments
          agnt5 list --environment production
          ```
        </ExampleBlock>

        <ExampleBlock title="Response" variant="response">
          ```
          Error: list functionality not yet implemented

          Expected output for production:
          ID          | Status  | Created    | Image  | Replicas
          ------------|---------|------------|--------|----------
          dep-prod-01 | running | 2 min ago  | v1.2.0 | 3/3
          dep-prod-02 | stopped | 1 hr ago   | v1.1.9 | 0/3
          ```
        </ExampleBlock>
      </TabsContent>
    </Tabs>
  </div>
</CommandLayout>

### `agnt5 logs`

<CommandLayout command="logs">
  <div slot="documentation">
    Streams logs for a specific deployment. When an ID is omitted the command will eventually default to the latest deployment for the current project.

    ### Syntax
    ```bash
    agnt5 logs [deployment-id] [options]
    ```

    ### Options

    | Flag | Description |
    | --- | --- |
    | `--follow`, `-f` | Follow log output |
    | `--tail` | Number of lines to show from the end of the logs (default: `100`) |
    | `--since` | Timestamp or duration filter (e.g., `2h`, `30m`) |

    <Callout type="info">
    **Current Status:** Returns a placeholder error until log streaming is implemented. The CLI currently surfaces a message reminding you that a deployment ID is required.
    </Callout>
  </div>

  <div slot="examples">
    <Tabs defaultValue="basic">
      <TabsList>
        <TabsTrigger value="basic">Basic logs</TabsTrigger>
        <TabsTrigger value="streaming">Live streaming</TabsTrigger>
        <TabsTrigger value="filtered">Time filtering</TabsTrigger>
      </TabsList>

      <TabsContent value="basic">
        <ExampleBlock title="Command" variant="command">
          ```bash
          # Show logs for latest deployment
          agnt5 logs
          ```
        </ExampleBlock>

        <ExampleBlock title="Response" variant="response">
          ```
          Error: deployment ID required

          Log streaming not yet implemented.
          Use the Control Plane UI for deployment logs.
          ```
        </ExampleBlock>

        <ExampleBlock title="Command" variant="command">
          ```bash
          # Show last 50 lines from recent logs
          agnt5 logs --tail 50
          ```
        </ExampleBlock>
      </TabsContent>

      <TabsContent value="streaming">
        <ExampleBlock title="Command" variant="command">
          ```bash
          # Stream logs for specific deployment
          agnt5 logs deploy-abc123 --follow
          ```
        </ExampleBlock>

        <ExampleBlock title="Response" variant="response">
          ```
          Error: deployment ID required

          Expected behavior:
          2024-01-15T10:30:45Z [INFO] Starting service...
          2024-01-15T10:30:46Z [INFO] Handler registered: greet_user
          2024-01-15T10:30:47Z [INFO] Service ready on port 8080
          2024-01-15T10:30:48Z [INFO] Received request: greet_user
          ... (streaming continues)
          ```
        </ExampleBlock>

        <ExampleBlock title="Command" variant="command">
          ```bash
          # Follow logs with short flag
          agnt5 logs deploy-abc123 -f
          ```
        </ExampleBlock>
      </TabsContent>

      <TabsContent value="filtered">
        <ExampleBlock title="Command" variant="command">
          ```bash
          # Show logs from last 2 hours
          agnt5 logs --since 2h
          ```
        </ExampleBlock>

        <ExampleBlock title="Response" variant="response">
          ```
          Error: deployment ID required

          Expected filtered output:
          2024-01-15T08:30:45Z [INFO] Service healthy
          2024-01-15T08:35:12Z [INFO] Request processed
          2024-01-15T09:15:33Z [WARN] High memory usage
          2024-01-15T09:45:21Z [INFO] Memory usage normal
          ```
        </ExampleBlock>

        <ExampleBlock title="Command" variant="command">
          ```bash
          # Follow logs with time filter
          agnt5 logs deploy-abc123 -f --since 30m
          ```
        </ExampleBlock>
      </TabsContent>
    </Tabs>
  </div>
</CommandLayout>

## Planned Integration

Once these commands are complete they will work hand-in-hand with `agnt5 deploy` to provide an end-to-end workflow:

### Example Future Workflow

```bash
# 1. Deploy your project
agnt5 deploy --prod

# 2. List deployments to see the new one
agnt5 list --environment production

# 3. Monitor logs for the deployment
agnt5 logs deploy-abc123 --follow

# 4. Check deployment status
agnt5 list --status running
```

### Integration with Deployment Pipeline

The visibility commands will integrate seamlessly with the deployment workflow:

- **Post-deployment monitoring**: After `agnt5 deploy` completes, use `agnt5 logs` to monitor the new deployment
- **Historical analysis**: Use `agnt5 list` to compare deployment performance over time
- **Debugging**: Filter logs by time ranges to troubleshoot specific deployment issues
- **Multi-environment visibility**: Compare deployments across development, staging, and production

### Expected Features

When implementation is complete, expect:

- **Rich filtering**: Filter deployments by status, environment, time range, and more
- **Real-time updates**: Live log streaming with automatic reconnection
- **Deployment details**: Full metadata about each deployment including build info, resource usage, and health status
- **Integration hooks**: Commands will automatically detect the current project context and default to relevant deployments

<Callout type="tip">
Until these commands are implemented, you can monitor deployments through the Control Plane UI or use the direct APIs for programmatic access.
</Callout>
