# CLI 연동

## CLI 연동이란?

**그랜터에서는 재무·인사·결재 데이터를 하나의 명령어 체계로 통합하고, AI와의 자연어 대화만으로 다양한 업무를 자동화할 수 있어요.**

세금계산서 발행 후 입금 확인, 전자 결재 연동까지 매달 반복되는 업무들을 AI 에이전트와의 대화로 처리할 수 있어요.

## CLI 설치

CLI 설치와 API 키 발급 후 바로 그랜터 CLI를 사용할 수 있어요.\
키 발급 후 터미널 또는 AI 에이전트로 그랜터 업무를 자동화할 수 있어요.<br>

{% stepper %}
{% step %}

### **CLI를 설치해 주세요.**

아래 명령어를 터미널에 입력하고 실행해 주세요.

```
sudo npm install -g @granter-biz/cli
```

<figure><img src="/files/HdoNSA0BuFuldSLqf0OJ" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### **API 키를 연결해 주세요.**

[app.granter.biz](https://app.granter.biz/)에서 API 키를 발급 후, 아래 명령어에 있는 YOUR\_API\_KEY를 발급받은 API 키로 대체한 후 실행해 주세요.

<figure><img src="/files/Mobv1I7gqdyrSrU6cWAb" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### 첫 명령어를 입력하세요.

빠르게 끝내고 싶은 업무를 자연어로 입력하세요.

<figure><img src="/files/ayktklAt2ZC1QhdhKZqS" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

## 'CLI 연동'을 통해 무엇을 할 수 있나요?

그랜터 CLI 연동으로 아래와 같은 상황에 맞춰 다양하게 활용할 수 있어요.

<details>

<summary><strong>세금계산서 발행</strong> 내역과 <strong>입금</strong> 내역을 대조할 수 있어요.</summary>

* AI가 발행 내역과 실제 입금 내역을 자동으로 비교해 아직 수금이 안 된 거래처를 리스트업해줘요.
* 거래처별 입금 현황을 한 번에 파악할 수 있어요.

</details>

<details>

<summary><strong>결재와 세금계산서 발행을 연결</strong>할 수 있어요.</summary>

* 결재 시스템과 연동해 승인 완료된 건만 골라 세금계산서를 자동으로 발행할 수 있어요.
* 승인된 건만 자동으로 걸러주니 누락이나 실수 없이 처리할 수 있어요.

</details>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.granter.biz/undefined-2/cli.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
