Skip to content

Doing things in Salesforce Marketing Cloud can be cumbersome. This is a simple CLI that solves some pains such as finding object paths like Data Extensions or finding all queries with a certain string

License

Notifications You must be signed in to change notification settings

leugimmai/salesforce-marketing-cloud-cli

Repository files navigation

Salesforce Marketing Cloud CLI

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.

Table of Contents

Demo

Installation

Requirement: Python 3+

  1. git clone https://github.com/leugimmai/salesforce-marketing-cloud-cli.git
  2. cd salesforce-marketing-cloud-cli
  3. pip install -r requirements.txt
  4. pip install .

Configuration

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.jsonwith the account and automation name you want to check.

[
    {
        "account": "Account Name",
        "automations": ["An Automation", "Another Automation"]
    }
]

Usage

Run sfmc_cli in your terminal and make your selection.

About

Doing things in Salesforce Marketing Cloud can be cumbersome. This is a simple CLI that solves some pains such as finding object paths like Data Extensions or finding all queries with a certain string

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages