---
title: "indexmysite CLI | Index My Site"
description: "Install the indexmysite CLI, sign in, and submit URLs for Google indexing from your terminal or a script."
canonical: "https://indexmysite.app/docs/cli"
language: "en"
---

# 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.

Note

The CLI is being finalised. The commands below describe what you will be able to do. Exact flags may change before release.

## 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](https://indexmysite.app/docs/projects). 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](https://indexmysite.app/docs/submitting-urls#url-statuses) 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](https://indexmysite.app/docs/api) directly.
