Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to interact with merge from CLI #237

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions merge/command-line.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
description: >-
The Trunk CLI procides command-line acccess to your merge queue.
---

# Merge from the CLI

### Command Line

| trunk merge \<command> | Description |
| -------------------------------- | ------------------------------------------------------------------------------ |
| `status` | list status of the merge queue, provides a snapshot of current activity in the merge queue |
| `{PR_NUMBER}` | Insert the specified pull request into the merge queue |
| `cancel <pr-number>` | Remove the specified pull request from the merge queue |


### Login

The Trunk [plugins repo](https://github.com/trunk-io/plugins) ships with a collection of tools that can help supercharge your repository and provide examples for how to write your own. To see a list of tools that you can enable in your own repo run:

```shell
trunk tools list
```

<figure><img src="../../../.gitbook/assets/image (7) (1).png" alt=""><figcaption><p>list of available and enabled tools</p></figcaption></figure>