1.0.1-beta • Published 11 months ago

@zohocrm/zdk-cli v1.0.1-beta

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
11 months ago

Static Badge npm NPM

  • Initialise a project in local and logins to the crm account
  • Create and manage the meta of the resources
  • Deploy resources to the crm org
  • Exports the resources

To get started with the zdk CLI, you can go through our documentation CLI documentation.

ZDK

ZDK command line interface that simplifies source-driven development and extension of Zoho products.

How do I install and use ZDK?

Prerequisite

Refer this link for installing Node.js platform.Once Node is installed, verify it by running the following command.

$ node -v
$ npm -v

NOTE

  1. Installing Node.js should install npm as well.
  2. The ZDK-CLI is compatible only with node version >= 14.17.6 and npm version >= 8.1.0 .

Installing ZDK CLI

Run the following command to install the ZDK cli node package. 

$  npm install -g @zohocrm/zdk-cli

NOTE

  1. If you need to setup the cli in current directory alone use the same command without -g option.

  2. Alternatively you can visit CLI Installation Documentation for installation instructions.


Commands

The command zdk --help lists all the available commands and zdk <command> --help shows more details for provided command (if exists).

List of the available commands

CommandDescription
initInitializes the ZDK CLI project directory.
auth:whoamiDisplays the authorized user and the connected CRM org.
auth:loginInitializes the ZDK CLI project directory. Require access to a web browser
auth:logoutLogs out of Zoho CRM org.
org:statusDisplays the local changes made after the previous pull or push.
org:pullPulls the metadata to the local ZDK CLI project directory.
org:pull:resolveResolves the conflict file.
org:pull:revertReverts the pull operation.
org:pull:updateUpdates the local directory with the pulled data.
org:pushPushes changes to org.
org:push:resultDisplays the result of the push process and updates local directory in case of success response.
org:push:listDisplays the list of the recent push operations that happened in the org.
org:listLists the authorized CRM orgs.
org:exportExports the ZDK CLI project in a zip file to share it with other developers.
meta:createCreates new metadata.