| name | maintainx-multi-env-setup |
| description | Configure multiple MaintainX environments (dev, staging, production).
Use when setting up environment-specific configurations,
managing multiple MaintainX accounts, or implementing environment promotion.
Trigger with phrases like "maintainx environments", "maintainx staging",
"maintainx dev prod", "maintainx multi-environment", "maintainx config".
|
| allowed-tools | Read, Write, Edit, Bash(npm:*) |
| version | 1.11.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","maintainx","maintainx-multi"] |
| compatibility | Designed for Claude Code, also compatible with Codex and OpenClaw |
MaintainX Multi-Environment Setup
Overview
Configure and manage multiple MaintainX environments for development, staging, and production with proper secret management and client isolation.
Prerequisites
- Separate MaintainX accounts or organizations for each environment
- Secret management solution (environment variables, GCP Secret Manager, or AWS SSM)
- Node.js 18+
Instructions
Step 1: Environment Configuration
interface MaintainXEnvConfig {
apiKey: string;
orgId?: string;
baseUrl: string;
label: string;
rateLimit: { requestsPerSecond: number };
}
type Environment = 'development' | 'staging' | 'production';
function getConfig(env: Environment): MaintainXEnvConfig {
const configs: Record<Environment, () => MaintainXEnvConfig> = {
development: () => ({
apiKey: process.env.MAINTAINX_API_KEY_DEV!,
orgId: process.env.MAINTAINX_ORG_ID_DEV,
baseUrl: 'https://api.getmaintainx.com/v1',
label: ,
: { : },
}),
: ({
: process..!,
: process..,
: ,
: ,
: { : },
}),
: ({
: process..!,
: process..,
: ,
: ,
: { : },
}),
};
config = configs[env]();
(!config.) {
();
}
config;
}
currentEnv = (process.. || ) ;
config = (currentEnv);