CLI Reference
CLI Overview
Every command in the storemyapi CLI, how project context works, and how to get help.
CLI Overview
All commands
| Command | Description |
|---|---|
storemyapi login | Open browser to authenticate. Use --no-browser for headless environments |
storemyapi logout | Clear stored credentials and end your session |
storemyapi whoami | Print the email of the currently authenticated account |
storemyapi init | Create 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 projects | List 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 list | List 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 list | List all collaborators on the linked project |
storemyapi share invites | View 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 doctor | Check Node version, auth, API reachability, linked project, and .env presence |
storemyapi audit | Compare 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 initcreates this file when you set up a new projectstoremyapi linkcreates this file when you connect to an existing project- Add
.storemyapi.jsonto 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