New CLI command to call any DatoCMS API method directly
You can now run any DatoCMS API method straight from our CLI with the new cma:call command. No need to write custom scripts anymore, just call the method you need directly from your terminal.
The command dynamically discovers all available resources and methods from @datocms/cma-client, so you're always working with the latest API surface.
Key features:
Dynamic discovery: All resources and methods are automatically available
Smart validation: Validates request body requirements and prompts for
--datawhen neededFlexible parameters: Supports URL placeholders via positional arguments and query parameters via
--paramsHelpful errors: Clear error messages with suggestions when something goes wrong
Perfect for quick API calls, testing, automation scripts, or when you just need to run a one-off command without spinning up a full script!