A CLI program to upload/publish extensions to the Chrome Web Store.
- Installing with Docker
docker pull anhnguyentb90/cws-publish
- Installing with development environment. Please make sure Go already installed
dep ensure -v
go run main.go
Overview all of commands with CLI
Includes tools to build & publish Chrome Web Store
Usage:
cws-publish [command]
Available Commands:
build-store-configs Lookup store configs then copy into CWS provider folder
help Help about any command
upload Upload a zip file into CWS
Flags:
--config string config file (default is $HOME/.cws-publish.yaml)
-h, --help help for cws-publish
-t, --toggle Help message for toggle
Use "cws-publish [command] --help" for more information about a command.
Usage:
cws-publish build-store-configs [flags]
Flags:
-d, --dest string Destination directory which be stored store provider
-h, --help help for build-store-configs
-s, --src string Source directory which be located store configs (YAML & Provider)
Global Flags:
--config string config file (default is $HOME/.cws-publish.yaml)
Usage:
cws-publish upload [flags]
Flags:
-h, --help help for upload
-p, --publish Publish CWS item immediately after zip file uploaded
-t, --target string Publish target (trustedTesters/default) (default "default")
-z, --zipPath string CWS zip file path
Global Flags:
--config string config file (default is $HOME/.cws-publish.yaml)
There are having 4 of environment variable should be defined (they are the credentials so should be defined as environment variable)
EXTENSION_ID
- Your extension ID, get from CWS
GOOGLE_CLIENT_ID
GOOGLE_CLIENT_SECRET
GOOGLE_REFRESH_TOKEN
please follow at here