This is a good candidate for a custom module.
Here you can read about creating custom modules: http://docs.saltstack.com/ref/modules/index.html . Put your custom module in / srv / salt / _modules (default location) and then run
salt \* saltutil.sync_modules
Then your module will be available to launch your minions.
If your module is called "deploy" and the function is "mysite", your user command will look like this:
salt \* deploy.mysite
If you want to target a specific minion, it will look like this:
salt 'minion_name' deploy.mysite
source share