logout Command - Medusa Cloud CLI Reference

Remove your stored Cloud credentials from the local machine, effectively logging you out of the Cloud CLI.

Terminal
mcloud logout

After running this command, all subsequent CLI commands that require authentication will fail until you run mcloud login again.

Use mcloud logout when you want to switch accounts, revoke local access on a shared machine, or clean up credentials at the end of a CI job.

Options#

OptionDescriptionDefault

--json

Print the result as JSON instead of formatted text.

false

Was this guide helpful?
Ask Bloom
For assistance in your development, use Claude Code Plugins or Medusa MCP server in Cursor, VSCode, etc...FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break