Freshdesk SDK

The SDK is a collection of developer tools that will make it easier for you to build, test and publish apps on the Freshdesk Marketplace. You will need to have basic knowledge of the following to build an app:

  1. Javascript
  2. HTML
  3. CSS
Installation

Note:
1. You will need to install Node.js to use the SDK. You can install it from here. Any version below 6.10 will not be supported.

2. By installing and using the SDK, you agree to these Terms and Conditions.


 
  1. In your terminal (Mac/UNIX), run the following command to install the SDK: Copied Copy
    1
    sudo npm install http://dl.freshdev.io/sdk/frsh-sdk-3.1.0.tgz -g
    If you are using command prompt (Windows), run this command to install the SDK: Copied Copy
    1
    npm install http://dl.freshdev.io/sdk/frsh-sdk-3.1.0.tgz -g
    The -g command option ensures that your installation is global. With a global installation, you will be able to call commands and work on your Apps and SDK from anywhere within your machine.
  2. Install this Chrome browser extension to enable local testing abilities in your browser.
  3. Initialize a new App Project with the command $ frsh init <project-folder-name>
Understanding frsh
The frsh command will be available for use as soon as you install the SDK. The format of frsh is $ frsh [global_options] <command> [command_options] [parameters]
Commands
The commands available for frsh are:
  1. init: Lets you create a new project. You can call this by executing $ frsh init <project-folder-name>
  2. info: Displays information about the project. While within the project folder, you execute this command $ frsh info
  3. run: To local test your app, run this command within your project folder $ frsh run
  4. validate: Will run validation checks on your project and inform you of any errors before you submit your app to the Marketplace $ frsh validate
  5. pack: Will package your build into a .zip file that you can submit to the Freshdesk Marketplace for review and publication $ frsh pack
  6. clean: Removes the /dist and /work dirs $ frsh clean
  7. version: Prints the version of the SDK $ frsh version
  8. help: Provides more information based on how it is used $ frsh help //Will print all commands
    $ frsh help init //Will print syntax and information about the init command
Options

The frsh command supports three global options

  1. -v for verbose output
  2. -x for stack trace
  3. -h for help
-v

The frsh command is designed on the UNIX philosophy of not being verbose by default. For example, to create a new project called "myprj" you will have to run $ frsh init myprj

However, executing that command will not give you any feedback. The silent exit with status 0 indicates that the command succeeded. If you desire explicit feedback, you will have to execute the command with the -v global option. So the verbose version of the above command will be $ frsh -v init myprj

-x

The frsh command accepts the global option -x for printing exception stack trace. On failures, when -x is supplied, the command also writes the stack trace of the exception to the STDERR.

-h

Displays the help text for the command.

Log in with your Freshdesk account

Enter your helpdesk URL to proceed to login

Proceed

By clicking "Proceed", you agree to our Terms of Use.