Socket
Socket
Sign inDemoInstall

@jambonn/ocg-cli

Package Overview
Dependencies
778
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @jambonn/ocg-cli

CLI to interact with OCG


Version published
Maintainers
1
Created

Readme

Source

@jambonn/ocg-cli

CLI to interact with OCG

  • Usage
  • Commands

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

Keywords

FAQs

Last updated on 26 Dec 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc