The indexmysite CLI

Install the indexmysite CLI, sign in, and submit URLs for Google indexing from your terminal or a script.

The indexmysite CLI lets you submit URLs and check on jobs from a terminal, a script, or a CI step.

Install

npm i -g indexmysite

Then check it is on your path:

indexmysite --version

Sign in

indexmysite login

This opens your browser so you can sign in and approve the CLI. You only need to do this once per machine.

Submit URLs

Pass URLs as arguments:

indexmysite submit https://example.com/new-post https://example.com/pricing

Or submit from a file with one URL per line, or from standard input:

indexmysite submit --file urls.txt
cat urls.txt | indexmysite submit --stdin

Add --name "September launch" to label the job and --project <project-id> to file it under a project. The command prints a request ID; pass it back with --request-id if you retry the same submission so it is not charged twice.

Each job accepts up to 2000 URLs. Each URL uses one credit. The command prints the job ID so you can check on it later.

List jobs

indexmysite jobs

Shows your recent jobs with their names, URL counts, and how many URLs are indexed so far.

Check a job

indexmysite status <job-id>

Shows every URL in the job with its current status, from queued through in progress to indexed, refunded, or failed. See Submitting URLs for what each status means.

Projects

indexmysite project list
indexmysite project create "Acme Co. website"
indexmysite project show <project-id>

list prints your projects with their IDs and index rates, create makes a new one and prints its ID, and show prints a project’s figures and recent jobs. Use the ID with submit --project.

Check credits

indexmysite credits

Shows your current balance.

Use it in scripts

The CLI exits with a non-zero code when a command fails, so it works in shell scripts and CI. If you need structured output, use the API directly.

Documentation

Type to search…

↑↓ navigate↵ selectEsc close