Commands list

@add
Adds specified cluster(s) address(es) to database
@add "CLUSTER_ADDRESS";

or
@add CLUSTER_ADDRESS1, CLUSTER_ADDRESS2, CLUSTER_ADDRESS3...;

(clusters addresses without quotes)

@connect
Connects with specified cluster(s) address(es)
@connect "CLUSTER_ADDRESS";

or
@connect CLUSTER_ADDRESS1, CLUSTER_ADDRESS2, CLUSTER_ADDRESS3...;

(clusters addresses without quotes)

@to
Specifies single receiver(s) for request.
Use this to mix with other commands.
@to "CLUSTER_ADDRESS";

or
@to CLUSTER_ADDRESS1, CLUSTER_ADDRESS2, CLUSTER_ADDRESS3...;

@echo
Sends echo request to all clusters.
@echo;

@sleep
Sleeps cluster (s). Without any arguments will sleeps all clusters.
@sleep;

or
@sleep "CLUSTER_ADDRESS";

or
@sleep CLUSTER_ADDRESS1, CLUSTER_ADDRESS2, CLUSTER_ADDRESS3...;

(clusters addresses without quotes)
or
Sleep my cluster:
@sleep me;

me is an alias to THIS cluster.

@wakeup
Wake-ups cluster (s). Without any arguments will wake-up all clusters.
@wakeup;

or
@wakeup "CLUSTER_ADDRESS";

or
@wakeup CLUSTER_ADDRESS1, CLUSTER_ADDRESS2, CLUSTER_ADDRESS3...;

(clusters addresses without quotes)
or
Wake up my cluster:
@wakeup me;

@broadcast
Enabling extended broadcast (request will be resending by clusters to each others)
@broadcast;

@opt_set
Sets cluster option on remote
@opt_set key1:"value1", key2:"value2", key3:"value3"...;

@opt_get
Gets cluster option from remote
@opt_get key1, key2, key3...;

@reg_set
Sets registry value on remote
@reg_set key1:"value1", key2:"value2", key3:"value3"...;

@reg_get
Gets registry value from remote
@reg_get key1, key2, key3...;

@clone
Executes self-cloning command
@clone;

or
@clone "CLUSTER_ADDRESS";

or
@clone CLUSTER_ADDRESS1, CLUSTER_ADDRESS2, CLUSTER_ADDRESS3...;

(clusters addresses without quotes)
or
Clone my cluster:
@clone me;

Note: Remember that cloner is disabled by default in config file. To use this command you must enable it.

@self_update
Self-updates remote cluster
@self_update source:"ADDRESS_TO_SOURCE_CLUSTER";

or
@self_update source:"ADDRESS_TO_SOURCE_CLUSTER", CLUSTER_ADDRESS;

or
@self_update source:"ADDRESS_TO_SOURCE_CLUSTER", CLUSTER_ADDRESS1, CLUSTER_ADDRESS2, CLUSTER_ADDRESS3...;

(clusters addresses without quotes)
or
Self-update my cluster:
@self_update source:"ADDRESS_TO_SOURCE_CLUSTER", me;

@exec
Executes remote shell code
@exec cmd:"COMMAND_TO_EXECUTE";

@system
Executes remote shell code - via system()
@system cmd:"COMMAND_TO_EXECUTE";

@proc
Starts process on remote cluster - via proc_open()
@proc proc:"PROCESS_NAME";

@eval
Executes PHP code on remote cluster - via eval()
@eval php:"PHP_CODE_TO_EXECUTE";

@ls
Gets files list from remote
@ls;

or
@ls path:"/path/to";

or
@ls path:"/path/to", pattern:"*.*";

@fget
Reads remote file and returns its content - via file_get_contents()
@fget path:"/path/to/file";

@fput
Writes remote file with defined content or uploads local file to remote - via file_put_contents()
@fput path:"/path/to/file", data:"data_to_save"

or
@fput path:"/path/to/file", source:"/path/to/localfile"

@fdel
Deletes remote file - via unlink()
@fdel path:"/path/to/file"

@mkdir
Creates directory on remote
@mkdir path:"/path/to"

@rmdir
Deletes (recursively) directory on remote
@rmdir path:"/path/to"

@destroy
Destroys (deletes) remote cluster(s)
@destroy confirm:"1";

@reset
Resets clusters registry on remote cluster(s)
@reset;

@zip_put
Send zip archive to remote cluster and unpacks it
@zip_put path:"/path/to/", file:"local.zip";

@zip_get
Packs files on remote cluster and gets them as zip archive
@zip_get path:"/path/to/", pattern:"*", file:"local.zip";
Full API Documentation is included in Skynet packages available on GitHub.