Config file locations
landbase-cli stores its state in~/.landbase/. This page documents each file, what it contains, and what happens if you delete it.
Directory overview
config.json
Stores the legacy API key set vialandbase-cli auth login --key.
0600 (readable only by your user)
Safe to delete? Yes. You will be prompted to re-authenticate the next time you run a command that requires auth.
Safe to edit? You can update apiKey directly if you need to rotate a key without running auth login --key.
sessions.json
Maps human-readable session labels to their server-side UUIDs.0600
Safe to delete? Yes. You will lose the label → UUID mappings, which means --session=uk-saas will start a fresh session. The prior sessions still exist on the Landbase backend (accessible by UUID) but you will no longer be able to reference them by label.
Safe to edit? Yes. You can rename labels or remove stale entries. Do not change the UUID values — they are set by the server and must match what the backend has on record.
platform.json
Stores the platform OAuth session token and account information.0600
Safe to delete? Yes. You will be logged out and will need to run landbase-cli auth login again.
Safe to edit? Not recommended. The token is issued by the OAuth server and cannot be manually constructed.
Override the config directory
If you need to store config in a different location (for example, to isolate credentials per project), set:~/.landbase/.
Related
- environment variables reference —
LANDBASE_CONFIG_DIR - How to troubleshoot authentication
- Platform mode vs. legacy mode

