# Run Shell Commands in a Workflow (https://www.shipfox.io/docs/how-to/author-workflows/run-shell-commands)

Description: Add a run step that executes shell commands on a runner.

**Use a run step to execute a shell command on a runner.** This guide prints a
message from a manually started workflow. Replace the example with the command
your workflow needs.

## Add the commands [#add-the-commands]

```yaml
# yaml-language-server: $schema=https://www.shipfox.io/docs/workflow.schema.json
name: Run shell commands
runner: shipfox

triggers:
  manual:
    source: manual

jobs:
    command:
    steps:
      - run: echo "Single-line command"
      - run: |
          echo "First line of a multiline command"
          echo "Second line of a multiline command"
```

## Verify the command [#verify-the-command]

### Start the workflow

Select **Run**, then open the new run.

### Inspect the output

Open both run steps. Confirm that their logs contain the three messages
from the example. After adapting the example, confirm that each command
produced its expected result.

Use [Inspect logs](https://www.shipfox.io/docs/how-to/run-and-troubleshoot/inspect-logs) when output is
missing. See [Run step
fields](https://www.shipfox.io/docs/reference/workflow-schema#run-step-fields) for command options. See
[Environment variables](https://www.shipfox.io/docs/reference/workflow-schema#environment-variables) for
workflow, job, and step order.