@jambonn/ocg-cli
v1.1.2
Published
CLI to interact with OCG
Downloads
7
Readme
@jambonn/ocg-cli
CLI to interact with OCG
Usage
$ npm install -g @jambonn/ocg-cli
$ ocg COMMAND
running command...
$ ocg (-v|--version|version)
@jambonn/ocg-cli/0.0.1 darwin-x64 node-v10.18.0
$ ocg --help [COMMAND]
USAGE
$ ocg COMMAND
...
Commands
ocg serve [PATH_REPO]
In your first time, you need to create env file .env
Example content:
SHOPBASE_ENV=dev
SHOPBASE_STORE=shopname.myshopbase.net
SHOPBASE_THEME_ID=3
SHOPBASE_THEME_VERSION=3
SHOPBASE_STOREFRONT_PATH=$HOME/sites/vue/sbase-storefront
start development server
USAGE
$ ocg serve [PATH_REPO]
OPTIONS
-s, --ssr With ssr mode
-i, --ignoreVariables Ignore compile style variables
-p, --storefrontPath Storefront path
-h, --help show CLI help
-n, --name=name name to print
EXAMPLE
$ ocg-cli serve -s
ocg build [PATH_REPO]
build for production
USAGE
$ ocg build [PATH_REPO]
OPTIONS
-t, --themeId Theme ID
-v, --themeVersionId Theme version ID
-b, --buildVersionId Build version ID
-p, --publicPath Public path
-h, --help show CLI help
-n, --name=name name to print
EXAMPLE
$ ocg-cli serve -s
ocg-cli help [COMMAND]
display help for ocg-cli
USAGE
$ ocg-cli help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI