Using FDK CLI to Develop and Customize Themes on Fynd Platform

What are the steps to customize a theme on Fynd Platform using FDK CLI? What are the best practices and prerequisites to start working on themes?

To customize a theme on the Fynd Platform using FDK CLI, one should follow the steps mentioned below:

  1. Gain access: You need access to the merchant’s application. Ask the merchant to add you as a staff member with the permission to manage themes.

  2. Install FDK CLI: It’s a CLI tool that assists in building themes, extensions. Use npm install -g @gofynd/fdk-cli for installation. Make sure Node.js and Git are installed in your system.

  3. Authenticate: Authenticate yourself using the CLI. You can use your registered mobile number or email for this.

  4. Download the Theme: You need the theme token to clone the merchant’s theme code. Execute the command: ‘fdk theme init -t <theme_token>’

  5. Customize: Make any changes to the downloaded theme code. For example, adjust the CSS to change the theme’s appearance.

  6. Preview Changes: Preview your changes on the local system using the command: ‘fdk theme serve’

  7. Sync Code: Sync your theme to the application using the command: ‘fdk theme sync’

Observe best practices when working with merchants and gain basic knowledge of VueJS. Also, different versions of Node.js may have varying support. Currently, Node versions are limited to Node 15.

For more details, please refer to the full guide here.