Introducing Developer Tools: Linting and CLI
Announcing the beta release of two new open-source data validations tools for developers: CLI and Linting. Learn how this new toolset can help you ensure proper event collection at run time and introduce instant data quality protection and feedback into your integrated development environments (IDE)
Using mParticle’s latest data quality enforcement capabilities, including Data Master, Smartype, and the Data Planning API, companies can create a cohesive data strategy and ensure there is truth throughout their pipeline, which benefits consumers of that data across the organization. For developers that means:
- Better data integrity and decreased pipeline maintenance costs.
- More complete customer profiles for more diverse consumption.
- Faster operationalization of existing models with full feedback loops.
Today, we have further enhanced these capabilities to include two new tools to help developers increase the quality and security of their code while reducing development time: Linting and the mParticle command-line interface (CLI), now available in beta.
Data quality starts with developers adhering to a data plan when coding. If developers are not given real-time feedback about the events they send to mParticle, then there will be back and forth between the product/marketing/data science teams to make sure data is clean when it first hits mParticle.
To address this problem we have developed tools to allow you to statically lint code against your data plan as you develop. This allows you to adhere to your company’s data plan and ensures that high-quality data is logged to your mParticle data workspace. Click here to learn more about Data Plans and Data Master.
Linting is supported for iOS, Android, and Web platforms and initially supports event names, event types, and custom event attributes, with support coming soon for user attributes and commerce events.
An example of our iOS and Android Linters:
Command-line interface (CLI)
mParticle CLI in beta gives developers the freedom to work from any operating system and enable UI-less interaction with various mParticle services and functions through simple terminal commands. At its core, the CLI exposes services in a manner that is consistent with mParticle’s REST APIs. Each command offers a unique set of subcommands, as well as arguments and flags. The CLI also provides universal command flags for global functions, such as --help or --outfile.
$ mp help mParticle Command Line Interface VERSION @mparticle/cli/1.0.3 darwin-x64 node-v10.15.3 USAGE $ mp [COMMAND] COMMANDS autocomplete display autocomplete installation instructions help display help for mp planning Manages Data Planning
You can perform the following advanced functions with the CLI today:
- Control Data Schema via Git
- Create/Read/Update/Delete Data Plans
- Enable and Control Outbound Connections
We will be adding support for more functionality in the future.
Latest from mParticle
Data quality: Build a high quality customer data pipeline to accelerate growth
Customer data quality is critical to making successful marketing and analytics decisions. Learn more about how you can protect data quality with mParticle during this comprehensive walkthrough of our data quality toolset.
Generic data infrastructure isn’t enough
Can your data stack keep up with the personalization, measurement, and customer support demands of your team? Download this free customer data infrastructure guide to learn how you can use a CDI to support scalable customer engagements across every touchpoint, channel, and device.
Should you build or buy a Customer Data Platform?
Customer Data Platforms are a critical piece of the modern data infrastructure. Learn what it takes to build a Customer Data Platform and how to determine whether building a solution or working with a leading vendor is the right path for your organization.
Introducing Block Data: Diagnose, quarantine, fix, and backfill bad data
Bad data leads to bad decisions, but most teams are unable to address their data quality problems proactively in real time. Today, we are excited to announce Block Data, a new early access feature that helps teams automatically identify and drop unplanned data before it’s forwarded downstream, review and quarantine suspected bad data for investigation, and replay quarantined data once it’s been inspected and modified.