{"id":1806,"date":"2026-11-29T18:35:17","date_gmt":"2026-11-29T09:35:17","guid":{"rendered":"https:\/\/www.wetch.co.jp\/ai\/?p=1806"},"modified":"2026-11-29T18:35:17","modified_gmt":"2026-11-29T09:35:17","slug":"cursor-cli%e3%82%92ci%e3%81%a7%e5%8b%95%e3%81%8b%e3%81%99%ef%bc%9aheadless%ef%bc%88-p%ef%bc%89%e3%83%bb%e6%a8%a9%e9%99%90%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%83%bbgithub-actions%e3%81%a7%e3%80%8cai","status":"publish","type":"post","link":"https:\/\/www.wetch.co.jp\/ai\/2026\/11\/29\/cursor-cli%e3%82%92ci%e3%81%a7%e5%8b%95%e3%81%8b%e3%81%99%ef%bc%9aheadless%ef%bc%88-p%ef%bc%89%e3%83%bb%e6%a8%a9%e9%99%90%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%83%bbgithub-actions%e3%81%a7%e3%80%8cai\/","title":{"rendered":"Cursor CLI\u3092CI\u3067\u52d5\u304b\u3059\uff1aheadless\uff08-p\uff09\u30fb\u6a29\u9650\u30d5\u30a1\u30a4\u30eb\u30fbGitHub Actions\u3067\u300cAI\u306b\u4efb\u305b\u308b\u7bc4\u56f2\u300d\u3092\u7d5e\u308b\u8a2d\u5b9a\uff082026\u5e7411\u6708\uff09"},"content":{"rendered":"<p><em>Cursor\u306e\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306f\u30a8\u30c7\u30a3\u30bf\u306e\u5916\u3067\u3082\u52d5\u304d\u307e\u3059\u3002<a href=\"https:\/\/cursor.com\/cli\" target=\"_blank\" rel=\"noopener\">Cursor CLI<\/a>\uff08\u30b3\u30de\u30f3\u30c9\u540d\u306f <code>agent<\/code>\uff09\u3092headless\u30e2\u30fc\u30c9\u3067\u8d77\u52d5\u3059\u308b\u3068\u3001GitHub Actions\u306a\u3069\u306eCI\u304b\u3089\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u66f4\u65b0\u3084\u30ec\u30d3\u30e5\u30fc\u30b3\u30e1\u30f3\u30c8\u4f5c\u6210\u3092\u4efb\u305b\u3089\u308c\u307e\u3059\u3002\u305f\u3060\u3057\u300c\u3069\u3053\u307e\u3067\u66f8\u3044\u3066\u3088\u3044\u304b\u300d\u3092\u6c7a\u3081\u305a\u306b\u5165\u308c\u308b\u3068\u3001CI\u4e0a\u3067\u8ab0\u3082\u6b62\u3081\u3089\u308c\u306a\u3044\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304c\u52d5\u304f\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001headless\u306e\u57fa\u672c\u30d5\u30e9\u30b0\u3001\u6a29\u9650\u30d5\u30a1\u30a4\u30eb\uff08allow\/deny\uff09\u306e\u66f8\u304d\u65b9\u3001CI\u3067\u306e\u300c\u5236\u9650\u4ed8\u304d\u81ea\u5f8b\u300d\u69cb\u6210\u3001\u3088\u304f\u3042\u308b\u3064\u307e\u305a\u304d\u3092\u9806\u306b\u6574\u7406\u3057\u307e\u3059\u3002<\/em><\/p>\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.wetch.co.jp\/ai\/wp-content\/uploads\/2026\/06\/ill-agents.png\" alt=\"AI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304cCI\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306e\u4e2d\u3067\u4f5c\u696d\u3059\u308b\u30a4\u30e1\u30fc\u30b8\"\/><\/figure>\n<h2>Cursor CLI\u3068headless\u30e2\u30fc\u30c9<\/h2>\n<p>Cursor CLI\u306f\u3001\u30a8\u30c7\u30a3\u30bf\u306eAgent\u3068\u540c\u3058\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u30bf\u30fc\u30df\u30ca\u30eb\u304b\u3089\u4f7f\u3046\u305f\u3081\u306e\u30c4\u30fc\u30eb\u3067\u3059\uff08<a href=\"https:\/\/cursor.com\/blog\/cli\" target=\"_blank\" rel=\"noopener\">\u516c\u5f0f\u30d6\u30ed\u30b0\u3067\u306e\u767a\u8868<\/a>\uff09\u3002\u305d\u306e\u307e\u307e <code>agent<\/code> \u3092\u5b9f\u884c\u3059\u308b\u3068\u5bfe\u8a71\u30bb\u30c3\u30b7\u30e7\u30f3\u304c\u59cb\u307e\u308a\u3001<code>-p<\/code>\uff08<code>--print<\/code>\uff09\u3092\u4ed8\u3051\u308b\u30681\u56de\u306e\u6307\u793a\u3092\u5b9f\u884c\u3057\u3066\u7d50\u679c\u3092\u51fa\u529b\u3059\u308bheadless\u30e2\u30fc\u30c9\u306b\u306a\u308a\u307e\u3059\u3002<a href=\"https:\/\/cursor.com\/docs\/cli\/headless\" target=\"_blank\" rel=\"noopener\">headless\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u3067\u306f\u3001\u7528\u9014\u3068\u3057\u3066\u81ea\u52d5\u5316\u3068CI\/CD\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u3092\u6319\u3052\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>2026\u5e74\u306b\u5165\u3063\u3066\u304b\u3089CLI\u306e\u6a5f\u80fd\u306f\u5897\u3048\u7d9a\u3051\u3066\u3044\u307e\u3059\u3002<a href=\"https:\/\/cursor.com\/docs\/cli\/changelog\" target=\"_blank\" rel=\"noopener\">CLI\u306e\u5909\u66f4\u5c65\u6b74<\/a>\u306b\u3042\u308b\u304a\u3082\u306a\u8ffd\u52a0\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li>1\u6708\uff1aPlan\uff0fAsk\u30e2\u30fc\u30c9\u3068\u3001\u30af\u30e9\u30a6\u30c9\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3078\u306e\u5f15\u304d\u7d99\u304e\uff08\u30e1\u30c3\u30bb\u30fc\u30b8\u5148\u982d\u306b <code>&amp;<\/code>\uff09<\/li>\n<li>2\u6708\uff1a\u30bb\u30c3\u30b7\u30e7\u30f3\u3092JSONL\u306e\u30c8\u30e9\u30f3\u30b9\u30af\u30ea\u30d7\u30c8\u3068\u3057\u3066\u4fdd\u5b58\u3001\u30b5\u30f3\u30c9\u30dc\u30c3\u30af\u30b9\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u5236\u5fa1\u3092\u7d30\u304b\u304f\u8a2d\u5b9a<\/li>\n<li>6\u6708\uff1aAuto-review\u5b9f\u884c\u30e2\u30fc\u30c9\uff08Allowlist\u3068\u300c\u3059\u3079\u3066\u5b9f\u884c\u300d\u306e\u4e2d\u9593\uff09\u3001<code>\/fork<\/code>\u3001<code>\/update<\/code><\/li>\n<li>7\u6708\uff1a\u65b0\u898f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65e2\u5b9a\u30e2\u30c7\u30eb\u304cAuto\u3001<code>AGENT_CLI_CREDENTIAL_STORE=file<\/code> \u3067\u8a8d\u8a3c\u60c5\u5831\u3092\u30d5\u30a1\u30a4\u30eb\u306b\u4fdd\u5b58\uff08Keychain\u306e\u306a\u3044\u74b0\u5883\u5411\u3051\uff09<\/li>\n<\/ul>\n<h2>headless\u3067\u62bc\u3055\u3048\u308b\u30d5\u30e9\u30b0<\/h2>\n<p>CI\u3067\u4f7f\u3046\u30d5\u30e9\u30b0\u306f\u591a\u304f\u3042\u308a\u307e\u305b\u3093\u3002<a href=\"https:\/\/cursor.com\/docs\/cli\/reference\/parameters\" target=\"_blank\" rel=\"noopener\">\u30d1\u30e9\u30e1\u30fc\u30bf\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9<\/a>\u304b\u3089\u3001CI\u3067\u95a2\u4fc2\u3059\u308b\u3082\u306e\u3092\u8868\u306b\u307e\u3068\u3081\u307e\u3057\u305f\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>\u30d5\u30e9\u30b0\uff0f\u5909\u6570<\/th>\n<th>\u5f79\u5272<\/th>\n<th>CI\u3067\u306e\u4f7f\u3044\u65b9<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>-p<\/code> \/ <code>--print<\/code><\/td>\n<td>\u975e\u5bfe\u8a71\u30671\u56de\u5b9f\u884c\u3057\u3001\u7d50\u679c\u3092\u51fa\u529b<\/td>\n<td>CI\u3067\u306f\u5fc5\u9808\u3002\u6a19\u6e96\u51fa\u529b\u304cTTY\u3067\u306a\u3044\u5834\u5408\u3084\u30d1\u30a4\u30d7\u5165\u529b\u306e\u5834\u5408\u3082\u3001print\u30e2\u30fc\u30c9\u3068\u3057\u3066\u6271\u308f\u308c\u308b\u3053\u3068\u304c\u3042\u308b<\/td>\n<\/tr>\n<tr>\n<td><code>--output-format<\/code><\/td>\n<td><code>text<\/code> \/ <code>json<\/code> \/ <code>stream-json<\/code><\/td>\n<td>\u5f8c\u7d9a\u30b9\u30c6\u30c3\u30d7\u3067\u7d50\u679c\u3092\u89e3\u6790\u3059\u308b\u306a\u3089 <code>json<\/code>\u3001\u30ed\u30b0\u3092\u9010\u6b21\u898b\u305f\u3044\u306a\u3089 <code>stream-json<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>-f<\/code> \/ <code>--force<\/code><\/td>\n<td>\u660e\u793a\u7684\u306bdeny\u3055\u308c\u3066\u3044\u306a\u3044\u30b3\u30de\u30f3\u30c9\u3092\u8a31\u53ef<\/td>\n<td>\u30d5\u30a1\u30a4\u30eb\u3092\u66f8\u304d\u63db\u3048\u3055\u305b\u308b\u3068\u304d\u306b\u4f7f\u3046\u3002deny\u5074\u3067\u7981\u6b62\u3057\u305f\u64cd\u4f5c\u306f <code>--force<\/code> \u3092\u4ed8\u3051\u3066\u3082\u6b62\u307e\u308b<\/td>\n<\/tr>\n<tr>\n<td><code>--trust<\/code><\/td>\n<td>headless\u5c02\u7528\u306e\u30aa\u30d7\u30b7\u30e7\u30f3<\/td>\n<td>\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u4fe1\u983c\u306e\u78ba\u8a8d\u3092\u30b9\u30ad\u30c3\u30d7\u3059\u308b\u7528\u9014\u3002\u6319\u52d5\u306f\u516c\u5f0f\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3067\u78ba\u8a8d\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td><code>CURSOR_API_KEY<\/code> \/ <code>--api-key<\/code><\/td>\n<td>\u975e\u5bfe\u8a71\u3067\u8a8d\u8a3c<\/td>\n<td>GitHub\u306eSecrets\u306b\u5165\u308c\u3001\u74b0\u5883\u5909\u6570\u3068\u3057\u3066\u6e21\u3059<\/td>\n<\/tr>\n<tr>\n<td><code>--model<\/code><\/td>\n<td>\u4f7f\u3046\u30e2\u30c7\u30eb\u3092\u6307\u5b9a<\/td>\n<td>\u65e2\u5b9a\u306fAuto\u3002\u30b3\u30b9\u30c8\u3084\u7d50\u679c\u3092\u5b89\u5b9a\u3055\u305b\u305f\u3044\u306a\u3089\u56fa\u5b9a\u3059\u308b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6ce8\u610f\u70b9\u304c\u3072\u3068\u3064\u3042\u308a\u307e\u3059\u3002<code>--force<\/code> \u3092\u4ed8\u3051\u306a\u3044 <code>-p<\/code> \u5b9f\u884c\u3067\u300c\u5909\u66f4\u3092\u63d0\u6848\u3059\u308b\u3060\u3051\u3067\u66f8\u304d\u8fbc\u307e\u306a\u3044\u300d\u306e\u304b\u3069\u3046\u304b\u306b\u3064\u3044\u3066\u3001\u89e3\u8aac\u8a18\u4e8b\u3054\u3068\u306b\u8aac\u660e\u304c\u98df\u3044\u9055\u3063\u3066\u3044\u307e\u3059\u3002\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u8a18\u8ff0\u3082\u4e00\u8cab\u3057\u3066\u3044\u306a\u3044\u3068\u6307\u6458\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u672c\u756a\u306b\u5165\u308c\u308b\u524d\u306b\u3001\u624b\u5143\u3067 <code>git status<\/code> \u3092\u898b\u3066\u3001\u5b9f\u969b\u306b\u66f8\u304d\u8fbc\u307e\u308c\u305f\u304b\u3092\u78ba\u304b\u3081\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><code># \u30ed\u30fc\u30ab\u30eb\u3067\u8a66\u3059\uff08\u8a8d\u8a3c\u30ad\u30fc\u306f\u74b0\u5883\u5909\u6570\u3067\uff09\ncurl https:\/\/cursor.com\/install -fsS | bash\nexport CURSOR_API_KEY=xxxxx\nagent -p \"README\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806\u3092\u6700\u65b0\u306epackage.json\u306b\u5408\u308f\u305b\u3066\u76f4\u3057\u3066\" --output-format text\ngit status   # \u5b9f\u969b\u306b\u66f8\u304d\u8fbc\u307e\u308c\u305f\u304b\u78ba\u8a8d<\/code><\/pre>\n<h2>\u6a29\u9650\u30d5\u30a1\u30a4\u30eb\u3067\u300c\u66f8\u3044\u3066\u3088\u3044\u5834\u6240\u300d\u3092\u6c7a\u3081\u308b<\/h2>\n<p>CLI\u306f\u3001\u30c4\u30fc\u30eb\u306e\u5b9f\u884c\u8a31\u53ef\u3092JSON\u3067\u6307\u5b9a\u3067\u304d\u307e\u3059\uff08<a href=\"https:\/\/cursor.com\/docs\/cli\/reference\/permissions\" target=\"_blank\" rel=\"noopener\">\u6a29\u9650\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\uff09\u3002\u30d5\u30a1\u30a4\u30eb\u306e\u7f6e\u304d\u5834\u6240\u306f2\u3064\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li><strong>\u30b0\u30ed\u30fc\u30d0\u30eb<\/strong>\uff1a<code>~\/.cursor\/cli-config.json<\/code>\uff08<code>$CURSOR_CONFIG_DIR<\/code> \u3067\u5909\u66f4\u53ef\uff09<\/li>\n<li><strong>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8<\/strong>\uff1a<code>.cursor\/cli.json<\/code>\uff08\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u3051\u308b\u306e\u306f\u6a29\u9650\u3060\u3051\uff09<\/li>\n<\/ul>\n<p>\u30c8\u30fc\u30af\u30f3\u306f <code>Read(\u30d1\u30b9)<\/code>\u3001<code>Write(\u30d1\u30b9)<\/code>\u3001<code>Shell(\u30b3\u30de\u30f3\u30c9\u540d)<\/code> \u306e\u5f62\u3067\u66f8\u304d\u307e\u3059\u3002Shell\u306f\u30b3\u30de\u30f3\u30c9\u306e\u57fa\u672c\u540d\u3067\u7167\u5408\u3057\u307e\u3059\u3002deny\u306fallow\u3088\u308a\u512a\u5148\u3055\u308c\u3001<code>--force<\/code> \u3092\u4ed8\u3051\u3066\u3082\u89e3\u9664\u3055\u308c\u307e\u305b\u3093\u3002<a href=\"https:\/\/cursor.com\/docs\/cli\/github-actions\" target=\"_blank\" rel=\"noopener\">GitHub Actions\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u306e\u4f8b\u3092\u3082\u3068\u306b\u3059\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code>{\n  \"permissions\": {\n    \"allow\": [\n      \"Read(**\/*.md)\",\n      \"Write(docs\/**\/*)\",\n      \"Shell(grep)\",\n      \"Shell(find)\"\n    ],\n    \"deny\": [\n      \"Shell(git)\",\n      \"Shell(gh)\",\n      \"Write(.env*)\",\n      \"Write(package.json)\"\n    ]\n  }\n}<\/code><\/pre>\n<p>\u3053\u306e\u8a2d\u5b9a\u3067\u306f\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306f\u300cMarkdown\u3092\u8aad\u3093\u3067 <code>docs\/<\/code> \u4ee5\u4e0b\u3060\u3051\u3092\u66f8\u304d\u63db\u3048\u308b\u300d\u3053\u3068\u3057\u304b\u3067\u304d\u307e\u305b\u3093\u3002<code>git<\/code> \u3068 <code>gh<\/code> \u3092\u7981\u6b62\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u30b3\u30df\u30c3\u30c8\u3084PR\u4f5c\u6210\u3082\u3067\u304d\u307e\u305b\u3093\u3002\u79d8\u5bc6\u60c5\u5831\uff08<code>.env*<\/code>\uff09\u3068\u4f9d\u5b58\u5b9a\u7fa9\uff08<code>package.json<\/code>\uff09\u3078\u306e\u66f8\u304d\u8fbc\u307f\u3082\u585e\u3044\u3067\u3044\u307e\u3059\u3002<\/p>\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.wetch.co.jp\/ai\/wp-content\/uploads\/2026\/11\/cursor-cli-tests.jpg\" alt=\"\u30c6\u30b9\u30c8\u7d50\u679c\u304c\u4e26\u3076\u958b\u767a\u8005\u306e\u753b\u9762\"\/><figcaption><small>Photo: <a href=\"https:\/\/www.flickr.com\/photos\/98983159@N00\/4150836513\" target=\"_blank\" rel=\"noopener\">Lachlan Hardy<\/a> \/ CC BY 2.0\uff08Openverse\u7d4c\u7531\uff09<\/small><\/figcaption><\/figure>\n<h2>CI\u306f\u300c\u5236\u9650\u4ed8\u304d\u81ea\u5f8b\u300d\u3067\u7d44\u3080<\/h2>\n<p>\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306f\u3001CI\u3067\u306e\u4efb\u305b\u65b9\u30922\u901a\u308a\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>\u65b9\u5f0f<\/th>\n<th>\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306e\u62c5\u5f53<\/th>\n<th>\u5411\u3044\u3066\u3044\u308b\u5834\u9762<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u30d5\u30eb\u81ea\u5f8b<\/td>\n<td>\u30d5\u30a1\u30a4\u30eb\u5909\u66f4\u306b\u52a0\u3048\u3066\u3001git\u64cd\u4f5c\u30fbAPI\u547c\u3073\u51fa\u3057\u30fbPR\u30b3\u30e1\u30f3\u30c8\u307e\u3067<\/td>\n<td>\u500b\u4eba\u30ea\u30dd\u30b8\u30c8\u30ea\u3084\u691c\u8a3c\u74b0\u5883\u3002\u8a2d\u5b9a\u306f\u7c21\u5358\u3060\u304c\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u304b\u306a\u308a\u4fe1\u983c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b<\/td>\n<\/tr>\n<tr>\n<td>\u5236\u9650\u4ed8\u304d\u81ea\u5f8b\uff08\u672c\u756a\u63a8\u5968\uff09<\/td>\n<td>\u30d5\u30a1\u30a4\u30eb\u5909\u66f4\u3060\u3051\u3002\u30b3\u30df\u30c3\u30c8\u30fbpush\u30fbPR\u4f5c\u6210\u306f\u5f8c\u7d9a\u306eCI\u30b9\u30c6\u30c3\u30d7\u304c\u884c\u3046<\/td>\n<td>\u30c1\u30fc\u30e0\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3001\u672c\u756a\u30d6\u30e9\u30f3\u30c1\u306b\u3064\u306a\u304c\u308b\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5236\u9650\u4ed8\u304d\u81ea\u5f8b\u3067\u306f\u3001AI\u306e\u4ed5\u4e8b\u306f\u300c\u5dee\u5206\u3092\u4f5c\u308b\u300d\u307e\u3067\u306b\u9650\u308a\u307e\u3059\u3002\u5dee\u5206\u3092\u3069\u3046\u4e16\u306b\u51fa\u3059\u304b\uff08\u30d6\u30e9\u30f3\u30c1\u540d\u3001\u30b3\u30df\u30c3\u30c8\u3001PR\u4f5c\u6210\uff09\u306f\u3001\u6c7a\u307e\u3063\u305f\u51e6\u7406\u3092\u884c\u3046CI\u30b9\u30c6\u30c3\u30d7\u306b\u4efb\u305b\u307e\u3059\u3002\u3053\u3046\u3057\u3066\u304a\u3051\u3070\u3001AI\u304c\u4e88\u60f3\u5916\u306e\u52d5\u304d\u3092\u3057\u3066\u3082\u88ab\u5bb3\u306f\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4e2d\u306b\u3068\u3069\u307e\u308a\u3001\u4eba\u306fPR\u3067\u5dee\u5206\u3092\u898b\u3066\u304b\u3089\u5224\u65ad\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code>name: docs-update\non:\n  workflow_dispatch:\npermissions:\n  contents: write\n  pull-requests: write\njobs:\n  update-docs:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\/checkout@v4\n      - name: Install Cursor CLI\n        run: |\n          curl https:\/\/cursor.com\/install -fsS | bash\n          echo \"$HOME\/.cursor\/bin\" &gt;&gt; $GITHUB_PATH\n      - name: Write permissions\n        run: |\n          mkdir -p .cursor\n          cp ci\/cursor-permissions.json .cursor\/cli.json\n      - name: Run agent (files only)\n        env:\n          CURSOR_API_KEY: ${{ secrets.CURSOR_API_KEY }}\n        run: |\n          agent -p --force --output-format text \\\n            \"docs\/ \u4ee5\u4e0b\u3092src\/\u306e\u6700\u65b0\u5b9f\u88c5\u306b\u5408\u308f\u305b\u3066\u66f4\u65b0\u3057\u3066\u3002\u30d6\u30e9\u30f3\u30c1\u4f5c\u6210\u30fbcommit\u30fbpush\u306f\u3057\u306a\u3044\u3053\u3068\u3002\"\n      - name: Open PR (deterministic)\n        env:\n          GH_TOKEN: ${{ github.token }}\n        run: |\n          git diff --quiet &amp;&amp; exit 0\n          git checkout -b docs\/auto-${{ github.run_id }}\n          git config user.name \"docs-bot\"\n          git config user.email \"docs-bot@users.noreply.github.com\"\n          git add docs\/ &amp;&amp; git commit -m \"docs: auto update\"\n          git push -u origin HEAD\n          gh pr create --fill --base main<\/code><\/pre>\n<p>\u6307\u793a\u6587\u3067\u3082\u300ccommit\u30fbpush\u306f\u3057\u306a\u3044\u300d\u3068\u66f8\u3044\u3066\u3044\u307e\u3059\u304c\u3001\u5b9f\u969b\u306b\u6b62\u3081\u3066\u3044\u308b\u306e\u306f\u6a29\u9650\u30d5\u30a1\u30a4\u30eb\u306edeny\u3067\u3059\u3002\u6307\u793a\u6587\u3060\u3051\u3067\u306f\u64cd\u4f5c\u3092\u6b62\u3081\u3089\u308c\u306a\u3044\u524d\u63d0\u3067\u7d44\u3093\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u3064\u307e\u305a\u304d\u3084\u3059\u3044\u30dd\u30a4\u30f3\u30c85\u9078<\/h2>\n<ol>\n<li><strong>\u6a29\u9650\u30d5\u30a1\u30a4\u30eb\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u9593\u9055\u3048\u308b<\/strong>\uff1a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u7528\u306f <code>.cursor\/cli.json<\/code> \u3067\u3059\u3002CI\u3067 <code>.cursor\/cli-config.json<\/code> \u306b\u66f8\u304d\u51fa\u3057\u305f\u305f\u3081\u6a29\u9650\u304c\u52b9\u304b\u305a\u3001\u65e2\u5b9a\u306e\u6a29\u9650\u306e\u307e\u307e\u52d5\u3044\u3066\u3044\u305f\u4e8b\u4f8b\u304c<a href=\"https:\/\/github.com\/powerhome\/github-actions-workflows\/pull\/82\" target=\"_blank\" rel=\"noopener\">\u516c\u958bPR<\/a>\u3067\u5831\u544a\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u5c0e\u5165\u6642\u306f\u3001deny\u3057\u305f\u64cd\u4f5c\u3092\u308f\u3056\u3068\u6307\u793a\u3057\u3001\u672c\u5f53\u306b\u6b62\u307e\u308b\u304b\u3092\u78ba\u304b\u3081\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<li><strong><code>-p<\/code> \u304c\u8fd4\u3063\u3066\u3053\u306a\u3044<\/strong>\uff1a\u4e00\u90e8\u306e\u74b0\u5883\u3067 <code>agent -p<\/code> \u304c\u7d42\u308f\u3089\u306a\u3044\u307e\u307e\u6b62\u307e\u308b\u4e0d\u5177\u5408\u304c\u5831\u544a\u3055\u308c\u305f\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u30b8\u30e7\u30d6\u306b <code>timeout-minutes<\/code> \u3092\u8a2d\u5b9a\u3057\u3066\u304a\u304f\u3068\u3001\u8ab2\u91d1\u3068\u30e9\u30f3\u30ca\u30fc\u6642\u9593\u306e\u6d6a\u8cbb\u3092\u9632\u3052\u307e\u3059\u3002<\/li>\n<li><strong>\u30e2\u30c7\u30eb\u304c\u52dd\u624b\u306b\u5909\u308f\u308b<\/strong>\uff1a\u65b0\u898f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65e2\u5b9a\u306fAuto\u3067\u3059\u3002\u7d50\u679c\u306e\u518d\u73fe\u6027\u3084\u30b3\u30b9\u30c8\u3092\u63c3\u3048\u305f\u3044\u306a\u3089 <code>--model<\/code> \u3067\u56fa\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li><strong>\u30ac\u30fc\u30c9\u30ec\u30fc\u30eb\u3092\u904e\u4fe1\u3059\u308b<\/strong>\uff1aCursor\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u6587\u66f8\u3067\u3001\u3053\u308c\u3089\u306e\u5236\u5fa1\u3092\u300c\u30d9\u30b9\u30c8\u30a8\u30d5\u30a9\u30fc\u30c8\u300d\u3068\u4f4d\u7f6e\u3065\u3051\u3066\u3044\u307e\u3059\u3002API\u30ad\u30fc\u306e\u6a29\u9650\u3001GitHub\u30c8\u30fc\u30af\u30f3\u306e\u30b9\u30b3\u30fc\u30d7\u3001\u30d6\u30e9\u30f3\u30c1\u4fdd\u8b77\u3082\u5408\u308f\u305b\u3066\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<li><strong>\u30c8\u30ea\u30ac\u30fc\u3092\u5e83\u304f\u3057\u3059\u304e\u308b<\/strong>\uff1apush\u306e\u305f\u3073\u306b\u8d70\u3089\u305b\u308b\u3068\u5f93\u91cf\u8ab2\u91d1\u304c\u81a8\u3089\u307f\u307e\u3059\u3002\u307e\u305a\u306f <code>workflow_dispatch<\/code>\uff08\u624b\u52d5\u5b9f\u884c\uff09\u3084\u30e9\u30d9\u30eb\u4ed8\u4e0e\u3092\u304d\u3063\u304b\u3051\u306b\u52d5\u304b\u3057\u3001\u52b9\u679c\u3092\u898b\u3066\u304b\u3089\u81ea\u52d5\u5316\u306e\u7bc4\u56f2\u3092\u5e83\u3052\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<\/ol>\n<h2>\u307e\u3068\u3081\uff1aAI\u306b\u4efb\u305b\u308b\u306e\u306f\u300c\u5dee\u5206\u3092\u4f5c\u308b\u300d\u307e\u3067<\/h2>\n<p>Cursor CLI\u306eheadless\u30e2\u30fc\u30c9\u306f\u3001\u30a8\u30c7\u30a3\u30bf\u3067\u4f7f\u3044\u6163\u308c\u305f\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u305d\u306e\u307e\u307eCI\u306b\u6301\u3061\u8fbc\u3081\u308b\u306e\u304c\u5229\u70b9\u3067\u3059\u3002CI\u306b\u5165\u308c\u308b\u3068\u304d\u306f\u6b21\u306e3\u70b9\u3092\u6700\u521d\u306b\u6c7a\u3081\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul>\n<li>\u6a29\u9650\u30d5\u30a1\u30a4\u30eb\uff08<code>.cursor\/cli.json<\/code>\uff09\u3067\u66f8\u304d\u8fbc\u307f\u5148\u3092allow\u3067\u7d5e\u308a\u3001\u5371\u967a\u306a\u64cd\u4f5c\u3092deny\u3067\u585e\u3050<\/li>\n<li>git\u30fbPR\u64cd\u4f5c\u306f\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306b\u3055\u305b\u305a\u3001\u6c7a\u307e\u3063\u305f\u51e6\u7406\u3092\u884c\u3046CI\u30b9\u30c6\u30c3\u30d7\u306b\u4efb\u305b\u308b<\/li>\n<li>\u4eba\u306fPR\u3067\u5dee\u5206\u3092\u898b\u3066\u304b\u3089\u30de\u30fc\u30b8\u3059\u308b<\/li>\n<\/ul>\n<p>Cursor\u306e\u30ec\u30d3\u30e5\u30fc\u7cfb\u6a5f\u80fd\u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u3044\u5834\u5408\u306f\u3001\u904e\u53bb\u8a18\u4e8b\u306eBugbot\u30fb\/review\u306e\u4f7f\u3044\u5206\u3051\u3082\u53c2\u8003\u306b\u306a\u308a\u307e\u3059\u3002Rules\u30fbSkills\u3067\u6307\u793a\u3092\u6574\u3048\u3066\u304a\u304f\u3068\u3001CI\u3067\u306e\u51fa\u529b\u3082\u5b89\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<hr \/>\n<h2>\u4e3b\u306a\u60c5\u5831\u6e90<\/h2>\n<ul>\n<li><a href=\"https:\/\/cursor.com\/blog\/cli\" target=\"_blank\" rel=\"noopener\">Cursor Blog: Cursor CLI<\/a><\/li>\n<li><a href=\"https:\/\/cursor.com\/docs\/cli\/headless\" target=\"_blank\" rel=\"noopener\">Cursor Docs: Using Headless CLI<\/a><\/li>\n<li><a href=\"https:\/\/cursor.com\/docs\/cli\/reference\/parameters\" target=\"_blank\" rel=\"noopener\">Cursor Docs: CLI Parameters<\/a><\/li>\n<li><a href=\"https:\/\/cursor.com\/docs\/cli\/github-actions\" target=\"_blank\" rel=\"noopener\">Cursor Docs: GitHub Actions<\/a><\/li>\n<li><a href=\"https:\/\/cursor.com\/docs\/cli\/changelog\" target=\"_blank\" rel=\"noopener\">Cursor Docs: CLI Changelog<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/powerhome\/github-actions-workflows\/pull\/82\" target=\"_blank\" rel=\"noopener\">powerhome\/github-actions-workflows PR #82\uff08.cursor\/cli.json \u306e\u8a2d\u5b9a\u30df\u30b9\u4e8b\u4f8b\uff09<\/a><\/li>\n<li><a href=\"https:\/\/devhints.io\/cursor-cli\" target=\"_blank\" rel=\"noopener\">devhints.io: Cursor CLI cheatsheet<\/a><\/li>\n<\/ul>\n<p><small>\u5404\u30c4\u30fc\u30eb\u306f\u63d0\u4f9b\u5143\u306e\u898f\u7d04\u306b\u5f93\u3063\u3066\u3054\u5229\u7528\u304f\u3060\u3055\u3044\u3002\u60c5\u5831\u306f\u5404\u60c5\u5831\u6e90\u306e\u516c\u958b\u6642\u70b9\u306e\u3082\u306e\u3067\u3059\u3002\u53ce\u96c6\u30fb\u8981\u7d04\u306fAI\u3001\u516c\u958b\u5224\u65ad\u306f\u4eba\u3002<\/small><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cursor CLI\u306eheadless\u30e2\u30fc\u30c9\uff08agent -p\uff09\u3092GitHub Actions\u306a\u3069\u306eCI\u3067\u4f7f\u3046\u3068\u304d\u306b\u3001\u62bc\u3055\u3048\u308b\u3079\u304d\u30d5\u30e9\u30b0\u3001\u6a29\u9650\u30d5\u30a1\u30a4\u30eb\uff08.cursor\/cli.json\uff09\u306eallow\/deny\u3001AI\u306b\u306f\u5dee\u5206\u4f5c\u6210\u3060\u3051\u3092\u4efb\u305b\u308b\u300c\u5236\u9650\u4ed8\u304d\u81ea\u5f8b\u300d\u306e\u7d44\u307f\u65b9\u3001\u3064\u307e\u305a\u304d\u3084\u3059\u3044\u30dd\u30a4\u30f3\u30c8\u3092\u6574\u7406\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":43,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"page_builder":"","footnotes":""},"categories":[12],"tags":[],"class_list":["post-1806","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai"],"_links":{"self":[{"href":"https:\/\/www.wetch.co.jp\/ai\/wp-json\/wp\/v2\/posts\/1806","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wetch.co.jp\/ai\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wetch.co.jp\/ai\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wetch.co.jp\/ai\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wetch.co.jp\/ai\/wp-json\/wp\/v2\/comments?post=1806"}],"version-history":[{"count":1,"href":"https:\/\/www.wetch.co.jp\/ai\/wp-json\/wp\/v2\/posts\/1806\/revisions"}],"predecessor-version":[{"id":1815,"href":"https:\/\/www.wetch.co.jp\/ai\/wp-json\/wp\/v2\/posts\/1806\/revisions\/1815"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wetch.co.jp\/ai\/wp-json\/wp\/v2\/media\/43"}],"wp:attachment":[{"href":"https:\/\/www.wetch.co.jp\/ai\/wp-json\/wp\/v2\/media?parent=1806"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wetch.co.jp\/ai\/wp-json\/wp\/v2\/categories?post=1806"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wetch.co.jp\/ai\/wp-json\/wp\/v2\/tags?post=1806"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}