CLI Reference
Complete command reference for @hlos/cli
The HLOS CLI is your primary interface for managing secrets from the terminal. Install it globally with npm install -g @hlos/cli.
Global Options
--help, -hShow help for any command--version, -vShow CLI version--space, -sOverride the active space for this command--quiet, -qSuppress non-essential outputhlos loginAuthenticate with your HLOS account via browser OAuth.
--no-browserPrint URL instead of opening browserhlos logoutClear stored credentials from your system keychain.
hlos whoamiDisplay the currently authenticated user email and account info.
hlos spaces listList all spaces you have access to.
$ hlos spaces listhlos spaces create <name>Create a new space for organizing secrets.
$ hlos spaces create my-saas-app--description, -dAdd a description for the spacehlos spaces use <name>Set the active space for subsequent commands.
$ hlos spaces use productionhlos spaces delete <name>Delete a space and all its secrets (requires confirmation).
hlos secrets listList all secrets in the current space (names only, not values).
--provider, -pFilter by provider (openai, stripe, etc.)--jsonOutput as JSONhlos secrets set <key>Set a secret. Prompts for value interactively (secure input).
$ hlos secrets set OPENAI_API_KEYhlos secrets set <key> <value>Set a secret with inline value (use with caution in scripts).
$ hlos secrets set API_KEY sk-...hlos secrets get <key>Retrieve and display a secret value.
$ hlos secrets get DATABASE_URLhlos secrets delete <key>Delete a secret from the current space.
hlos pushPush local .env file contents to your HLOS vault.
--file, -fSpecify a different .env file--mergeMerge with existing secrets instead of replacinghlos pullPull secrets from HLOS to a local .env.local file.
--output, -oSpecify output filenamehlos run -- <command>Run a command with secrets injected into the environment.
$ hlos run -- npm starthlos sync vercelSync secrets to your Vercel project environment variables.
--envTarget environment (production, preview, development)hlos sync railwaySync secrets to your Railway project.
hlos sync netlifySync secrets to your Netlify site.
hlos healthCheck health status of secrets (rotation, exposure, etc.).
--severityFilter by severity (low, medium, high, critical)hlos auditView recent access logs for secrets.