p0 logout

Overview

The p0 logout command removes all P0 CLI credentials, configuration files, and cached data from your local environment. This helps ensure that no sensitive information remains after you are finished using the CLI.

When you run p0 logout, the CLI will:

  • Delete your saved identity file (authentication token)

  • Remove all locally stored P0 configuration files

  • Clean up any CLI caches related to your P0 session

Usage

p0 logout

No additional arguments are required. After running this command, you will need to log in again with p0 login before using other P0 CLI commands.

What Files Are Removed

File Location
Purpose

~/.p0/identity.json

Authentication token and info

~/.p0/config.json

CLI configuration

CLI cache files

Session/cache data

If you use multiple organizations or custom configuration paths, p0 logout will remove the relevant files for your current context.

Notes

  • Use p0 logout on shared systems, CI environments, or when rotating credentials to ensure proper cleanup.

  • Attempting to use privileged CLI commands after logout requires you to authenticate again with p0 login.

Last updated