Skip to content

xlflow attach

Validate that the active Excel workbook matches the configured workbook.

Usage

bash
xlflow attach --active [--keepalive] [--keepalive-interval <duration>]

Options and Arguments

Option / argumentDescriptionDefault
--activeInspect the currently active workbook in Excel.required
--keepaliveKeep the bridge process alive.false
--jsonEmit a machine-readable match result.false

Examples

bash
xlflow attach --active
xlflow attach --active --json

Notes

IMPORTANT

attach is a safety check. It does not import source, change workbook state, or create a managed session.

TIP

Use this before manual Excel work when multiple workbooks are open.

JSON Output Example

Successful --json output uses the xlflow envelope plus command-specific fields.

json
{
  "status": "ok",
  "command": "attach",
  "active_workbook": "Book.xlsm",
  "matches_config": true
}

Released under the MIT License.