{"id":18575732,"url":"https://github.com/usk81/easyindex-cli","last_synced_at":"2025-04-30T10:22:16.738Z","repository":{"id":40987453,"uuid":"481154685","full_name":"usk81/easyindex-cli","owner":"usk81","description":"easyindex-cli makes super easy to use Google Index API and IndexNow API :zap:","archived":false,"fork":false,"pushed_at":"2023-07-05T21:00:36.000Z","size":350,"stargazers_count":6,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-30T10:22:14.241Z","etag":null,"topics":["cli","google-indexing-api","indexnow","seo"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/usk81.png","metadata":{"files":{"readme":"README-ja.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-13T09:34:30.000Z","updated_at":"2024-05-14T12:08:30.000Z","dependencies_parsed_at":"2024-11-06T23:21:59.315Z","dependency_job_id":"0044628d-c830-4c0f-b4c8-75abdf9c7961","html_url":"https://github.com/usk81/easyindex-cli","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usk81%2Feasyindex-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usk81%2Feasyindex-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usk81%2Feasyindex-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usk81%2Feasyindex-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/usk81","download_url":"https://codeload.github.com/usk81/easyindex-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251683698,"owners_count":21627011,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","google-indexing-api","indexnow","seo"],"created_at":"2024-11-06T23:21:52.881Z","updated_at":"2025-04-30T10:22:16.648Z","avatar_url":"https://github.com/usk81.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# easyindex-cli  \u003c!-- omit in toc --\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"README.md\"\u003eEnglish\u003c/a\u003e •\n  日本語 (Japanese)\n\u003c/p\u003e\n\n`easyindex-cli`は、Google Index APIやIndexNow APIをとても簡単に取り扱えるようにします。\n\n![Demo](demo.gif)\n\n## インデックス  \u003c!-- omit in toc --\u003e\n\n- [preinstall](#preinstall)\n- [required](#required)\n- [install](#install)\n- [Usage](#usage)\n  - [Google](#google)\n    - [quickstart](#quickstart)\n    - [basic usage](#basic-usage)\n    - [set quota](#set-quota)\n    - [bulk request (updated \\\u0026 deleted)](#bulk-request-updated--deleted)\n  - [IndexNow](#indexnow)\n    - [quickstart](#quickstart-1)\n    - [basic usage](#basic-usage-1)\n    - [set quota](#set-quota-1)\n    - [use csv](#use-csv)\n  - [Google \\\u0026 IndexNow](#google--indexnow)\n  - [Use as Golang package](#use-as-golang-package)\n- [Parameters](#parameters)\n  - [common](#common)\n  - [Google indexing API](#google-indexing-api)\n  - [IndexNow API](#indexnow-api)\n\n## インストールの前に...\n\n- Googleサービスアカウントを作成する\n- Google Indexing API用のクレデンシャルJSONファイルを用意する \n- サーチコンソールでサービスアカウントをサイトオーナーとして追加する\n\n参照. [Google Search Central](https://developers.google.com/search/apis/indexing-api/v3/prereqs)\n\n## 必須要件\n\n- Googleサービスアカウント\n- Google Indexing API用のクレデンシャルJSON\n\n## インストール\n\nMac/Linux:\n\n```sh\nwget -O- https://github.com/usk81/easyindex-cli/releases/download/v{version}/easyindex-cli_{version}_{os}.tar.gz | tar xz\n# e.g.\n# mac M1 / version v1.0.1\n# wget -O- https://github.com/usk81/easyindex-cli/releases/download/v1.0.1/easyindex-cli_1.0.1_darwin_amd64.tar.gz | tar xz\n```\n\nWindows (PowerShell):\n\n```sh\niwr -outf easyindex-cli.tar.gz https://github.com/usk81/easyindex-cli/releases/download/v{version}/easyindex-cli_{version}_{os}.tar.gz\n# e.g.\n# 64bit / version v1.0.1\n# iwr -outf easyindex-cli.tar.gz https://github.com/usk81/easyindex-cli/releases/download/v1.0.1/easyindex-cli_1.0.1_windows_amd64.tar.gz\n```\n\n## 使い方\n\n### Google\n\n#### クイックスタート\n\n更新したページの送信:\n\n```sh\n# Mac / Linux:\neasyindex-cli google publish updated -C (your credential json file path) https://example.com/foobar https://example.com/fizzbizz\n \n# Windows:\neasyindex-cli.exe google publish updated -C (your credential json file path) https://example.com/foobar https://example.com/fizzbizz\n```\n\n削除したページの送信:\n\n```sh\n# Mac / Linux:\neasyindex-cli google publish deleted -C (your credential json file path) https://example.com/foobar https://example.com/fizzbizz\n \n# Windows:\neasyindex-cli.exe google publish deleted -C (your credential json file path) https://example.com/foobar https://example.com/fizzbizz\n```\n\n#### 基本的な使い方\n\n\u003e :smile:NOTE:  \n\u003e   環境変数 (`EASYINDEX_CREDENTIAL_PATH`) にクレデンシャルファイルのファイパスを設定しておけば省略することができます。\n\n更新したページの送信:\n\n```sh\n# Mac /Linux:\neasyindex-cli google publish updated https://example.com/foobar https://example.com/fizzbizz\n\n# Windows:\neasyindex-cli.exe google publish updated https://example.com/foobar https://example.com/fizzbizz\n```\n\n削除したページの送信:\n\n```sh\n# Mac /Linux:\neasyindex-cli google publish updated https://example.com/foobar https://example.com/fizzbizz\n\n# Windows:\neasyindex-cli.exe google publish updated https://example.com/foobar https://example.com/fizzbizz\n```\n\n#### 制限回数の設定\n\n\u003e リクエスト回数の制限を設定できます。\n\u003e\n\u003e  Google Indexing APIで割り当てられた制限値を設定してください。\n\n```sh\n# Mac /Linux:\neasyindex-cli google publish updated -l 200 https://example.com/foobar https://example.com/fizzbizz\n\n# Windows:\neasyindex-cli.exe google publish updated -l 200 https://example.com/foobar https://example.com/fizzbizz\n```\n\n#### 一括リクエスト (更新したページの送信 と 削除したページの送信)\n\n```sh\n# Mac / Linux:\neasyindex-cli google publish --csv index.csv\n \n# Windows:\neasyindex-cli.exe google publish --csv index.csv\n```\n\nCSVの形式:\n\n例.)\n\n```csv\nnotification_type,url\nURL_UPDATED,https://example.com/20da2710-e370-49e3-9ac8-c322007379a5\nURL_DELETED,https://example.com/a949a013-9a11-492d-863f-45c3008ef43f\nURL_UPDATED,https://example.com/f0e6e237-18f3-4857-88ea-c0dd1d26a5ce\n```\n\n### IndexNow\n\n#### クイックスタート\n\n```sh\n# Mac / Linux:\neasyindex-cli indexnow \\\n-H https://example.com \\\n-k 978c7955fdd547848fd3901ba4321e24 \\\n-f https://example.com/978c7955fdd547848fd3901ba4321e24.txt \\\n-e https://www.bing.com \\\nhttps://example.com/foobar https://example.com/fizzbizz\n \n# Windows:\neasyindex-cli.exe indexnow\n-H https://example.com \n-k 978c7955fdd547848fd3901ba4321e24 \n-f https://example.com/978c7955fdd547848fd3901ba4321e24.txt \n-e https://www.bing.com \nhttps://example.com/foobar https://example.com/fizzbizz\n```\n\n#### basic usage\n\n\u003e :smile:NOTE:  \n\u003e   いくつかの必須パラメータをフラグで指定する必要がありますが、それらはすべて環境変数で設定することができます。\n\n\n```sh\n# Mac / Linux:\neasyindex-cli indexnow https://example.com/foobar https://example.com/fizzbizz\n \n# Windows:\neasyindex-cli.exe indexnow https://example.com/foobar https://example.com/fizzbizz\n```\n\n#### 制限回数の設定\n\n```sh\n# Mac / Linux:\neasyindex-cli indexnow -q 1000 https://example.com/foobar https://example.com/fizzbizz\n \n# Windows:\neasyindex-cli.exe indexnow -q 1000 https://example.com/foobar https://example.com/fizzbizz\n```\n\n#### CSVによるリクエスト\n\n```sh\n# Mac / Linux:\neasyindex-cli indexnow --csv index.csv\n \n# Windows:\neasyindex-cli.exe indexnow --csv index.csv\n```\n\nCSVの形式:\n\n例.)\n\n```csv\nurl\nhttps://example.com/20da2710-e370-49e3-9ac8-c322007379a5\nhttps://example.com/a949a013-9a11-492d-863f-45c3008ef43f\nhttps://example.com/f0e6e237-18f3-4857-88ea-c0dd1d26a5ce\n```\n\n### Google \u0026 IndexNow\n\n\u003e :smile:NOTE:  \n\u003e   いくつかの必須パラメータをフラグで指定する必要がありますが、それらはすべて環境変数で設定することができます。\n\n```sh\n# Mac / Linux:\neasyindex-cli publish --csv index.csv\n \n# Windows:\neasyindex-cli.exe publish --csv index.csv\n```\n\nCSVの形式:\n\n例.)\n\n```csv\nnotification_type,url\nURL_UPDATED,https://example.com/20da2710-e370-49e3-9ac8-c322007379a5\nURL_DELETED,https://example.com/a949a013-9a11-492d-863f-45c3008ef43f\nURL_UPDATED,https://example.com/f0e6e237-18f3-4857-88ea-c0dd1d26a5ce\n```\n\n### Golangパッケージとして使用する\n\nref. [コアパッケージ](https://github.com/usk81/easyindex)\n\n## パラメータ\n\n### 共通\n\n| 必須 | 環境変数 | フラグ | フラグ（短縮） | デフォルト値 | 説明 |\n|---|---|---|---|---|---|\n| :x: | - | help | h | - | コマンドヘルプ |\n| :x: | - | csv | c | false | CSVファイルパス |\n| :x: | - | json | j | false | JSONファイルパス |\n| :x: | `EASYINDEX_DEBUG` | debug | d | false | デバッグログの出力 |\n| :x: | `EASYINDEX_IGNORE_PRECHECK` | ignore-precheck | i | false | プレチェックを行わない |\n\n### Google indexing API\n\n| 必須 | 環境変数 | フラグ | フラグ（短縮） | デフォルト値 | 説明 |\n|---|---|---|---|---|---|\n| :o: | `EASYINDEX_GOOGLE_CREDENTIALS_PATH` | google-credentials | C | credentials.json | Googleのクレデンシャルファイルのパス |\n| :o: | `EASYINDEX_GOOGLE_REQUEST_LIMIT` | google-limit | l | 200 | Google Index Publishing APIのリクエスト制限回数 |\n\n### IndexNow API\n\n| 必須 | 環境変数 | フラグ | フラグ（短縮） | デフォルト値 | 説明 |\n|---|---|---|---|---|---|\n| :o: | `EASYINDEX_INDEXNOW_HOST` | indexnow-host | H | (empty) | サイトのドメイン |\n| :o: | `EASYINDEX_INDEXNOW_KEY` | indexnow-key | k | (empty) | IndexNowのkey |\n| :o: | `EASYINDEX_INDEXNOW_KEY_LOCATION` | indexnow-keyfile | f | (empty) | IndexNowのkey-location |\n| :x: | `EASYINDEX_INDEXNOW_REQUEST_LIMIT` | indexnow-limit | q | (empty) | IndexNow APIのリクエスト制限回数 |\n| :o: | `EASYINDEX_INDEXNOW_SEARCH_ENGINE` | indexnow-searchengine | e | (empty) | IndexNow APIをリクエストする検索エンジンのURL |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusk81%2Feasyindex-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fusk81%2Feasyindex-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusk81%2Feasyindex-cli/lists"}