---
title: activate_workflow
description: 'Writes `"state": "active"` into a workflow''s file on `branch`.'
sidebar:
  order: 53
---

Writes `"state": "active"` into a workflow's file on `branch`. Typed inside `bash`, where `help activate_workflow` prints the same.

```text
Usage: activate_workflow HANDLE BRANCH [options]

Writes `"state": "active"` into a workflow's file on `branch`. Once
merge_branch puts it live, its trigger starts runs, a schedule at each
of its times, and each run does what its steps do. Say what it will do
to the owner first.

Options:
  --handle TEXT (required)
      The workflow's handle, as list_workflows names it: its file is workflows/<handle>.json. Lower-case letters and digits, words joined by _.
  --branch TEXT (required)
      The branch to write workflows/<handle>.json on, made with git switch -c. Nothing changes until merge_branch puts it live.
  --message TEXT
      What the change is, in a line. Defaults to naming the files.
  --json OBJECT
      Every argument at once, as one JSON object; --json - reads it from stdin.
```
