README.md
changeset 238 d5d0260ead40
parent 213 3569475f86ec
child 239 605a00e9d1ab
equal deleted inserted replaced
237:ac5ce4c0e79b 238:d5d0260ead40
   120 ``` sh
   120 ``` sh
   121 % madonctl account update --display-name "John"  # Update display name
   121 % madonctl account update --display-name "John"  # Update display name
   122 % madonctl account update --note "Newcomer"      # Update user note (bio)
   122 % madonctl account update --note "Newcomer"      # Update user note (bio)
   123 % madonctl account update --note ""              # Clear note
   123 % madonctl account update --note ""              # Clear note
   124 % madonctl account update --avatar me.png        # Update avatar
   124 % madonctl account update --avatar me.png        # Update avatar
       
   125 
       
   126 % madonctl account update --bot               # Advertise account as automated
       
   127 % madonctl account update --default-sensitive # Set medias sensitive by default
       
   128 % madonctl account update --default-language fra    # Set default toot language
       
   129 % madonctl account update --default-privacy private # Set default toot privacy
   125 ```
   130 ```
   126 
   131 
   127 See your own **posts**:
   132 See your own **posts**:
   128 ``` sh
   133 ``` sh
   129 % madonctl account statuses                      # See last posts
   134 % madonctl account statuses                      # See last posts
   138 ```
   143 ```
   139 
   144 
   140 Add/remove a **favourite**, **boost** a status...
   145 Add/remove a **favourite**, **boost** a status...
   141 ``` sh
   146 ``` sh
   142 % madonctl status --status-id 416671 favourite    # Fave a status
   147 % madonctl status --status-id 416671 favourite    # Fave a status
   143 % madonctl status --status-id 416671 boost        # Boost a status
   148 % madonctl status --status-id 416671 boost        # Boost (reblog) a status
       
   149 
       
   150 % madonctl status --status-id 416671 unboost       # Cancel a boost
       
   151 % madonctl status --status-id 416671 boost --unset # Cancel a boost (deprecated)
   144 ```
   152 ```
   145 
   153 
   146 **Pin/unpin** a status...
   154 **Pin/unpin** a status...
   147 ``` sh
   155 ``` sh
   148 % madonctl status --status-id 533769 pin          # Pin a status
   156 % madonctl status --status-id 533769 pin          # Pin a status
   149 % madonctl status --status-id 533769 pin --unset  # Unpin a status
   157 % madonctl status --status-id 533769 unpin        # Unpin a status
       
   158 % madonctl status --status-id 533769 pin --unset  # Unpin a status (deprecated)
       
   159 ```
       
   160 
       
   161 **Pin/unpin** an account (i.e., account endorsement)...
       
   162 ``` sh
       
   163 % madonctl status --account-id 1234 pin           # Pin (endorse) an account
       
   164 % madonctl status --account-id 1234 unpin         # Unpin an account
       
   165 
       
   166 % madonctl status pin @Gargron@mastodon.social
   150 ```
   167 ```
   151 
   168 
   152 Search for an account (only accounts known to your instance):
   169 Search for an account (only accounts known to your instance):
   153 ``` sh
   170 ``` sh
   154 % madonctl accounts search gargron
   171 % madonctl accounts search gargron
   204 (and the Mastodon server will learn about the account).
   221 (and the Mastodon server will learn about the account).
   205 
   222 
   206 Read **timelines**:
   223 Read **timelines**:
   207 ``` sh
   224 ``` sh
   208 % madonctl timeline                 # Display home timeline
   225 % madonctl timeline                 # Display home timeline
       
   226 % madonctl timeline home            # (same as previous command)
   209 % madonctl timeline public          # Display federated timeline
   227 % madonctl timeline public          # Display federated timeline
   210 % madonctl timeline public --local  # Display public local timeline
   228 % madonctl timeline public --local  # Display public local timeline
       
   229 % madonctl timeline direct          # Display timeline of direct messages
   211 
   230 
   212 % madonctl timeline --limit 3       # Display 3 latest home timeline messages
   231 % madonctl timeline --limit 3       # Display 3 latest home timeline messages
   213 ```
   232 ```
   214 
   233 
   215 Use the **streaming API** and fetch timelines and notifications:
   234 Use the **streaming API** and fetch timelines and notifications:
   216 ``` sh
   235 ``` sh
   217 % madonctl stream                   # Stream home timeline and notifications
   236 % madonctl stream                   # Stream home timeline and notifications
   218 % madonctl stream local             # Stream local timeline
   237 % madonctl stream local             # Stream local timeline
   219 % madonctl stream public            # Stream federated timeline
   238 % madonctl stream public            # Stream federated timeline
       
   239 % madonctl stream direct            # Stream direct messages
   220 ```
   240 ```
   221 
   241 
   222 You can also use **hashtag streams**:
   242 You can also use **hashtag streams**:
   223 ``` sh
   243 ``` sh
   224 % madonctl stream :mastodon         # Stream for hastag 'mastodon'
   244 % madonctl stream :mastodon         # Stream for hastag 'mastodon'