storemyapi
CLI Reference

CLI Overview

Every command in the storemyapi CLI, how project context works, and how to get help.

CLI Overview

All commands

CommandDescription
storemyapi loginOpen browser to authenticate. Use --no-browser for headless environments
storemyapi logoutClear stored credentials and end your session
storemyapi whoamiPrint the email of the currently authenticated account
storemyapi initCreate a new project interactively and link the current folder to it
storemyapi link [nameOrId]Link the current folder to an existing project via interactive dropdown
storemyapi projectsList all your projects with role, key count, and owner info
storemyapi pull [key]Pull all keys (or one key) from cloud into local .env
storemyapi push [key]Push all keys (or one key) from local .env to cloud
storemyapi key get <name>Fetch a single key value from cloud and print it
storemyapi key set <name> <value>Set a key in the cloud (confirms before overwriting)
storemyapi key delete <name>Delete a key from the cloud
storemyapi key listList all keys and values in the linked project
storemyapi share add <email> <permission>Invite a user with read or write permission
storemyapi share remove <email>Revoke a user's access
storemyapi share listList all collaborators on the linked project
storemyapi share invitesView pending invites and accept or decline interactively
storemyapi share accept <inviteId>Accept a specific invite by ID
storemyapi share decline <inviteId>Decline a specific invite by ID
storemyapi env run -- <command>Run a command with all cloud keys injected. Nothing written to disk
storemyapi doctorCheck Node version, auth, API reachability, linked project, and .env presence
storemyapi auditCompare local .env against cloud. Shows missing, unpushed, and mismatched keys

Project context

Most commands need to know which project to operate on. The CLI determines this from a .storemyapi.json file in the current directory.

  • storemyapi init creates this file when you set up a new project
  • storemyapi link creates this file when you connect to an existing project
  • Add .storemyapi.json to your .gitignore. It is machine-specific.

There are no --project or --env flags. The project is always read from .storemyapi.json.

Getting help

# Help for any command
storemyapi --help
storemyapi key --help
storemyapi share --help

# Check CLI version
storemyapi --version

# Diagnose your setup
storemyapi doctor

On this page