gsc-cli
v0.1.0
Published
Google Search Console and Indexing API with CLI interface
Downloads
6
Maintainers
Readme
Google Search Console and Indexing API with CLI interface
This package allows you to manage your Google Search Console and Indexing API through cli interface.
The use of Indexing API, is inspired by RankMath WordPress plugin, you can follow the steps there sto setup the service account on your Google cloud project.
Requirements
- Node.js 10 or above
Install
npm install -g gsc-cli
.- Follow the steps to set up your Google cloud service account, see the how to below.
- Run
gsc config setup --jsonFile=<path to file>
, and use your api token. - Run
gsc --help
for all available commands.
Steps to set up Google Cloud API
- Create your Google cloud account if you don't have one.
- Feel free to create a new project or use existing one.
- Enable Google Indexing API, click here to automatically set it up.
- Now create a service account
- Select and copy the whole Service Account ID (the one that looks like an email address) because you will need it later.
- Now create the API Key in JSON format (you need this for authentication)
- Add the Service Account as an owner of your Google Search Console Property
- From Search Console > Settings > Users and Permissions, choose the "Manage property owners" from the main user.
- Add owner with the email address you copy before for the search console property
- That's it
- Now from you cli, run
gsc config setup --jsonFile=<path to json file>
- Now the cli package is ready to use
Documentation
Documentation is available at the wiki page for all the available commands and the optional arguments.
Contributing
Pull requests and feedback are welcome. Contributing guideline will be added later.
Disclaimer
This tool will only give the signal to Google Indexing API that URL has content updated. It will not guarantee that Google crawl that immediately. Read more about this Indexing API
Changelog
A complete listing of all notable changes to this package in CHANGELOG.md.