storemyapi
CLI Reference

CLI Overview

Global flags, output formats, and general usage patterns for the storemyapi CLI.

CLI Overview

The storemyapi CLI follows a consistent storemyapi <resource> <action> pattern.

Global flags

These flags are available on every command:

FlagShortDescription
--help-hShow help for any command
--version-vPrint CLI version
--token <token>-tOverride authentication token
--project <name>-pSet the target project
--env <environment>-eSet the target environment
--format <format>-fOutput format: text, json, table
--quiet-qSuppress non-essential output
--verboseEnable debug logging
--no-colorDisable colored output

Output formats

Most commands support three output formats:

# Default — human-readable
storemyapi keys list

# JSON — for scripting and piping
storemyapi keys list --format json

# Table — aligned columns
storemyapi keys list --format table

JSON output example:

[
  {
    "id": "key_abc123",
    "name": "STRIPE_SECRET_KEY",
    "project": "my-saas-app",
    "environment": "production",
    "createdAt": "2026-01-15T10:30:00Z",
    "lastAccessedAt": "2026-02-17T08:45:00Z"
  }
]

Exit codes

CodeMeaning
0Success
1General error
2Authentication failure
3Resource not found
4Validation error
5Network error

Configuration file

The CLI reads configuration from ~/.storemyapi/config.json:

{
  "defaultProject": "my-saas-app",
  "defaultEnvironment": "development",
  "format": "text",
  "apiUrl": "https://api.storemyapi.com"
}

Set values with storemyapi config set:

storemyapi config set defaultProject my-saas-app
storemyapi config set format json

Command structure

storemyapi <command> <subcommand> [flags]

Commands:
  keys       Manage API keys
  projects   Manage projects
  env        Environment variable operations
  config     CLI configuration
  login      Authenticate with your account
  logout     Remove stored credentials
  whoami     Show current user info

On this page