File tree Expand file tree Collapse file tree 1 file changed +19
-4
lines changed
Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Original file line number Diff line number Diff line change 1+ ## 快速开始
2+ 你可以到 [ Release] ( https://github.com/greycodee/seo-tools/releases/ ) 下载对应版本对应系统到压缩包,然后解压使用
3+
4+ 或者你也可以克隆源代码然后自己编译,这需要有 Go 的编程环境
5+ ``` shell
6+ git clone https://github.com/greycodee/seo-tools.git && cd seo-tools && go build .
7+ ```
8+ 编译完成后就可以得到一个二进制程序了
9+
10+ 这边示例一下推送一个网址到 baidu 站长上去
11+ > 执行命令前需要将百度站长上得到到 ` Token ` 设置成 ` BING_API_KEY ` 环境变量
12+ ``` shell
13+ ./seo-tools -u https://example.com/index.html
14+ ```
115## 环境变量设置
16+ > 各个系统设置环境变量方式有所不同,请查询自己对应系统设置环境变量到方法
217``` shell
318# 站点域名【当要推送 Baidu 或 Bing 时设置】
4- SITE_URL=http://blog.mjava.top
19+ export SITE_URL=http://blog.mjava.top
520
621# Bing apiKey 配置【当要推送 Bing 时设置】
7- BING_API_KEY=" xxxxxxx"
22+ export BING_API_KEY=" xxxxxxx"
823
924# Baidu Token 配置【当要推送 Baidu 时设置】
10- BAIDU_TOKEN=" xxxxxxx"
25+ export BAIDU_TOKEN=" xxxxxxx"
1126
1227# Google 密钥文件路径环境变量【当要推送 Google 时设置】
13- GOOGLE_APPLICATION_CREDENTIALS=" /xxx/xxx/xxx.json"
28+ export GOOGLE_APPLICATION_CREDENTIALS=" /xxx/xxx/xxx.json"
1429```
1530
1631## 命令使用
You can’t perform that action at this time.
0 commit comments