nom setup, it generates four Claude Code slash commands in your project’s .claude/commands/ directory. These let you deploy, preview, and manage your app without ever leaving the conversation.
Setup
Run this once in your project:.claude/commands/deploy.md, .claude/commands/preview.md, .claude/commands/status.md, and .claude/commands/nometria-login.md.
You need
nom installed (npm i -g @nometria-ai/nom) and a nometria.json config in your project. Run nom init if you don’t have one yet.Available commands
/deploy
/deploy
Deploys your app to production. This is the most common command.What it does:You can pass an app name if you have multiple apps. Otherwise it uses the app linked in
- Finds your API token (env var,
.env, or~/.nometria/credentials.json) - Reads
nometria.jsonto identify your app - Checks current deployment status
- If running: resyncs code (fast update)
- If stopped: starts the instance, then resyncs
- If not deployed: creates a new instance
- Polls until deployment completes
- Reports the live URL
nometria.json.Example output from Claude:/preview
/preview
Creates a free staging preview that expires in 2 hours.What it does:Example output from Claude:
- Finds your API token
- Identifies your app from
nometria.jsonor asks you to pick - Calls the staging preview API
- Returns a temporary preview URL
/status
/status
Shows the deployment status of all your Nometria apps in a formatted table.What it does:Example output from Claude:
- Finds your API token
- Lists all your migrations
- Checks AWS status for each hosting app
- Displays a formatted table with status indicators
/nometria-login
/nometria-login
Helps you set up authentication. Claude Code walks you through getting and storing your API key.What it does:
- Checks if you already have a token (env var,
.env, credentials file) - If not, guides you to https://nometria.com/settings/api-keys
- Validates the token you paste
- Stores it in
.envand warns about.gitignore - Optionally links the workspace to one of your apps
How it works
Each slash command is a markdown file in.claude/commands/ that contains step-by-step instructions for Claude. When you type /deploy, Claude reads the corresponding file and executes the workflow — making API calls with curl, polling for results, and reporting back.
The commands use these allowed tools:
Bash(curl:*)— API calls to the Nometria backendBash(cat:*),Bash(grep:*)— reading config files and tokensReadandWrite— managingnometria.jsonand.env
Distributing to your team
The.claude/commands/ directory is part of your project. Commit it to git and every team member who uses Claude Code will have access to the same commands.
Regenerating
If you update yournometria.json (different app name, platform, etc.), run nom setup again to regenerate all config files including the slash commands.