Skip to content

Worker Profiles

Worker profiles define how chant run connects to a Temporal server. They are stored in chant.config.ts under the temporal.profiles key.

import type { TemporalChantConfig } from "@intentius/chant-lexicon-temporal";
export default {
lexicons: ["temporal"],
temporal: {
profiles: {
local: {
address: "localhost:7233",
namespace: "default",
taskQueue: "my-deploy",
autoStart: true,
},
cloud: {
address: "myns.a2dd6.tmprl.cloud:7233",
namespace: "myns.a2dd6",
taskQueue: "my-deploy",
tls: true,
apiKey: { env: "TEMPORAL_API_KEY" },
},
},
defaultProfile: "local",
} satisfies TemporalChantConfig,
};
FieldTypeDescription
addressstringgRPC address, e.g. "localhost:7233"
namespacestringTemporal namespace
taskQueuestringTask queue the worker polls
tlsboolean | { serverNameOverride? }TLS config (use true for Temporal Cloud)
apiKeystring | { env: string }API key (Temporal Cloud)
autoStartbooleanAuto-start temporal server start-dev (local only)
// Inline (not recommended for production)
apiKey: "my-secret-key"
// From environment variable (recommended)
apiKey: { env: "TEMPORAL_API_KEY" }
Terminal window
# Use defaultProfile
chant run alb-deploy
# Override profile
chant run alb-deploy --profile cloud

If no profile is specified, chant run also respects:

  • TEMPORAL_ADDRESS
  • TEMPORAL_NAMESPACE
  • TEMPORAL_API_KEY

These match the convention used in the temporal-crdb-deploy example.