1.0.2 • Published 2 years ago

occ-dcu v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

OCC

A simple CLI to help with your daily OCC development.

Installation

npm install -g occ

Getting Started

First go to the DesignCodeUtility folder and run npm i

$ npm i

Then go back to the root folder and run the commands below

$ occ --start
? Select an environment: TEST
? Your Admin URL: <URL>
? Your AppKey: <KEY>
Your project is ready!

After this you can use everything on this CLI.

Note: You only need to do this once, after that if you need to update, change or configure an environment, please use the Environment Manager (occ --env <operation>).

Options

The following table describes the options you can use with occ.

OptionDescription
-h, --helpProvides usage information for the CLI
-V, --versionProvides the CLI's version
-s, --startStarts the project setup
-d, --devStarts Watcher + Browsersync. Note: Click here to see how configure Browsersync.
-c, --create <type>Creates widget or element. Options: widget, element, sitesettings.
-r, --refresh <path>Refreshes content from the Commerce instance within the specified directory.
-p, --putAll <path>Sends everything from the specified directory.
-e, --env <operation>Starts the Environment Manager. Options: current, config, change.
-t, --put <path/file>upload the entire path.
-s, --transfer <path>Transfers things between current and selected environment.
-g, --grab <path>Starts grabbing everything from current environment.
-w, --grab <path>Grabs one widget