<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Account on tgs</title><link>https://garenal1v3.github.io/tgs-cli/reference/commands/account/</link><description>Recent content in Account on tgs</description><generator>Hugo</generator><language>en</language><atom:link href="https://garenal1v3.github.io/tgs-cli/reference/commands/account/index.xml" rel="self" type="application/rss+xml"/><item><title>tgs profile</title><link>https://garenal1v3.github.io/tgs-cli/reference/commands/account/profile/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://garenal1v3.github.io/tgs-cli/reference/commands/account/profile/</guid><description>&lt;h1 id="tgs-profile"&gt;tgs profile&lt;a class="anchor" href="#tgs-profile"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Manage account profiles.&lt;/p&gt;
&lt;h2 id="synopsis"&gt;Synopsis&lt;a class="anchor" href="#synopsis"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;tgs profile &amp;lt;subcommand&amp;gt; [flags]&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="subcommands"&gt;Subcommands&lt;a class="anchor" href="#subcommands"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;h3 id="tgs-profile-list"&gt;tgs profile list&lt;a class="anchor" href="#tgs-profile-list"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;List all profiles with their associated account information.&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;tgs profile list [flags]&lt;/code&gt;&lt;/pre&gt;&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;Flag&lt;/th&gt;
 &lt;th&gt;Short&lt;/th&gt;
 &lt;th&gt;Default&lt;/th&gt;
 &lt;th&gt;Description&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;--output&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;-o&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;json&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;Output format: &lt;code&gt;json&lt;/code&gt;, &lt;code&gt;text&lt;/code&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#abb2bf;background-color:#282c34;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;tgs profile list
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;tgs profile list --output text&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;pre tabindex="0"&gt;&lt;code&gt;* default (@myuser)
 work (@workuser)&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;JSON (default):&lt;/strong&gt;&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#abb2bf;background-color:#282c34;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-json" data-lang="json"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;[
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; {&lt;span style="color:#e06c75"&gt;&amp;#34;name&amp;#34;&lt;/span&gt;:&lt;span style="color:#98c379"&gt;&amp;#34;default&amp;#34;&lt;/span&gt;,&lt;span style="color:#e06c75"&gt;&amp;#34;phone&amp;#34;&lt;/span&gt;:&lt;span style="color:#98c379"&gt;&amp;#34;+79001234567&amp;#34;&lt;/span&gt;,&lt;span style="color:#e06c75"&gt;&amp;#34;username&amp;#34;&lt;/span&gt;:&lt;span style="color:#98c379"&gt;&amp;#34;alice&amp;#34;&lt;/span&gt;,&lt;span style="color:#e06c75"&gt;&amp;#34;id&amp;#34;&lt;/span&gt;:&lt;span style="color:#d19a66"&gt;261054642&lt;/span&gt;,&lt;span style="color:#e06c75"&gt;&amp;#34;active&amp;#34;&lt;/span&gt;:&lt;span style="color:#e5c07b"&gt;true&lt;/span&gt;},
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; {&lt;span style="color:#e06c75"&gt;&amp;#34;name&amp;#34;&lt;/span&gt;:&lt;span style="color:#98c379"&gt;&amp;#34;work&amp;#34;&lt;/span&gt;,&lt;span style="color:#e06c75"&gt;&amp;#34;phone&amp;#34;&lt;/span&gt;:&lt;span style="color:#98c379"&gt;&amp;#34;+79001230000&amp;#34;&lt;/span&gt;,&lt;span style="color:#e06c75"&gt;&amp;#34;username&amp;#34;&lt;/span&gt;:&lt;span style="color:#98c379"&gt;&amp;#34;alice_work&amp;#34;&lt;/span&gt;,&lt;span style="color:#e06c75"&gt;&amp;#34;id&amp;#34;&lt;/span&gt;:&lt;span style="color:#d19a66"&gt;342178890&lt;/span&gt;,&lt;span style="color:#e06c75"&gt;&amp;#34;active&amp;#34;&lt;/span&gt;:&lt;span style="color:#e5c07b"&gt;false&lt;/span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;strong&gt;Text (&lt;code&gt;--output text&lt;/code&gt;):&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;* default (@alice)
 work (@alice_work)&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The active profile is marked with &lt;code&gt;*&lt;/code&gt; in text mode, and &lt;code&gt;&amp;quot;active&amp;quot;: true&lt;/code&gt; in JSON. If neither username nor phone is cached, the profile name alone is shown.&lt;/p&gt;</description></item><item><title>tgs whoami</title><link>https://garenal1v3.github.io/tgs-cli/reference/commands/account/whoami/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://garenal1v3.github.io/tgs-cli/reference/commands/account/whoami/</guid><description>&lt;h1 id="tgs-whoami"&gt;tgs whoami&lt;a class="anchor" href="#tgs-whoami"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Show the current profile name and account information. Reads from local storage — no Telegram connection required.&lt;/p&gt;
&lt;h2 id="synopsis"&gt;Synopsis&lt;a class="anchor" href="#synopsis"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;tgs whoami [flags]&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="flags"&gt;Flags&lt;a class="anchor" href="#flags"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;Flag&lt;/th&gt;
 &lt;th&gt;Short&lt;/th&gt;
 &lt;th&gt;Default&lt;/th&gt;
 &lt;th&gt;Description&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;--profile&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;-p&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;(resolved)&lt;/td&gt;
 &lt;td&gt;Profile to inspect&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;--output&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;-o&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;json&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;Output format: &lt;code&gt;json&lt;/code&gt;, &lt;code&gt;text&lt;/code&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Profile resolution order when &lt;code&gt;--profile&lt;/code&gt; is not set: &lt;code&gt;TGS_PROFILE&lt;/code&gt; env → &lt;code&gt;.tgs.yaml&lt;/code&gt; file → &lt;code&gt;&amp;quot;default&amp;quot;&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="examples"&gt;Examples&lt;a class="anchor" href="#examples"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#abb2bf;background-color:#282c34;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#7f848e"&gt;# Show current profile (JSON output)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;tgs whoami
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#7f848e"&gt;# Human-readable output&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;tgs whoami --output text
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#7f848e"&gt;# Inspect a specific profile&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;tgs whoami --profile work
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#7f848e"&gt;# Inspect a profile with text output&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;tgs whoami --profile work --output text&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id="output"&gt;Output&lt;a class="anchor" href="#output"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Text output (&lt;code&gt;--output text&lt;/code&gt;):&lt;/strong&gt;&lt;/p&gt;</description></item></channel></rss>