Installation of FDK CLI
Get the latest developer guides on Fynd Partners Help
Install FDK CLI
npm install -g @gofynd/fdk-cli
If global installation fails due to restricted permissions you can execute the command with sudo/root
permissions.
To verify the installation was successful use the below command. If everything went well you should be prompted with the latest version of the CLI.
fdk -version
Authenticate the CLI
Before we start creating a theme we must first authenticate using the CLI for the next commands to work. You can use your registered mobile number or email. For mobile OTP login use the below command.
fdk login -m <mobile_number>
An OTP will be sent to the mobile number after which you can enter the OTP into the prompt. In case of email & password login, use the below command.
fdk login -e <email_id>
You will be prompted to enter your password. Enter your password to authenticate the CLI.