# New CLI command to call any DatoCMS API method directly

[date: 2025-12-04T13:15:51.585+01:00]

You can now run any DatoCMS API method straight from [our CLI](https://www.datocms.com/docs/cli.md) 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.

(Video content)

**Key features:**

-   **Dynamic discovery:** All resources and methods are automatically available
-   **Smart validation:** Validates request body requirements and prompts for `--data` when needed
    
-   **Flexible parameters:** Supports URL placeholders via positional arguments and query parameters via `--params`
-   **Helpful 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!