---
title: Command Configuration
---

Command routing and endpoint settings can be configured per command instance, but are usually configured once through the React `<Arc>` root component.

## Microservice Routing

Per command:

```typescript
command.setMicroservice('user-service');
```

Recommended global setup:

- Configure `microservice` on `<Arc>` so every command and query uses the same service routing strategy.
- See [Arc Configuration](/arc/frontend/react/arc/#microservice-support).

## API Base Path

Per command:

```typescript
command.setApiBasePath('/api/v1');
```

Recommended global setup:

- Configure `apiBasePath` on `<Arc>` for consistent routing across the application.
- See [Arc Configuration](/arc/frontend/react/arc/#configuration-options).

## See Also

- [Command Contracts](/arc/frontend/core/commands/contracts/)
- [Backend Integration](/arc/frontend/core/commands/integration/)
