@linkrivers-webops/cli
v1.0.0
Published
Install LinkRivers serverless SEO scanner functions to your Vercel or Netlify project
Maintainers
Readme
@linkrivers-webops/cli
Install LinkRivers SEO scanner functions to your Vercel or Netlify project with a single command.
Quick Start
npx @linkrivers-webops/cliOr use the shorter alias after global install:
npm install -g @linkrivers-webops/cli
linkrivers
# or
lrThat's it! The CLI will:
- Detect your platform (Vercel or Netlify)
- Ask for your LinkRivers site key
- Install the SEO scanner functions
- Configure environment variables
What Gets Installed
Files Added
For Vercel:
your-project/
api/
linkrivers/
health.js
seo-scan.js
broken-links.js
lib/
linkrivers/
config.js
fetcher.js
parser.js
reporter.js
index.js
.env.local (updated)
vercel.json (updated)For Netlify:
your-project/
netlify/
functions/
lr-health.js
lr-seo-scan.js
lr-broken-links.js
lr-security-headers.js
lib/
linkrivers/
config.cjs
fetcher.cjs
parser.cjs
reporter.cjs
index.cjs
.env (updated)
netlify.toml (updated)Environment Variables
The following environment variables are configured:
| Variable | Description |
|----------|-------------|
| LINKRIVERS_SITE_KEY | Your LinkRivers site key (required) |
| LINKRIVERS_API_KEY | Your LinkRivers API key (for reporting results) |
| LINKRIVERS_API_URL | LinkRivers API URL (default: https://api.linkrivers.com) |
After Installation
Deploy your project:
git add . && git commit -m "Add LinkRivers SEO scanner" && git pushTest the health endpoint:
- Vercel:
https://your-site.vercel.app/api/linkrivers/health - Netlify:
https://your-site.netlify.app/.netlify/functions/lr-health
- Vercel:
Run SEO scans from LinkRivers dashboard
Manual Installation
If you prefer manual installation, download the functions from: https://github.com/linkrivers/linkrivers-serverless
Requirements
- Node.js 14+
- Vercel or Netlify project
Getting Your Site Key
- Log in to LinkRivers Dashboard
- Go to Integrations
- Click on Vercel or Netlify
- Your site key will be displayed
Support
- Documentation: https://linkrivers.com/docs/serverless-seo
- Issues: https://github.com/linkrivers-webops/cli/issues
License
MIT
