Skip to content

Shell Command


  1. Create a project shell_command_project
  2. Then create a file named
  3. Replace the code with the following content:
uname -an
echo variable1=$variable1
  1. Then create a Command named my_command.command
  2. Replace the content with the following JSON code:
   "description":"command description",
         "command":"sh shell_command_project/"
         "command":"sh shell_command_project/"
  1. Publish the project
  2. Select the *.command file in the Workspace explorer and inspect the result in the Preview:
    Darwin XXXXXXXXXXXXX 17.7.0 Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64

Note: The working folder is set to the registry/public space under the file-based Repository.

You can execute an arbitrary command e.g. even Node, Python, Julia, etc., by using the dirigible projects' content published and available under the registry space. For this case the given framework has to be setup in advance and the entry point executable to be added to the PATH environment variable. The standard output is redirected to the service response.

For more information, see the API documentation.