<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Commands on BMC</title><link>https://bmc.technative.cloud/commands/</link><description>Recent content in Commands on BMC</description><generator>Hugo</generator><language>en</language><atom:link href="https://bmc.technative.cloud/commands/index.xml" rel="self" type="application/rss+xml"/><item><title>profsel</title><link>https://bmc.technative.cloud/commands/profsel/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://bmc.technative.cloud/commands/profsel/</guid><description>&lt;p>&lt;code>bmc profsel&lt;/code> interactively selects an AWS profile and exports it as &lt;code>AWS_PROFILE&lt;/code> in your current shell.&lt;/p>
&lt;h2 id="usage" class="relative group">Usage &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100">&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#usage" aria-label="Anchor">#&lt;/a>&lt;/span>&lt;/h2>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>bmc profsel &lt;span style="color:#75715e"># Interactive profile selection&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>bmc profsel -p myprofile &lt;span style="color:#75715e"># Pre-select a profile by name&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>bmc profsel -l &lt;span style="color:#75715e"># List all profiles in tabular format&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>bmc profsel --json &lt;span style="color:#75715e"># Output selected profile as JSON&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="shell-integration-required" class="relative group">Shell integration required &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100">&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#shell-integration-required" aria-label="Anchor">#&lt;/a>&lt;/span>&lt;/h2>&lt;p>&lt;code>bmc profsel&lt;/code> must be invoked through the shell wrapper for &lt;code>AWS_PROFILE&lt;/code> to be set in your current shell. Install it once with:&lt;/p></description></item><item><title>console</title><link>https://bmc.technative.cloud/commands/console/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://bmc.technative.cloud/commands/console/</guid><description>&lt;p>&lt;code>bmc console&lt;/code> opens the AWS Management Console in your browser for the current or selected AWS profile.&lt;/p>
&lt;h2 id="usage" class="relative group">Usage &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100">&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#usage" aria-label="Anchor">#&lt;/a>&lt;/span>&lt;/h2>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>bmc console &lt;span style="color:#75715e"># Open console for current profile (AWS_PROFILE)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>bmc console -p myprofile &lt;span style="color:#75715e"># Open console for a specific profile&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>bmc console -p &lt;span style="color:#75715e"># Force interactive profile selection&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>bmc console -s ec2 &lt;span style="color:#75715e"># Open console at a specific service URL&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="browser-options" class="relative group">Browser options &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100">&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#browser-options" aria-label="Anchor">#&lt;/a>&lt;/span>&lt;/h2>&lt;h3 id="firefox-containers-with-granted-recommended" class="relative group">Firefox containers with Granted (recommended) &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100">&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#firefox-containers-with-granted-recommended" aria-label="Anchor">#&lt;/a>&lt;/span>&lt;/h3>&lt;p>The &lt;a href="https://addons.mozilla.org/en-US/firefox/addon/granted/" target="_blank" rel="noreferrer">Granted&lt;/a> Firefox extension enables container tabs — each AWS profile opens in its own isolated container with separate cookies and sessions.&lt;/p></description></item><item><title>ec2</title><link>https://bmc.technative.cloud/commands/ec2/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://bmc.technative.cloud/commands/ec2/</guid><description>&lt;p>&lt;code>bmc ec2&lt;/code> is the unified entry point for EC2 operations. Pick an instance once and choose an action from a menu — no need to repeat instance selection across separate commands.&lt;/p>
&lt;h2 id="usage" class="relative group">Usage &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100">&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#usage" aria-label="Anchor">#&lt;/a>&lt;/span>&lt;/h2>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>bmc ec2 &lt;span style="color:#75715e"># Interactive instance picker → action menu&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>bmc ec2 nginx &lt;span style="color:#75715e"># Filter instances by name/ID/IP first&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>bmc ec2 i-0abc123 &lt;span style="color:#75715e"># Single match skips the picker&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>The optional search argument filters instances by a case-insensitive substring match on instance name, ID, private IP, or public IP.&lt;/p></description></item><item><title>ec2ls</title><link>https://bmc.technative.cloud/commands/ec2ls/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://bmc.technative.cloud/commands/ec2ls/</guid><description>&lt;p>&lt;code>bmc ec2ls&lt;/code> lists all EC2 instances in the current AWS profile.&lt;/p>
&lt;h2 id="usage" class="relative group">Usage &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100">&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#usage" aria-label="Anchor">#&lt;/a>&lt;/span>&lt;/h2>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>bmc ec2ls &lt;span style="color:#75715e"># Display as interactive table&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>bmc ec2ls --json &lt;span style="color:#75715e"># Output as JSON array&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="table-output" class="relative group">Table output &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100">&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#table-output" aria-label="Anchor">#&lt;/a>&lt;/span>&lt;/h2>&lt;p>The table columns are configurable via &lt;code>ec2.columns&lt;/code> in &lt;code>~/.config/bmc/config.json&lt;/code>. See 
 
 &lt;a href="https://bmc.technative.cloud/setup/configuration/#ec2-columns">Configuration&lt;/a>.&lt;/p>
&lt;h2 id="json-output" class="relative group">JSON output &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100">&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#json-output" aria-label="Anchor">#&lt;/a>&lt;/span>&lt;/h2>&lt;p>&lt;code>--json&lt;/code> outputs all instances as a JSON array with AWS PascalCase keys, ignoring the &lt;code>columns&lt;/code> config:&lt;/p></description></item><item><title>ec2connect</title><link>https://bmc.technative.cloud/commands/ec2connect/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://bmc.technative.cloud/commands/ec2connect/</guid><description>&lt;p>&lt;code>bmc ec2connect&lt;/code> connects to a running EC2 instance via SSH or AWS SSM Session Manager.&lt;/p>
&lt;h2 id="usage" class="relative group">Usage &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100">&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#usage" aria-label="Anchor">#&lt;/a>&lt;/span>&lt;/h2>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>bmc ec2connect &lt;span style="color:#75715e"># Interactive instance picker&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>bmc ec2connect nginx &lt;span style="color:#75715e"># Filter instances by name/ID/IP first&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>bmc ec2connect -i i-0abc123 &lt;span style="color:#75715e"># Connect to a specific instance ID&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>bmc ec2connect -u ubuntu &lt;span style="color:#75715e"># SSH as a specific user (skips method picker)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="connection-methods" class="relative group">Connection methods &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100">&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#connection-methods" aria-label="Anchor">#&lt;/a>&lt;/span>&lt;/h2>&lt;h3 id="ssh" class="relative group">SSH &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100">&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#ssh" aria-label="Anchor">#&lt;/a>&lt;/span>&lt;/h3>&lt;p>Requires &lt;code>ssh&lt;/code> on your PATH. BMC prompts for the SSH user (root, ubuntu, ec2-user, or custom) unless &lt;code>-u&lt;/code> is specified.&lt;/p></description></item><item><title>ec2find</title><link>https://bmc.technative.cloud/commands/ec2find/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://bmc.technative.cloud/commands/ec2find/</guid><description>&lt;p>&lt;code>bmc ec2find&lt;/code> searches for EC2 instances across all AWS profiles in an account group simultaneously.&lt;/p>
&lt;h2 id="usage" class="relative group">Usage &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100">&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#usage" aria-label="Anchor">#&lt;/a>&lt;/span>&lt;/h2>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>bmc ec2find nginx &lt;span style="color:#75715e"># Search across profiles (select group interactively)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>bmc ec2find nginx --json &lt;span style="color:#75715e"># Same search, output as JSON array&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="how-it-works" class="relative group">How it works &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100">&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#how-it-works" aria-label="Anchor">#&lt;/a>&lt;/span>&lt;/h2>&lt;ol>
&lt;li>You select an AWS account group from an interactive picker&lt;/li>
&lt;li>BMC queries all profiles in that group in parallel&lt;/li>
&lt;li>Results matching your search string are shown&lt;/li>
&lt;/ol>
&lt;p>The search is a case-insensitive substring match on: instance ID, name, private IP, public IP, and profile name.&lt;/p></description></item><item><title>ec2stopstart</title><link>https://bmc.technative.cloud/commands/ec2stopstart/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://bmc.technative.cloud/commands/ec2stopstart/</guid><description>&lt;p>&lt;code>bmc ec2stopstart&lt;/code> stops or starts an EC2 instance interactively.&lt;/p>
&lt;h2 id="usage" class="relative group">Usage &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100">&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#usage" aria-label="Anchor">#&lt;/a>&lt;/span>&lt;/h2>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>bmc ec2stopstart &lt;span style="color:#75715e"># Pick instance → stop or start&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>BMC shows the current state of the selected instance and offers the appropriate action (Stop or Start). For hibernate-enabled instances, Stop also offers a hibernate option.&lt;/p>
&lt;h2 id="stopping-with-hibernate" class="relative group">Stopping with hibernate &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100">&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#stopping-with-hibernate" aria-label="Anchor">#&lt;/a>&lt;/span>&lt;/h2>&lt;p>If an instance has hibernation configured (&lt;code>Hibernate: yes&lt;/code> in &lt;code>ec2ls&lt;/code>), BMC will ask whether to hibernate instead of a cold stop. Hibernation saves RAM to disk and resumes faster.&lt;/p></description></item><item><title>ec2scheduler</title><link>https://bmc.technative.cloud/commands/ec2scheduler/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://bmc.technative.cloud/commands/ec2scheduler/</guid><description>&lt;p>&lt;code>bmc ec2scheduler&lt;/code> enables or disables the AWS Instance Scheduler tag on an EC2 instance.&lt;/p>
&lt;h2 id="usage" class="relative group">Usage &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100">&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#usage" aria-label="Anchor">#&lt;/a>&lt;/span>&lt;/h2>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>bmc ec2scheduler &lt;span style="color:#75715e"># Pick instance → enable or disable scheduler&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="what-it-does" class="relative group">What it does &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100">&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#what-it-does" aria-label="Anchor">#&lt;/a>&lt;/span>&lt;/h2>&lt;p>The command adds or removes the &lt;code>InstanceScheduler&lt;/code> tag on the selected instance. AWS Instance Scheduler uses this tag to automatically start and stop instances on a configured schedule — useful for saving costs on non-production environments.&lt;/p></description></item><item><title>ecsconnect</title><link>https://bmc.technative.cloud/commands/ecsconnect/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://bmc.technative.cloud/commands/ecsconnect/</guid><description>&lt;p>&lt;code>bmc ecsconnect&lt;/code> opens an interactive shell into a running ECS container.&lt;/p>
&lt;h2 id="usage" class="relative group">Usage &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100">&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#usage" aria-label="Anchor">#&lt;/a>&lt;/span>&lt;/h2>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>bmc ecsconnect &lt;span style="color:#75715e"># Interactive: pick cluster → service → task → container&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>The command walks you through selecting:&lt;/p>
&lt;ol>
&lt;li>ECS cluster&lt;/li>
&lt;li>Service&lt;/li>
&lt;li>Task&lt;/li>
&lt;li>Container&lt;/li>
&lt;/ol>
&lt;p>Then launches an interactive shell via AWS SSM.&lt;/p>
&lt;h2 id="prerequisites" class="relative group">Prerequisites &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100">&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#prerequisites" aria-label="Anchor">#&lt;/a>&lt;/span>&lt;/h2>&lt;ul>
&lt;li>&lt;code>aws&lt;/code> CLI v2&lt;/li>
&lt;li>&lt;code>session-manager-plugin&lt;/code>&lt;/li>
&lt;/ul>
&lt;p>Check with:&lt;/p></description></item></channel></rss>