---
title: Mergify Commands
description: Complete list of commands you can use with Mergify.
---

Mergify commands are directives that you can invoke directly from your
repository's comments. They let you run specific actions on pull requests
without leaving the GitHub interface. Whether you wish to rebase a branch,
refresh checks, or perform any other Mergify-supported action, a simple
command can save you time and clicks.

## Getting Started with Commands

Commands are invoked directly within the comments section of your pull
requests, as part of your regular GitHub workflow. Here's a step-by-step
guide to getting started:

1. **Navigate to Your Pull Request**: Head over to the pull request where you
   want to execute a Mergify action.

2. **Enter Command in the Comment Section**: In the comment box, type the
   Mergify command you wish to use. All Mergify commands are prefixed with
   `@Mergifyio` to ensure they're correctly identified and executed by the bot.
   For instance, to rebase your pull request, you'd type `@Mergifyio rebase`.

3. **Submit the Comment**: Click on the "Comment" button to post your command.
   Mergify will immediately detect the command and begin processing your
   request. Mergify will acknowledge the comment with a 👍 reaction and you'll
   see a response from the Mergify bot confirming the action or providing
   feedback in case of errors.

4. **Check Mergify's Feedback**: Once the action is complete, Mergify will
   typically leave a comment or update the pull request's status to let you
   know the outcome. This feedback can be especially useful to understand any
   issues or conflicts that might arise from the command.

5. **Advanced Commands**: Some commands may accept additional parameters or
   have specific nuances. Always refer back to this documentation to understand
   the complete syntax and behavior.

<Image src={commandExample} alt="Example command comment in GitHub"/>

Always make sure you understand the impact of a command, especially in a
collaborative environment. Misused commands can disrupt the workflow of other
contributors.

## Command List

<DocsetGrid>
  <Docset title="Backport" path="backport" icon="lucide:door-open">
    Copy a pull request to another branch after merge.
  </Docset>
  <Docset title="Copy" path="copy" icon="lucide:copy">
    Copy a pull request to another branch.
  </Docset>
  <Docset title="Queue" path="queue" icon="lucide:square-plus">
    Add a pull request to a merge queue.
  </Docset>
  <Docset title="Rebase" path="rebase" icon="lucide:git-branch">
    Rebase a pull request.
  </Docset>
  <Docset title="Refresh" path="refresh" icon="lucide:refresh-cw">
    Refresh Mergify status of a pull request.
  </Docset>
  <Docset title="Squash" path="squash" icon="lucide:layers">
    Squash the commits of a pull request into one.
  </Docset>
  <Docset title="Update" path="update" icon="lucide:git-branch">
    Update a pull request by merging its base branch.
  </Docset>
  <Docset title="Dequeue" path="dequeue" icon="lucide:circle-minus">
    Remove a pull request from a merge queue.
  </Docset>
</DocsetGrid>
