Skip to content
bash
socifyr configure --key <api-key> --workspace <workspace-id> [--api-url <url>]
socifyr configure --show

Options

FlagDescription
--key <key>API key (starts with sk_)
--workspace <id>Default workspace ID
--api-url <url>Custom API URL (for self-hosted or staging)
--showPrint current configuration

Examples

bash
# Save credentials
socifyr configure --key sk_4b73... --workspace 69fbbf978e770da397a59a5a

# Switch to staging
socifyr configure --api-url https://staging-api.socifyr.com/api

# Check what's saved
socifyr configure --show
# Current configuration:
#   API key:    sk_4b73784...
#   Workspace:  69fbbf978e770da397a59a5a
#   API URL:    https://api.socifyr.com/api (default)

Where it's stored

~/.config/socifyr/config.json

The API key is stored in plain text — protect this file with appropriate filesystem permissions.

Override with env vars

Environment variables always take precedence over the config file. Useful for CI:

bash
SOCIFYR_API_KEY=sk_ci... SOCIFYR_WORKSPACE_ID=... socifyr post "from CI"