# 부탁하는 문장 모음

> 올리기부터 내리기까지, 상황별로 에이전트에게 건넬 문장과 그때 에이전트가 실행하는 명령을 모았어요.

웹 페이지: https://guides.somaro.ai/agents/prompts.html

에이전트에게 건넬 문장을 상황별로 모았어요. 문장 아래에는 에이전트가 실제로 실행하는 명령을 적어 두었으니, 에이전트가 무엇을 하고 있는지 따라가기 쉬워요.

somaro가 정해 둔 공식 문장은 맨 위의 하나뿐이에요. 나머지는 예시이니 내 말투로 바꿔 써도 돼요. 에이전트가 somaro를 처음 다루는 세션이라면 "https://somaro.ai/skill.md 를 읽고"를 앞에 붙여 주세요.

명령에서 `<name>`과 `<app>`은 앱 이름이고 `somaro`는 `~/.somaro/bin/somaro`에 설치된 CLI예요. 명령은 2026-12-05 기준 [skill.md](https://somaro.ai/skill.md)와 [manual](https://somaro.ai/manual)의 것이에요.

## 올리기

> 공식 문장: https://somaro.ai/skill.md 를 읽고 이 앱을 올려줘

**curl**
```sh
curl -sS -K "$HOME/.somaro/somaro.ai/token" -H "X-Somaro-Skill: 2026-12-04c" -T "$HOME/.somaro/<name>.tgz" https://somaro.ai/v1/apps/<name>
curl -sS -K "$HOME/.somaro/somaro.ai/token" -H "X-Somaro-Skill: 2026-12-04c" -T "$HOME/.somaro/<name>.tgz" "https://somaro.ai/v1/apps/<name>?yes"
```
**CLI**
```sh
somaro deploy <dir>
somaro deploy <dir> --yes
```

첫 줄은 제안만 받고 둘째 줄이 배포해요. 전체 과정은 [에이전트로 첫 앱 올리기](https://guides.somaro.ai/guides/first-app.html)에 있어요.

## 이름을 정해서 올리기

> 에이전트에게 이렇게 말해요: 이 앱을 somaro에 my-notes라는 이름으로 올려줘

curl 방식에서는 주소의 `<name>` 자리에 그 이름을 쓰고 CLI에서는 `somaro deploy <dir> --name <app>`을 써요. 다른 패스포트가 가진 이름이면 거절되고 쓸 수 있는 이름을 알려 줘요. [배포와 자동 감지](https://guides.somaro.ai/features/deploy.html)를 보세요.

## 고쳐서 다시 올리기

> 에이전트에게 이렇게 말해요: 고친 내용을 somaro에 다시 올려줘

올릴 때와 같은 명령을 다시 실행해요. 주소는 그대로이고 `/workspace`도 그대로 남아요.

## 상태와 로그 보기

> 에이전트에게 이렇게 말해요: somaro에 올린 앱이 잘 열리는지, 언제 만료되는지 확인하고 로그도 봐줘

**curl**
```sh
curl -sS -K "$HOME/.somaro/somaro.ai/token" https://somaro.ai/v1/apps/<name>
curl -sS -K "$HOME/.somaro/somaro.ai/token" "https://somaro.ai/v1/apps/<name>/logs?tail=100"
```
**CLI**
```sh
somaro status <app>
somaro logs <app>
```

내 앱 전체 목록은 `GET /v1/apps` 또는 `somaro apps`로 봐요.

## 환경 변수 넣기

> 에이전트에게 이렇게 말해요: 이 앱에 OPENAI_API_KEY를 somaro 환경 변수로 넣어줘. 값은 내 .env 파일에 있어

**curl**
```sh
curl -sS -K "$HOME/.somaro/somaro.ai/token" -X PUT --data-binary @vars.json https://somaro.ai/v1/apps/<name>/env
curl -sS -K "$HOME/.somaro/somaro.ai/token" -X POST https://somaro.ai/v1/apps/<name>/restart
```
**CLI**
```sh
somaro env set <app> --from-file .env
somaro restart <app>
```

curl 방식에서 `vars.json`은 앱 폴더 밖에 잠깐 만들었다 지우는 파일이고 내용은 `{"set": {"KEY": "value"}}` 꼴이에요. 넣은 값은 앱이 다음에 시작할 때 적용되니 바로 쓰려면 다시 시작해요. [환경 변수와 비밀값](https://guides.somaro.ai/features/env.html)을 보세요.

## 데이터베이스 사본 받기

> 에이전트에게 이렇게 말해요: somaro에 올린 앱의 SQLite 데이터베이스를 내 컴퓨터로 받아줘

**curl**
```sh
curl -sS -K "$HOME/.somaro/somaro.ai/token" https://somaro.ai/v1/apps/<name>/db
curl -fsS -K "$HOME/.somaro/somaro.ai/token" -o <file>.db "https://somaro.ai/v1/apps/<name>/db/pull?path=<path>"
```
**CLI**
```sh
somaro db <app>
somaro db pull <app>
```

앱이 실행되는 중에도 온전한 사본을 받아요. [SQLite 데이터베이스](https://guides.somaro.ai/features/database.html)를 보세요.

## 백업하고 되돌리기

> 에이전트에게 이렇게 말해요: 마이그레이션을 돌리기 전에 somaro 복원 지점을 하나 만들어줘

> 에이전트에게 이렇게 말해요: 방금 데이터를 잘못 지웠어. somaro 복원 지점 목록을 보여주고, 내가 고르는 시점으로 되돌려줘

**curl**
```sh
curl -sS -K "$HOME/.somaro/somaro.ai/token" -X POST https://somaro.ai/v1/apps/<name>/backup
curl -sS -K "$HOME/.somaro/somaro.ai/token" https://somaro.ai/v1/apps/<name>/backups
curl -sS -K "$HOME/.somaro/somaro.ai/token" -X POST "https://somaro.ai/v1/apps/<name>/restore?point=<point>"
```
**CLI**
```sh
somaro backup <app>
somaro backups <app>
somaro restore <app> <point> --yes
```

되돌리면 그 시점 뒤에 쓴 것은 `/workspace`에서 사라져요. 되돌리기 직전의 상태도 복원 지점으로 남으니 되돌린 것을 다시 무를 수 있어요. [백업과 되돌리기](https://guides.somaro.ai/features/backups.html)를 보세요.

## 방문자 로그인 붙이기

> 에이전트에게 이렇게 말해요: 이 앱에 somaro의 Google 로그인을 붙여줘. 글쓰기는 로그인한 사람만 할 수 있게 해줘

에이전트는 앱에 `/.somaro/login?next=/path`로 가는 링크를 넣고 요청의 `X-Somaro-User-Id` 헤더로 누가 로그인했는지 읽게 고쳐요. Google에 등록할 것도, OAuth 라이브러리도 필요 없어요. 다시 올린 뒤에는 `somaro visitor <app>`(curl로는 `POST /v1/apps/<app>/test-visitor`)이 주는 시험용 쿠키로 로그인한 쪽을 직접 확인해요. [방문자 로그인](https://guides.somaro.ai/features/login.html)과 [Google 로그인 붙이기](https://guides.somaro.ai/guides/add-login.html)를 보세요.

## 방문 수 보기

> 에이전트에게 이렇게 말해요: 지난 일주일 동안 이 앱에 몇 명이 왔는지 somaro 통계로 알려줘

**curl**
```sh
curl -sS -K "$HOME/.somaro/somaro.ai/token" "https://somaro.ai/v1/apps/<name>/stats?since=7d"
```
**CLI**
```sh
somaro stats <app>
```

[방문 통계](https://guides.somaro.ai/features/stats.html)를 보세요.

## 올리기 전에 잠시 보여 주기

> 에이전트에게 이렇게 말해요: 지금 3000번 포트에서 돌아가는 걸 somaro link로 잠깐 보여줘

```sh
somaro link 3000
```

이 기능은 CLI에만 있어요. 명령이 실행되는 동안만 주소가 열리고 서버에는 아무것도 남지 않아요. [somaro link](https://guides.somaro.ai/features/link.html)를 보세요.

## 이메일 인증하기

> 에이전트에게 이렇게 말해요: 내 앱을 계속 유지하고 싶어. 이메일 인증을 해줘. 주소는 (내 이메일 주소)

**curl**
```sh
curl -sS -K "$HOME/.somaro/somaro.ai/token" --data-urlencode "address=<address>" -d "lang=<ko or en>" https://somaro.ai/v1/guardian
curl -sS -K "$HOME/.somaro/somaro.ai/token" https://somaro.ai/v1/guardian
```
**CLI**
```sh
somaro guardian <address> --lang ko
somaro guardian
```

첫 줄이 메일을 보내 달라고 요청하고 둘째 줄이 어디까지 진행됐는지 확인해요. 에이전트가 번호를 알려 주면 받은 메일의 번호와 같은지 보고 버튼을 누르세요. [앱을 24시간 넘게 유지하기](https://guides.somaro.ai/guides/keep-app.html)를 보세요.

## 앱 내리기

> 에이전트에게 이렇게 말해요: somaro에 올린 my-notes 앱을 내려줘. 내리기 전에 데이터베이스 사본을 받아둬

**curl**
```sh
curl -sS -K "$HOME/.somaro/somaro.ai/token" -X DELETE https://somaro.ai/v1/apps/<name>
```
**CLI**
```sh
somaro rm <app> --yes
```

**주의**
앱을 내리면 주소가 닫히고 `/workspace`의 파일, 환경 변수, 백업이 함께 지워져요. 에이전트는 내리기 전에 어떤 앱의 무엇이 사라지는지 먼저 말해 줘요.

## 다른 컴퓨터 연결하기

> 에이전트에게 이렇게 말해요: 이 컴퓨터에서도 내 somaro 앱을 다루고 싶어. 소유자 이메일은 (내 이메일 주소)

새 컴퓨터에서 같은 주소로 이메일 인증을 요청하는 명령(위의 "이메일 인증하기"와 같아요)을 실행해요. 메일의 버튼을 누르면 이 컴퓨터의 키가 내 패스포트의 열쇠가 돼요. [다른 컴퓨터에서 이어 쓰기와 키 복구](https://guides.somaro.ai/guides/another-machine.html)를 보세요.

## 플랜 가격 확인하기

> 에이전트에게 이렇게 말해요: somaro 유료 플랜이 뭘 주고 얼마인지 알려줘. 결제는 아직 하지 마

```sh
curl https://somaro.ai/v1/plans
somaro pay <passport-id> <tier>
```

첫 줄은 플랜 목록과 가격을 인증 없이 받아요. 둘째 줄은 `--yes`가 없으면 가격만 말하고 결제하지 않아요. 에이전트는 이 등급을 이 가격에 사겠다는 내 말 없이는 결제하지 않아요. [플랜과 결제](https://guides.somaro.ai/features/plans.html)를 보세요.

## 호스트 고장 알리기

> 에이전트에게 이렇게 말해요: 배포는 성공했다는데 주소가 404야. 다시 올려보고, 그래도 같으면 somaro 운영자에게 알려줘

**curl**
```sh
curl -sS -K "$HOME/.somaro/somaro.ai/token" --data-urlencode "text=<what happened>" -d app=<name> -d job=<job id> https://somaro.ai/v1/reports
```
**CLI**
```sh
somaro report "<text>" --app <app> --job <job id>
```

신고에 대한 답은 서버로 돌아오지 않아요. 에이전트가 접수 번호를 알려 줘요. [문제 해결](https://guides.somaro.ai/help/troubleshooting.html)을 보세요.

## 관련 문서

- [에이전트 활용 가이드](https://guides.somaro.ai/agents/overview.html)
- [에이전트가 지키는 규칙](https://guides.somaro.ai/agents/rules.html)
- [명령어](https://guides.somaro.ai/cli/commands.html)
- [개요와 인증](https://guides.somaro.ai/api/overview.html)
