Cloning widgets, components, and themes from the CLI

Cloning widgets, components, and themes from the CLI

How to use the fliplet clone and fliplet list CLI commands to download the source of a published component, menu, or theme to your machine.

Simply use the clone command to download a copy of the source code, given a component package name:

$ fliplet clone com.fliplet.primary-button

Cloning widget Primary Button (com.fliplet.primary-button).

Please type the path where this widget should be saved to. Press return to use "widget-primary-button".
Done! Widget cloned to "widget-primary-button".

You can also list all components you have got access to, by using the list command as follows:

$ fliplet list

Here's the widgets you have access to and can be downloaded:

• Inline Link
  - Package name: com.fliplet.inline-link
  - Version: 1.0.0

• Primary Button
  - Package name: com.fliplet.primary-button
  - Version: 1.0.0

• Push notifications
  - Package name: com.fliplet.push-notifications
  - Version: 1.0.0

To download a widget, type: fliplet clone <packageName>

To publish a component on Fliplet, please refer to the publishing documentation.


Back