{"id":24627,"date":"2023-09-15T10:22:35","date_gmt":"2023-09-15T01:22:35","guid":{"rendered":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/?page_id=24627"},"modified":"2025-10-24T14:39:01","modified_gmt":"2025-10-24T05:39:01","slug":"overview-and-installation","status":"publish","type":"page","link":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/test-automation\/testrail-cli\/overview-and-installation\/","title":{"rendered":"TestRail CLI \u3092\u4f7f\u3044\u59cb\u3081\u308b"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"wysiwyg-image-resized\" src=\"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/TestRail_CLI-Navy-Logo.png\" alt=\"TestRail_CLI (Navy Logo).png\" width=\"210\" height=\"85\" \/><\/p>\n<p><strong>TestRail CLI<\/strong><span>\u00a0<\/span>\u306f\u30aa\u30fc\u30d7\u30f3 \u30bd\u30fc\u30b9\u306e\u30b3\u30de\u30f3\u30c9\u30e9\u30a4 \u30f3\u30c4\u30fc\u30eb\u3067\u3042\u308a\u3001\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u305f\u308a API \u3092\u64cd\u4f5c\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u306a\u304f\u3001\u81ea\u52d5\u30c6\u30b9\u30c8\u306e\u7d50\u679c\u3092\u7c21\u5358\u306b TestRail \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><strong>JUnit<\/strong>\u3001<strong>TestNG<\/strong>\u3001<strong>NUnit<\/strong>\u3001<strong>Cypress<\/strong>\u3001<span>\u00a0<\/span><strong>Playwright<\/strong><span>\u00a0<\/span>\u306a\u3069\u306e\u4e00\u822c\u7684\u306a\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u304b\u3089\u7d50\u679c\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3066\u3001\u30ec\u30dd\u30fc\u30c8 \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u81ea\u52d5\u5316\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001<strong>JMeter<\/strong><span>\u00a0<\/span>\u3092\u542b\u3080<a href=\"\/test-automation\/automation-frameworks\/integrating-with-jmeter\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9 \u30c6\u30b9\u30c8<\/a>\u306e\u7d50\u679c\u3082\u540c\u3058 CLI \u30d9\u30fc\u30b9\u306e\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u4f7f\u7528\u3057\u3066\u7d71\u5408\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u3001CI\/CD \u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306e\u4e00\u90e8\u3068\u3057\u3066\u884c\u3046\u8ca0\u8377\u30c6\u30b9\u30c8\u3001\u30ec\u30a4\u30c6\u30f3\u30b7\u30fc \u30c1\u30a7\u30c3\u30af\u3001\u30b9\u30c8\u30ec\u30b9 \u30c6\u30b9\u30c8\u306b\u6700\u9069\u3067\u3059\u3002<\/p>\n<p>CLI \u306f<strong>\u30b3\u30fc\u30c9\u30d5\u30a1\u30fc\u30b9\u30c8<\/strong>\u304a\u3088\u3073<strong>\u4ed5\u69d8\u30d5\u30a1\u30fc\u30b9\u30c8<\/strong>\u306e\u4e21\u65b9\u306e\u30c6\u30b9\u30c8 \u30a2\u30d7\u30ed\u30fc\u30c1\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li><a href=\"\/test-automation\/testrail-cli\/automation-workflows-code-first\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u30b3\u30fc\u30c9\u30d5\u30a1\u30fc\u30b9\u30c8<\/a><span>\u00a0<\/span>\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3067\u306f\u3001\u30b3\u30fc\u30c9\u3092\u5b9a\u7fa9\u3057\u3066\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3057\u3001\u7d50\u679c\u3092 TestRail \u306b\u540c\u671f\u3057\u307e\u3059\u3002<\/li>\n<li><a href=\"\/test-automation\/testrail-cli\/automation-workflows-specification-first\/\" target=\"_blank\" rel=\"noopener\">\u4ed5\u69d8\u30d5\u30a1\u30fc\u30b9\u30c8<\/a><span>\u00a0<\/span>\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3067\u306f\u3001\u5b9f\u884c\u524d\u306b TestRail \u3067\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u3092\u30de\u30c3\u30d4\u30f3\u30b0\u3057\u3001\u7d50\u679c\u3092\u65e2\u5b58\u306e\u30c6\u30b9\u30c8 ID \u306b\u30ea\u30f3\u30af\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9 \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u3042\u308b TestRail CLI \u306f\u3001\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u304b\u3089\u306e\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\u306b\u3088\u3063\u3066\u767a\u5c55\u3057\u307e\u3059\u3002<a href=\"https:\/\/github.com\/gurock\/trcli\" target=\"_blank\" rel=\"noopener noreferrer\">GitHub<\/a><span>\u00a0<\/span>\u3092\u901a\u3058\u3066\u4e0d\u5177\u5408\u3092\u6307\u6458\u3057\u305f\u308a\u3001\u6539\u5584\u3092\u63d0\u6848\u3057\u305f\u308a\u3001\u65b0\u3057\u3044\u6a5f\u80fd\u3092\u63d0\u6848\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<div><\/div>\n<h2 id=\"Overview\">TestRail CLI \u3092\u4f7f\u7528\u3059\u308b\u7406\u7531<\/h2>\n<p>\u81ea\u52d5\u30c6\u30b9\u30c8\u30ec\u30dd\u30fc\u30c8\u306e\u7c21\u7d20\u5316<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li><strong>API \u5b66\u7fd2\u66f2\u7dda\u3092\u30b9\u30ad\u30c3\u30d7\u3059\u308b<\/strong><span>\u00a0<\/span>&#8211; XML \u30c6\u30b9\u30c8 \u30ec\u30dd\u30fc\u30c8\u3092\u6307\u5b9a\u3057\u3066\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/li>\n<li><strong>\u8a00\u8a9e\u306b\u3068\u3089\u308f\u308c\u306a\u3044<\/strong><span>\u00a0<\/span>&#8211; JUnit \u30b9\u30bf\u30a4\u30eb\u306e XML \u3092\u51fa\u529b\u3059\u308b\u3042\u3089\u3086\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u52d5\u4f5c\u3057\u307e\u3059\u3002<\/li>\n<li><strong>CI\/CD \u30d5\u30ec\u30f3\u30c9\u30ea\u30fc<\/strong><span>\u00a0<\/span>&#8211; \u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u3067\u4f7f\u7528\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7c21\u5358\u306b\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/li>\n<li><strong>\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9<\/strong><span>\u00a0<\/span>&#8211; GitHub \u3067\u516c\u958b\u3055\u308c\u3001\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u304c\u53ef\u80fd\u3067\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2 id=\"h_01K0XVD938DP43M9FXSWKGTMNS\">\u5bfe\u5fdc\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af<\/h2>\n<p>TestRail CLI\u306f\u3001<strong>JUnit \u30b9\u30bf\u30a4\u30eb<\/strong><span>\u00a0<\/span>\u306e\u30ec\u30dd\u30fc\u30c8\u3092\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3067\u304d\u308b\u307b\u307c\u3059\u3079\u3066\u306e\u30c6\u30b9\u30c8\u81ea\u52d5\u5316\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul class=\"list-bullet\">\n<li>Cypress.io<\/li>\n<li>Playwright<\/li>\n<li>JUnit<\/li>\n<li>TestNG<\/li>\n<li>NUnit<\/li>\n<li>Pytest<\/li>\n<li>Robot Framework<\/li>\n<li>JMeter<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u2705<span>\u00a0<\/span><em>\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u304c JUnit \u30b9\u30bf\u30a4\u30eb\u306e XML \u51fa\u529b\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u308b\u5834\u5408\u3001TestRail CLI \u3068\u9023\u643a\u3067\u304d\u307e\u3059\u3002<\/em><\/p>\n<p>\u30b3\u30de\u30f3\u30c9 \u30e9\u30a4\u30f3\u304b\u3089\u76f4\u63a5 JUnit \u5f62\u5f0f\u306e\u30c6\u30b9\u30c8\u7d50\u679c\u3092\u89e3\u6790\u3057\u3066 TestRail \u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u304b\u3001Jenkins\u3001GitLab CI\u3001GitHub Actions\u3001\u307e\u305f\u306f\u305d\u306e\u4ed6\u306e CI \u30c4\u30fc\u30eb\u3067\u81ea\u52d5\u5316\u3055\u308c\u305f\u30d3\u30eb\u30c9 \u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306e\u4e00\u90e8\u3068\u3057\u3066 CLI \u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001API \u306e\u547c\u3073\u51fa\u3057\u3084\u30c6\u30b9\u30c8\u7d50\u679c\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306b\u95a2\u3059\u308b\u305d\u306e\u4ed6\u306e\u6280\u8853\u7684\u8a73\u7d30\u306b\u308f\u305a\u3089\u308f\u3055\u308c\u308b\u3053\u3068\u306a\u304f\u3001\u30c6\u30b9\u30c8 \u30b3\u30fc\u30c9\u306e\u4f5c\u6210\u306b\u96c6\u4e2d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3055\u307e\u3056\u307e\u306a\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u30c6\u30b9\u30c8\u81ea\u52d5\u5316\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30b5\u30f3\u30d7\u30eb\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"https:\/\/github.com\/gurock\/automation-frameworks-integration\" target=\"_blank\" rel=\"noopener noreferrer\">GitHub \u306e\u81ea\u52d5\u5316\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u7d71\u5408\u30d7\u30ed\u30b8\u30a7\u30af\u30c8<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div><strong>\u2139\ufe0f \u60c5\u5831\uff1a<\/strong>\u7d14\u7c8b\u306a JUnit 4 \u304a\u3088\u3073 JUnit 5 \u306e XML \u4ee5\u5916\u306b\u3001<strong>TestNG<\/strong><span>\u00a0<\/span>\u306e\u3088\u3046\u306a\u4e00\u822c\u7684\u306a\u30c6\u30b9\u30c8 \u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3084 CI \u30c4\u30fc\u30eb\u304b\u3089\u51fa\u529b\u3055\u308c\u305f JUnit \u306b\u4f3c\u305f XML \u51fa\u529b\u3082\u3001\u6a19\u6e96\u7684\u306a JUnit XML \u69cb\u9020\u306b\u5f93\u3063\u3066\u3044\u308b\u9650\u308a\u3001<code class=\"inline-code\">TestRail CLI<\/code><span>\u00a0<\/span>\u3067\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u307e\u3059\u3002<\/div>\n<h2 id=\"h_01K24KKX36ZBPE18DSKAE4CY3P\">\u4f8b: TestRail \u3078\u306e\u30c6\u30b9\u30c8\u7d50\u679c\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9<\/h2>\n<p>\u4ee5\u4e0b\u306f Playwright \u307e\u305f\u306f JUnit \u30c6\u30b9\u30c8\u306e\u5b9f\u884c\u7d50\u679c\u3092 TestRail \u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u7c21\u5358\u306a\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3067\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">trcli --url &lt;TESTRAIL_URL&gt; \\\n      --project &lt;PROJECT_NAME&gt; \\\n      --suite &lt;SUITE_NAME&gt; \\\n      --milestone &lt;MILESTONE_NAME&gt; \\\n      --run-name \"Automated Test Run - $(date +%Y-%m-%d)\" \\\n      --results &lt;PATH_TO_XML_REPORT&gt;\n<\/pre>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li><code class=\"inline-code\">&lt;TESTRAIL_URL&gt;<\/code><span>\u00a0<\/span>&#8211; TestRail \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e URL \u3067\u3059\u3002<\/li>\n<li><code class=\"inline-code\">&lt;PROJECT_NAME&gt;<\/code><span>\u00a0<\/span>&#8211; TestRail \u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d\u3067\u3059\u3002<\/li>\n<li><code class=\"inline-code\">&lt;SUITE_NAME&gt;<\/code><span>\u00a0<\/span>&#8211; \u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u30c6\u30b9\u30c8 \u30b9\u30a4\u30fc\u30c8\u3067\u3059\u3002<\/li>\n<li><code class=\"inline-code\">&lt;MILESTONE_NAME&gt;<\/code><span>\u00a0<\/span>&#8211; TestRail \u306e\u30de\u30a4\u30eb\u30b9\u30c8\u30fc\u30f3\u3067\u3059 (\u30aa\u30d7\u30b7\u30e7\u30f3)\u3002<\/li>\n<li><code class=\"inline-code\">&lt;PATH_TO_XML_REPORT&gt;<\/code><span>\u00a0<\/span>&#8211; JUnit \u30b9\u30bf\u30a4\u30eb\u306e XML \u7d50\u679c\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u30d1\u30b9\u3067\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2 id=\"InstallingtheTestRailCLI\">\u524d\u63d0\u6761\u4ef6<\/h2>\n<p>TestRail CLI \u306f\u3001\u30c6\u30b9\u30c8\u7d50\u679c\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306b\u95a2\u3057\u3066\u306f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3092\u610f\u8b58\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u30c4\u30fc\u30eb\u81ea\u4f53\u306f Python \u3067\u958b\u767a\u3055\u308c\u3066\u304a\u308a\u3001\u30d1\u30d6\u30ea\u30c3\u30af\u306a Python Package Index (PyPI) \u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>CLI \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u524d\u306b\u3001\u4ee5\u4e0b\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li><strong>Python3.10.4 \u4ee5\u964d<\/strong><span>\u00a0<\/span>\u304c\u30de\u30b7\u30f3\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3002<\/li>\n<li><strong>pip<\/strong><span>\u00a0<\/span>(Python \u306e\u30d1\u30c3\u30b1\u30fc\u30b8 \u30de\u30cd\u30fc\u30b8\u30e3\u30fc) \u304c\u30bf\u30fc\u30df\u30ca\u30eb\u304b\u3089\u5229\u7528\u3067\u304d\u308b\u3053\u3068\u3002<\/li>\n<li>\u7ba1\u7406\u8005\u307e\u305f\u306fAPI\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u6301\u3064<span>\u00a0<\/span><strong>TestRail \u30a2\u30ab\u30a6\u30f3\u30c8<\/strong><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3 id=\"h_01K24KPFZ780ATMWY1V5VR2S0B\">TestRail API \u306e\u6709\u52b9\u5316<\/h3>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li><strong>[\u7ba1\u7406] &gt; [\u30b5\u30a4\u30c8\u8a2d\u5b9a] &gt; [API]<\/strong><span>\u00a0<\/span>\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002<\/li>\n<li>[<strong>API \u306e\u6709\u52b9\u5316<\/strong>] \u3092\u30aa\u30f3\u306b\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3 id=\"h_01K24KPYAEAT6ERJKWNBM3E2XE\">Python 3.10+ \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p><a href=\"https:\/\/www.python.org\/downloads\/\" target=\"_blank\" rel=\"noopener\">python.org<\/a>\u304b\u3089 Python 3.10.4 \u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306b<span>\u00a0<\/span><code class=\"inline-code\">pip<\/code><span>\u00a0<\/span>\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-python inline-code\">python --version pip --version<\/code><\/pre>\n<p>\u30b3\u30de\u30f3\u30c9\u3067\u30d0\u30fc\u30b8\u30e7\u30f3\u756a\u53f7\u304c\u8868\u793a\u3055\u308c\u308c\u3070\u3001TestRail CLI \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u958b\u59cb\u3067\u304d\u307e\u3059\u3002\u305d\u308c\u4ee5\u5916\u306e\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u624b\u9806\u306b\u5f93\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h4 id=\"h_01K0XW3WAMJG3QGJERYCX0NH1M\"><strong>Windows \u306e\u5834\u5408<\/strong><\/h4>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><a class=\"cursor-pointer\" target=\"_blank\" href=\"https:\/\/www.python.org\/downloads\/windows\/\" rel=\"noopener\">\u516c\u5f0f\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8<\/a>\u304b\u3089 Python \u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/li>\n<li>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642:\n<ol>\n<li>[Add Python to PATH] \u3092\u30aa\u30f3\u306b\u3057\u307e\u3059\u3002<\/li>\n<li>pip \u304c\u9078\u629e\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<\/li>\n<li>\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u518d\u8d77\u52d5\u3057\u3066\u5b9f\u884c\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">python --version\npip --version\n<\/pre>\n<h4 id=\"h_01K0XW5H1BNDWNRNQMJATWDD7C\"><strong>macOS \u306e\u5834\u5408<\/strong><\/h4>\n<p>1. Homebrew \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059 (\u307e\u3060\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408):<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">\/bin\/bash -c \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh)\"\n<\/pre>\n<p>2. Homebrew \u3092\u4f7f\u3063\u3066 Python \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">brew install python@3.10\n<\/pre>\n<p>3. \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u78ba\u8a8d\u3057\u307e\u3059:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">python3 --version\npip3 --version\n<\/pre>\n<div>\n<div><strong>\ud83d\udca1 \u30d2\u30f3\u30c8:<\/strong><span>\u00a0<\/span>python \u304c\u307e\u3060\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6307\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001python3 \u304a\u3088\u3073 pip3 \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/div>\n<h4 id=\"h_01K0XWWEKNR69E74ZSHTXF5GWY\"><strong>Linux (Ubuntu\/Debian) \u306e\u5834\u5408<\/strong><\/h4>\n<p>1. \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u307e\u3059:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo apt update\nsudo apt install python3.10 python3-pip\n<\/pre>\n<p>2. \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u78ba\u8a8d\u3057\u307e\u3059:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">python3 --version\npip3 --version\n<\/pre>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\">\n<div><strong>\ud83d\udca1 \u30d2\u30f3\u30c8:<\/strong><span>\u00a0<\/span>\u30b7\u30b9\u30c6\u30e0\u306b\u3088\u3063\u3066\u306f\u3001python3 \u304a\u3088\u3073 pip3 \u3092\u660e\u793a\u7684\u306b\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<h2 id=\"01K0XVJNRXD718QVJK0191V0Q3\">TestRail CLI \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5<\/h2>\n<p>TestRail CLI \u306f\u3001<strong>Mac<\/strong>\u3001<strong>Windows<\/strong>\u3001<strong>Linux<\/strong><span>\u00a0<\/span>\u30b7\u30b9\u30c6\u30e0\u4e0a\u3067\u52d5\u4f5c\u3057\u307e\u3059\u3002<\/p>\n<p>Python \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001TestRail CLI \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u3001\u6b21\u306e 1 \u884c\u3092\u30b7\u30b9\u30c6\u30e0\u306e\u30b3\u30de\u30f3\u30c9 \u30e9\u30a4\u30f3\u3067\u5b9f\u884c\u3059\u308b\u304b\u3001\u30d3\u30eb\u30c9 \u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u8ffd\u52a0\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">$ pip install trcli\n<\/pre>\n<p>\u52d5\u4f5c\u306e\u78ba\u8a8d:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">trcli\n<\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u30b3\u30de\u30f3\u30c9\u304c\u6b63\u5e38\u306b\u5b9f\u884c\u3055\u308c\u305f\u5834\u5408\u3001\u6b21\u306e\u3088\u3046\u306b\u51fa\u529b\u3055\u308c\u308b\u3053\u3068\u304c\u671f\u5f85\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">TestRail CLI v1.1X.X\nCopyright 2025 Gurock Software GmbH - www.gurock.com\nSupported and loaded modules:\n    - parse_junit: JUnit XML Files (&amp; Similar)\n    - parse_robot: Robot Framework XML Files\n    - parse_openapi: OpenAPI YML Files\n    - add_run: Create a new test run\n<\/pre>\n<h2 id=\"ConfiguringyourTestRailinstance\">TestRail \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u8a2d\u5b9a<\/h2>\n<p>\u7d50\u679c\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u524d\u306b\u3001TestRail \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3067 API \u30a2\u30af\u30bb\u30b9\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>[\u7ba1\u7406] &gt; [\u30b5\u30a4\u30c8\u8a2d\u5b9a]<\/strong><span>\u00a0<\/span>\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002<\/li>\n<li>[<strong>API<\/strong>] \u30bf\u30d6\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002\u3002<\/li>\n<li>[<strong>API \u306e\u6709\u52b9\u5316<\/strong>] \u3092\u30aa\u30f3\u306b\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p>\u53c2\u8003\u60c5\u5831:<span>\u00a0<\/span><a class=\"cursor-pointer\" target=\"_blank\" href=\"\/api-manual\/getting-started-with-testrail-api\/introduction-api\/\" rel=\"noopener\">TestRail API \u5165\u9580<\/a><\/p>\n<p><a href=\"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/TRCLI_enable_api-2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/TRCLI_enable_api-2.png\" alt=\"\" width=\"734\" height=\"206\" class=\"aligncenter wp-image-28825 size-full\" srcset=\"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/TRCLI_enable_api-2.png 734w, https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-content\/uploads\/TRCLI_enable_api-2-480x135.png 480w\" sizes=\"auto, (min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 734px, 100vw\" \/><\/a><\/p>\n<h2 id=\"h_01K0VZQHJE3ETF13GX0N2H6E8S\">\u3055\u3089\u306b\u8cea\u554f\u3084\u63d0\u6848\u304c\u3042\u308b\u5834\u5408<\/h2>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li><a href=\"https:\/\/github.com\/gurock\/trcli\" target=\"_blank\" rel=\"noopener\">GitHub \u3067\u30d0\u30b0\u3092\u5831\u544a\u3057\u305f\u308a\u3001\u6539\u5584\u3092\u63d0\u6848\u3059\u308b<\/a><\/li>\n<li><a href=\"\/test-automation\/testrail-cli\/overview-and-installation\/\" target=\"_new\" rel=\"noopener\">\u516c\u5f0f\u306e TestRail CLI \u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u7167\u3059\u308b<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>TestRail CLI\u00a0\u306f\u30aa\u30fc\u30d7\u30f3 \u30bd\u30fc\u30b9\u306e\u30b3\u30de\u30f3\u30c9\u30e9\u30a4 \u30f3\u30c4\u30fc\u30eb\u3067\u3042\u308a\u3001\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u305f\u308a API \u3092\u64cd\u4f5c\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u306a\u304f\u3001\u81ea\u52d5\u30c6\u30b9\u30c8\u306e\u7d50\u679c\u3092\u7c21\u5358\u306b TestRail \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3067\u304d\u307e\u3059\u3002 JUnit [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"parent":24151,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"class_list":["post-24627","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/24627","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/comments?post=24627"}],"version-history":[{"count":36,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/24627\/revisions"}],"predecessor-version":[{"id":29548,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/24627\/revisions\/29548"}],"up":[{"embeddable":true,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/24151"}],"wp:attachment":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/media?parent=24627"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}