Overview
Thelist command displays all keys currently stored in the vault, sorted alphabetically in ascending order. If the vault is empty, it displays “(no keys)”.
Syntax
Parameters
This command takes no parameters.Examples
Basic Usage
Expected Output
When vault contains keys:Complete Workflow Example
Implementation Details
Under the Hood
Thelist command executes the following SQL query (KVSTORE.cs:111-114):
Validation
The command validates that exactly 0 arguments are provided (KVSTORE.cs:187-191):Behavior Notes
Alphabetical SortingKeys are always returned in ascending alphabetical order (A-Z), regardless of the order in which they were added to the vault.This sorting is performed by SQLite using the
ORDER BY key ASC clause.Values Not ShownThe
list command only displays keys, not their associated values. This is useful for:- Getting an overview of what’s stored without exposing sensitive values
- Finding key names before using
getto retrieve specific values - Checking which keys exist before adding, updating, or removing entries
vault get <key>.Error Cases
Use Cases
- Inventory check: See all keys stored in your vault
- Before cleanup: Review what keys exist before removing old entries
- Script integration: Get a list of all available keys for automation
- Memory aid: Recall what you’ve stored when you forget a key name
- Audit: Verify which secrets or configuration values are present
Script Integration
Thelist command is particularly useful in shell scripts: