1 import { Table } from "docs-ui"
2
3 export const metadata = {
4 title: `logout Command - Medusa Cloud CLI Reference`,
5 }
6
7 # {metadata.title}
8
9 Remove your stored Cloud credentials from the local machine, effectively logging you out of the Cloud CLI.
10
11 ```bash
12 mcloud logout
13 ```
14
15 After running this command, all subsequent CLI commands that require
16 authentication will fail until you run `mcloud login` again.
17
18 Use `mcloud logout` when you want to switch accounts, revoke local access on a
19 shared machine, or clean up credentials at the end of a CI job.
20
21 ## Options
22
23 <Table>
24 <Table.Header>
25 <Table.Row>
26 <Table.HeaderCell>
27 Option
28 </Table.HeaderCell>
29 <Table.HeaderCell>
30 Description
31 </Table.HeaderCell>
32 <Table.HeaderCell>
33 Default
34 </Table.HeaderCell>
35 </Table.Row>
36 </Table.Header>
37 <Table.Body>
38 <Table.Row>
39 <Table.Cell>
40
41 `--json`
42
43 </Table.Cell>
44 <Table.Cell>
45
46 Print the result as JSON instead of formatted text.
47
48 </Table.Cell>
49 <Table.Cell>
50
51 `false`
52
53 </Table.Cell>
54 </Table.Row>
55 </Table.Body>
56 </Table>