Skip to main content

How to set a Namespace for a Temporal Client in TypeScript

Set the namespace field on the options object.

const connection = await Connection.connect();
// https://typescript.temporal.io/api/interfaces/client.WorkflowClientOptions
const client = new WorkflowClient({
connection,
namespace: 'your-custom-namespace',
});