environment

Read and edit Railway environment configurations via CLI commands.

303|36|Updated Jan 4, 2026
One-click install
npx skills add https://github.com/railwayapp/railway-skills --skill environment-railwayapp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: environment
Source: https://github.com/railwayapp/railway-skills/tree/main/plugins/railway/skills/environment
Command: npx skills add https://github.com/railwayapp/railway-skills --skill environment-railwayapp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Read and edit Railway environment configurations from the CLI, reducing the effort required to view and update project settings.

Core Features & Use Cases

  • View current environment configuration for all services and shared variables
  • Add, update, or delete per-service and shared environment variables
  • Modify build/deploy settings, replicas, and repository connections

Quick Start

Use railway environment config --json to view settings and railway environment edit --json to apply changes.

Frequently Asked Questions about environment

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I view Railway environment variables and configuration from the CLI?

You can view Railway environment variables and configuration by running the railway environment config --json command. This fetches current settings for all services and shared variables in your environment.

How do I update environment variables for a specific Railway service?

To update Railway environment variables, use the railway environment edit --json command. This allows you to add, update, or delete per-service and shared environment variables directly.

Can I modify build and deploy settings for Railway services through the CLI?

Yes, you can modify Railway build and deploy settings through the CLI. The environment edit command supports adjusting build configurations, deploy settings, replicas, and repository connections.

What is the best way to manage shared environment variables across multiple Railway services?

The best way to manage shared Railway environment variables is using the railway environment edit command. It allows you to apply changes to shared variables that affect all services in your environment configuration.

Does the Railway environment CLI command support linking environments and deleting services?

Yes, the Railway environment commands support linking environments and deleting services. You can use railway environment edit and status commands to manage these actions for your project configuration.

Why use the CLI to edit Railway environment config instead of the dashboard?

Using the CLI to edit Railway environment config reduces the effort required to view and update project settings. It allows you to fetch configurations in JSON format and apply changes programmatically without navigating the dashboard.