Global flags
Available on every command:Environment variables
Priority: explicit flag > env var >.westyx/config > global config > default
Auth
westyx login
Authenticate and store credentials.
On success, the CLI auto-selects the first tenant and project.
westyx logout
Clear stored credentials. Active tenant and project context is preserved.
westyx version
Print the CLI version.
Context
westyx tenant list
List tenants you belong to.
westyx tenant set <id|name>
Set the active tenant.
westyx project list
List projects in the active tenant.
westyx project set <id|name>
Set the active project.
Analyze
.env file, classifies each entry, and writes a .wx file for review.
Classification rules (applied in order):
Output:
Developer workflow (westyx dev)
westyx dev push
Push a .wx file to your personal Nexus dev environment.
Conflict behaviour per entry:
Output:
service block has an empty id, the service is created in Nexus and the assigned UUID
is written back into the .wx file.
westyx dev pull
Download the entire project’s current state to a .wx file.
westyx dev setup
Configure Developer WIF credentials for a service. After setup, the Nexus SDK detects the
credentials automatically - no api_key needed in your local config.
~/.config/westyx/dev-credentials.yaml (0600).
Scope by tier:
Production environments are never accessible via Developer WIF.
westyx dev run
Start a process with Nexus values injected as environment variables.
.westyx/config:
.westyx/.wx as a fallback.
Key name transformation on injection: uppercased, dots and hyphens replaced with underscores.
(max.retries becomes MAX_RETRIES)
westyx dev status
Show Developer WIF credential state.
westyx dev teardown
Remove Developer WIF credentials.
Secrets
getwithout--servicesearches all non-umbrella services; exits 2 if the key exists in more than one service.setalways creates a new version - secrets are versioned and cannot be overwritten.listmasks values intableoutput (***). Use--format=jsonor--format=plainto retrieve the actual value.
Configs
set is an upsert - creates or updates the key.
Feature flags
set value must be true, false, 1, or 0.
Output formats
plain on list commands prints the primary identifier (e.g. tenant name) one per line.
plain on single-value commands (get) prints the bare value.
Exit codes
The .wx file format
.wx files are the local representation of your Nexus resources. They are gitignored
(contain real secret values) and human-editable. westyx analyze and westyx dev pull both
generate them.
on_conflict field on individual blocks overrides the defaults block.
Commit
.westyx/example.wx as a structure template for new team members. Never commit .wx
files with real values. westyx analyze adds *.wx to .gitignore automatically.The .westyx/config file
Committed to git. Contains workspace context and westyx dev run script definitions.
profile points to a named .wx file in .westyx/ (without the .wx extension). Defaults to
.wx (the dot-prefixed default file).