Skip to content

Cratis Arc framework-independent commands

Cratis Arc core commands let TypeScript and JavaScript clients submit state-changing operations and inspect their results without React hooks. A generated command proxy is a client class for a backend endpoint: populate its properties, call execute(), and use the returned CommandResult to decide what to show next.

Use this section when you manage command instances and feedback yourself. The command contracts, validation, and HTTP runtime live in @cratis/arc; React Commands adds hooks for React components.

When you need to What to look for Read
Work with a command instance ICommand, route metadata, execution, and change tracking Command Contracts
Send requests to the right backend Microservice routing, API base path, and global Arc configuration Configuration
Show feedback after submission Client-side validation, CommandResult, and failure handling Validation and results
Generate clients from backend endpoints Controller-based and model-bound command mapping Backend Integration

For the returned fields and callbacks, use Command Result. To check input before submission, follow Command validation; the validation overview explains the rules and feedback model. If you still need an endpoint to call, start with Backend Commands.