Skip to content

CLI Overview

The Socket0 CLI provides command-line tools for two main purposes:

  1. SDK Development (s0 sdk) - Tools to help develop and maintain the SDK
  2. Vault Management (s0 vault) - Tools to interact with Socket0 vaults and secrets

Installation

The CLI is an optional component. Install it with:

bash
pip install socket0-sdk[cli]

Main Command: s0

The root command is s0, with two main subcommand groups:

SDK Development Tools

Commands to help with SDK development, testing, and quality assurance:

bash
s0 sdk test              # Run test suite
s0 sdk lint              # Run code linting
s0 sdk format            # Format code
s0 sdk check             # Run type checking

📚 Learn more about SDK tools

Vault Management

Commands to interact with Socket0 vaults and manage secrets:

bash
s0 vault list            # List vaults
s0 vault create          # Create a vault
s0 vault get             # Get a secret from a vault
s0 vault set             # Set a secret in a vault
s0 vault delete          # Delete a vault

📚 Learn more about vault management

Getting Help

Get help for any command:

bash
# Main help
s0 --help

# Subcommand group help
s0 sdk --help
s0 vault --help

# Specific command help
s0 sdk test --help
s0 vault list --help

Environment Variables

The CLI supports configuration via environment variables for authentication and API endpoints:

bash
# Set API endpoint and key
export SOCKET0_ENDPOINT=https://api.socket0.dev
export SOCKET0_API_KEY=your-api-key

# Now use vault commands without specifying endpoint/key
s0 vault list

Next Steps

Socket0 Python SDK License - Not open source. For usage terms see /license