Running a Remote Command

It is possible to run a remote command on your online instance using the following command:

openode cmd SERVICE-NAME "my command"

Your instance must be up and running to work. Also, make sure to use quotes, for example:

openode cmd www "ls -la"

In this example it will list the files in the remote repository in the www service. The name of the service is defined in the docker-compose.yml file. For example:

version: '3'
services:
  www:
    volumes:
      - /opt/app/:/opt/app/
    ports:
      - "80:80"
    build:
      context: .