The indexmysite CLI lets you submit URLs and check on jobs from a terminal,
a script, or a CI step.
Install
npm i -g indexmysiteThen check it is on your path:
indexmysite --versionSign in
indexmysite loginThis 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/pricingOr submit from a file with one URL per line, or from standard input:
indexmysite submit --file urls.txt
cat urls.txt | indexmysite submit --stdinAdd --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 jobsShows 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 creditsShows 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.