Runtime environment variables
Reference documentation on all environment variables automatically set by Airplane
When a run executes—both locally in Studio and remotely in Airplane—the
following environment variables are automatically set:
Variable Name | Description |
---|---|
AIRPLANE_ENV_ID | ID of the environment this run was executed in. Set to studio for Studio runs. |
AIRPLANE_ENV_IS_DEFAULT | Whether the run was executed in the default environment. Set to "true" for Studio runs. |
AIRPLANE_ENV_SLUG | Slug of the environment this run was executed in. Set to studio for Studio runs. |
AIRPLANE_ENV_NAME | Name of the environment this run was executed in. Set to studio for Studio runs. |
AIRPLANE_REQUESTER_EMAIL | Email of the user who requested the run. |
AIRPLANE_REQUESTER_ID | ID of the user who requested the run. |
AIRPLANE_REQUESTER_NAME | Name of the user who requested the run. |
AIRPLANE_RUN_ID | ID of the run. |
AIRPLANE_RUN_URL | URL that links to this run's page in the Airplane app. |
AIRPLANE_RUNNER_EMAIL | Email of the user who executed the run. If this run was requested, it is the user who executed the run, not the requester. |
AIRPLANE_RUNNER_ID | ID of the user who executed the run. If this run was requested, it is the user who executed the run, not the requester. |
AIRPLANE_RUNNER_NAME | Name of the user who executed the run. If this run was requested, it is the user who executed the run, not the requester. |
AIRPLANE_RUNTIME | Runtime this run was executed in. |
AIRPLANE_PARENT_RUN_ID | ID of the run that executed this run, if any. |
AIRPLANE_SESSION_ID | ID of the runbook session that the run was executed from, if any. |
AIRPLANE_TASK_ID | ID of the task the run belongs to. |
AIRPLANE_TASK_NAME | Name of the task the run belongs to. |
AIRPLANE_TASK_SLUG | Slug of the task the run belongs to. |
AIRPLANE_TASK_URL | URL that links to the task page the run belongs to in the Airplane app. |
AIRPLANE_TASK_REVISION_ID | ID that identifies the specific version of the task the run belongs to. |
AIRPLANE_TEAM_ID | ID of the team this run belongs to. |
AIRPLANE_TRIGGER_ID | ID of the trigger that started the run. |