diff

Name

cb-cli diff - Compares the local files with the versions stored on the ClearBlade platform System

Synopsis

cb-cli diff 
	[-all-services]
	[-all-libraries]
	[-service = <SERVICE_NAME>]
	[-userschema] 
	[-collection = <COLLECTION_NAME>] 
	[-user = <EMAIL>]
	[-role = <ROLE_NAME>]
	[-trigger = <TRIGGER_NAME>]
	[-timer = <TIMER_NAME>]

Description

This command allows you to do a “diff” between an object in your current repo and the corresponding object residing in the associated remote ClearBlade system. This involves diffing the meta data for the object, and if the object is a code service or library, also performing a traditional diff on the code. For example, consider a code service. If you (locally) changed the actual code for the service, and also (locally) changed the library dependencies for the service, the diff command will report both changes.

Options

The following options are available

  • all-services
    Diffs all the services stored in the repo

  • all-libraries
    Diffs all of the libraries stored in the repo

  • service = < service_name >
    Diffs the local and remote versions of

  • library=< library_name >
    Diffs the local and remote versions of

  • userschema
    Diffs the local and remote versions of the users table schema

  • collection = < collection_name >
    Diffs the local and remote versions of the collections meta-data. Does not diff the items of the collection.

  • user = < email >
    Diffs the local and remote versions of the user record. Also diffs the users roles

  • role = < role_name >
    Diffs all the capability details of the specific role

  • trigger = < trigger_name >
    Diffs triggers

  • timer = < timer_name >
    Diffs timers

Example

cb-cli diff -collection=fgbfgb

Output:

<         host:"smtp.gmail.com",
---
>         host:"mtp.gmail.com",

cb-cli diff -collection=samplecollection

_