@zexio/zms-cli
v1.4.1
Published
Zexio Secret Management System CLI
Readme
@zexio/zms-cli
The ZMS CLI is a tactical tool for managing the Zexio Secret Management System locally and injecting secrets into your application environment.
Installation
pnpm install -g @zexio/zms-cliCommands
1. Initialize
Sets up the local .zexio directory and synchronizes the database schema.
zms init2. Start Engine
Launches the ZMS Unified Engine (API + Dashboard).
zms start --port 30303. Run Command (Secret Injection)
Runs a sub-process with ZMS secrets automatically injected as environment variables.
# Explicit Mode
zms run -p <project-id> -e production -- pnpm dev
# Auto-Resolution Mode (Recommended)
zms run -t zms_st_... -- pnpm devOptions for zms run
-t, --token <string>: Service Token. If provided, ZMS will auto-resolve the Project and Environment.-p, --project <id>: Project ID (Optional if token is provided).-e, --env <name>: Environment name (Optional if token is provided).-o, --org <id>: Organization ID (Optional, defaults to primary).
[!IMPORTANT] Token Scoping: In ZMS Community Edition, Service Tokens are strictly locked to a 1-1-1-1 mapping (1 Org, 1 Project, 1 Service, 1 Environment). Using a token generated for
developmentto fetch secrets forproductionwill fail, even if you use the explicit-e productionflag.
Reset
Wipe all local data and start fresh.
zms reset