JumpCloud Command Variables allows admins to define, manage, and reuse configuration variables that can be referenced in JumpCloud Commands. Admins can use platform variables to automatically populate with contextual data or define custom variables that can be reused across multiple Commands and systems.
Key Benefits
- Enhanced Security: Store sensitive values like API keys and tokens as secure variables instead of embedding them directly in scripts.
- Device-Aware Execution: Automatically insert platform variables (e.g., device hostname, OS) so commands adapt to each device at runtime.
- Easier Customization: Use non-secret variables (e.g., environment, region, software name) to customize behavior without editing the script.
- Reduced Human Error: Eliminate copy-paste mistakes and manual updates caused by hardcoded values.
Prerequisites
- JumpCloud Admin Access: You must have JumpCloud Admin permissions.
Variable Types
Platform Variables - These are automatically populated placeholders that pull real-time contextual data (such as device hostnames, serial numbers, and OS versions).
Custom Variables - These are manually defined parameters created by admins to securely store reusable values for use locally or across Commands.
You can create and manage variables from Settings > Automation Variables that will be available across JumpCloud platform (currently only Commands). See Manage Variables to learn more.
You can also create variables from the Commands page. See Create a Command to learn more.