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
Introducing mParticle Linting
mParticle Linting enables you to statistically analyze code against your data plan as you develop, making it easier to adhere to your company’s data plan and ensures that high-quality data is logged to your mParticle data workspace.
Introducing Data Planning API and CLI
With mParticle's Data Planning API and CLI, developers have the freedom to work from any operating system and enable interaction with various mParticle services through simple terminal commands, making it easier to ensure proper event collection at run time.
Smartype: Proper event collection at run time
Smartype, a data quality product that translates any data model into type-safe code to help developers ensure proper event collection at run time. Smartype generates personalized SDKs, based on any data model, providing automated code completion and improving data collection and quality at scale. Now available in beta.