README.md
changeset 213 3569475f86ec
parent 212 3dbe496343fe
child 238 d5d0260ead40
equal deleted inserted replaced
212:3dbe496343fe 213:3569475f86ec
   161 
   161 
   162 Follow a remote account:
   162 Follow a remote account:
   163 ``` sh
   163 ``` sh
   164 % madonctl account follow --remote Gargron@mastodon.social
   164 % madonctl account follow --remote Gargron@mastodon.social
   165 ```
   165 ```
       
   166 
       
   167 madonctl 2.3.0+ is able to recognize the kind of argument to specify and to
       
   168 use the relevant API calls, so the previous commands could be written as:
       
   169 ``` sh
       
   170 % madonctl account follow 1234
       
   171 % madonctl account follow Gargron@mastodon.social
       
   172 % madonctl account follow https://mastodon.social/@Gargron
       
   173 ```
       
   174 
       
   175 Note: If you know the numeric account ID, you should use it to save extra API
       
   176 calls.
   166 
   177 
   167 **Search** for accounts, statuses or hashtags:
   178 **Search** for accounts, statuses or hashtags:
   168 ``` sh
   179 ``` sh
   169 % madonctl search gargron
   180 % madonctl search gargron
   170 % madonctl search mastodon
   181 % madonctl search mastodon
   178 also contain an HTTP account URL.
   189 also contain an HTTP account URL.
   179 ``` sh
   190 ``` sh
   180 % madonctl account --user-id Gargron@mastodon.social -l5 statuses # Last 5 statuses
   191 % madonctl account --user-id Gargron@mastodon.social -l5 statuses # Last 5 statuses
   181 % madonctl account --user-id https://mastodon.social/@Gargron -l5 statuses # Same
   192 % madonctl account --user-id https://mastodon.social/@Gargron -l5 statuses # Same
   182 ```
   193 ```
       
   194 
       
   195 With madonctl 2.3.0+, you can use the shorter forms:
       
   196 ``` sh
       
   197 % madonctl account statuses -l5 Gargron@mastodon.social
       
   198 % madonctl account statuses -l5 https://mastodon.social/@Gargron
       
   199 % madonctl account statuses -l5 1   # (account ID)
       
   200 ```
       
   201 
   183 Please note that the form "Gargron@mastodon.social" will only work if this
   202 Please note that the form "Gargron@mastodon.social" will only work if this
   184 account is known by the instance.  If it is unknown, the https link should work
   203 account is known by the instance.  If it is unknown, the https link should work
   185 (and the Mastodon server will learn about the account).
   204 (and the Mastodon server will learn about the account).
   186 
   205 
   187 Read **timelines**:
   206 Read **timelines**: