Adding a Command - SelyanSel/AppLink GitHub Wiki

💻 Adding a Command

!!! Warning: Commands are still in development and is not yet fully supported by AppLink !!!

To add a command, you need a basic knowledge in JSON & batch.

Steps

  1. Open your AppLink server installation. Go to ".applink", then "server" and finally "apps".
  2. Open in a text editor the "appsRegistery.json" file. You can use a JSON beautifier to view it best.
  3. Once opened (and beautified) it should look like this: imageNOTE: you may see other entries as the one shown on the image is the default apps & commands.
  4. Add a new entry to the "commands" array. It should have the following string entries:
  • id == The id of the command (must be a number)
  • name == The name of the command that will be used in the URL (example: http://localhost:9989/api/execCommand?command=helloworld&pass=1234)
  • exec == This should be the command to execute. This MUST be only one line; no \n or returns.
  1. Once the entry is added, you can save the file. You will need to restart AppLink server to have the changes appear.

✔️ Conclusion

Congrats 🎉! You now have added a command to AppLink server.