A note from 2026: This article was published in 2016. Since then, hybris has been rebranded as SAP Commerce Cloud, HMC and the old Cockpit tools have been deprecated in favor of Backoffice, and this custom runtime tooling may require changes to work with current SAP Commerce Cloud versions.

Overview

This tool is part of my hybris Runtime Developer tools package. It displays one-page, all-in-one information about hybris types or a specific type using the command line. It is much faster and more flexible than using the hybris administrative console (HAC).

Features

Usage

Command-line interface

Parameters

Parameter Description Example
–? Help, available options. Only for the console version.
type (-t) Shows the list of attributes of <type> query=Select {pk} from {Product}
attribute (-a) Shows detailed information about the specific attribute itemtype=Product
pk Identifies the type(s) behind the PK and shows the results. This is a useful feature if you need to request information about the item with the specified PK, but you are not sure, or you do not know, what type is behind this PK. -pk 8796176744449

Examples:

Requesting information about the available attributes of the specific type. In the example below, it is “Product”.

Command-line output showing Product type attributes

Requesting information about the specific attribute. In the example below, it is “picture” of “Product”.

Command-line output showing Product picture attribute details

Web API

$ curl "https://localhost:9002/tools/typesystem/type/Language/attributes" -k 2>/dev/null
$ curl "https://localhost:9002/tools/typesystem/type/Language/attributes" -k 2>/dev/null
Type: Language
Supertype:C2LItem
Subtypes:
active→java.lang.Boolean→null→mandatory!
comments→CommentItemRelationcommentsColl→null→optional
...
$ curl "https://localhost:9002/tools/typesystem/type/Product/attributes" -k 2>/dev/null | head -n 10
Type: Product
Supertype:GenericItem
Subtypes: ApparelProduct, VariantProduct
allDocuments→ItemDocrRelationallDocumentsColl→null→optional
assignedCockpitItemTemplates→Item2CockpitItemTemplateRelationassignedCockpitItemTemplatesColl→null→optional
comments→CommentItemRelationcommentsColl→null→optional
creationtime→java.util.Date→null→optional
itemtype→ComposedType→null→optional
modifiedtime→java.util.Date→null→optional
owner→Item→null→optional
$ curl "https://localhost:9002/tools/typesystem/types?extension=hmc" -k 2>/dev/null
hmc→HMCHistoryEntry
hmc→HistoryActionType
hmc→WizardBusinessItem
hmc→SampleWizard
hmc→ImportExportUserRightsWizard
hmc→ImportUserRightsWizard
hmc→ExportUserRightsWizard

In a similar way, you can request all the types from all extensions if you omit the extension parameter.

Video

Download

The extension is available by request. E-mail: Rauf_Aliev@epam.com. Skype: rauf_aliev

© Rauf Aliev, August 2016