Use the cec command-line utility to create a new component, develop the component locally, and then export the component to Oracle Content and Experience.
Create a Component
To create and develop a custom component locally, use the following command:
cec create-component <component-name> -f <source>
Choose one of the following values for
cec create-component MyLocalComponent1 -f local
The component is created in your Git repository under
src/main/components directory is seeded with the
Sample-To-Do component. All components that you create go in this directory.
Copy a Component
You can copy a component in Developer Cloud Service with the
cec copy-component command:
cec copy-component <source> [<destination>]
This command copies an existing component named <source> to <destination>.
Export or Deploy the Component to Oracle Content and Experience
Once the component is developed and tested in the local server, you can export the component using the following command. This creates the component zip file. You can manually import this component zip into Oracle Content and Experience.
cec export-component <component name>
Alternatively, you can deploy the component directly to Oracle Content and Experience from Developer Cloud Service using the following command.
cec deploy <component name>
cec deployAll command will deploy all the components in
Import Components into Developer Cloud Service
If you have a component ZIP file created from the Oracle Content and Experience server, you can import that into Developer Cloud Service for further development. Use the following command:
cec import-component <location of the component zip file>
Important:The source code for your components exists in
src/main/components. You shouldn't modify any files outside
src/main/componentsbecause they are needed for the functioning of the Oracle Content and Experience local server.