ninjaone-environment-variables
CommunityExpose NinjaOne env vars for script context
Authormatdew
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Access to NinjaOne agent environment variables is often required for context-aware automation, but scripts struggle to reliably read agent and organization data across platforms.
Core Features & Use Cases
- Read built-in environment variables such as NINJA_EXECUTING_PATH, NINJA_AGENT_VERSION_INSTALLED, NINJA_DATA_PATH, NINJA_AGENT_PASSWORD (not to be logged), NINJA_ORGANIZATION_NAME, and NINJA_AGENT_NODE_ID to tailor automation and improve observability.
- Works cross-platform (Windows, macOS, Linux) for consistent scripting in multi-tenant environments.
- Encourages best practices for security and logging by avoiding exposure of sensitive values and by using explicit variable reads.
Quick Start
Retrieve NinjaOne agent environment variables in your script to construct a device-context object.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: ninjaone-environment-variables Download link: https://github.com/matdew/NinjaOne-Scripts/archive/main.zip#ninjaone-environment-variables Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.