<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>horihiro</author_name>
  <author_url>https://blog.hatena.ne.jp/horihiro/</author_url>
  <blog_title>ほりひログ</blog_title>
  <blog_url>https://uncaughtexception.hatenablog.com/</blog_url>
  <categories>
    <anon>くだらぬもの</anon>
    <anon>runx</anon>
    <anon>shellscript</anon>
    <anon>go</anon>
  </categories>
  <description>はじめに ディレクトリごとに使う環境変数を切り替えたい場面は、クラウド運用やアプリ開発で頻出する。特に Azure CLI のように、同じコマンドで複数プロファイルを使い分けるケースでは、毎回 export したり、実行オプションを長く書いたりする手間が積み重なりやすい。 このエントリでは、runx が解決する課題、開発の背景、動作の仕組みを短く整理し、Azure CLI の具体例で使い方をまとめる。 結論 runx は、いつものコマンド名のまま、実行時に env ファイルを解決して環境変数を注入できるコマンドプロキシマネージャ。 runx add を一度実行すれば、以後は通常どおり az や…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Funcaughtexception.hatenablog.com%2Fentry%2F2026%2F04%2F13%2F154142&quot; title=&quot;.envを自動解決してCLIを実行するコマンドプロキシ runx - ほりひログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-04-13 15:41:42</published>
  <title>.envを自動解決してCLIを実行するコマンドプロキシ runx</title>
  <type>rich</type>
  <url>https://uncaughtexception.hatenablog.com/entry/2026/04/13/154142</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
