A CLI application built with python that interfaces with Salesforce Marketing Cloud (SFMC). Built this to help me achieve simple tasks that are just not that easily feasible in SFMC. Such as looking up an Data Extensions path, or making sure that certain automations have ran in the last 24 hours.
Requirement: Python 3+
git clone https://github.com/leugimmai/salesforce-marketing-cloud-cli.git
cd salesforce-marketing-cloud-cli
pip install -r requirements.txt
pip install .
You will need this file: ~/sfmc_cli_credentials.json
. Containing an array of Accounts and there credentials.
[{
"name": "Account Name",
"client_id": "",
"client_secret": ""
}]
To check any automations you will need this file ~/sfmc_cli_automations_to_check.json
with the account and automation name you want to check.
[
{
"account": "Account Name",
"automations": ["An Automation", "Another Automation"]
}
]
Run sfmc_cli
in your terminal and make your selection.