Skip to main content

info Command

Display comprehensive information about your Stratix project.

Usage​

stratix info

Output​

The info command displays:

Project Information​

Project: my-app
Version: 1.0.0
Template: ddd
Node: v20.10.0
Package Manager: pnpm

Stratix Packages​

@stratix/core: 0.1.3
@stratix/runtime: 0.1.3
@stratix/cli: 0.1.3

Installed Extensions​

Extensions:
✓ @stratix/http-fastify (0.1.3)
✓ @stratix/postgres (0.1.3)
✓ @stratix/ai-openai (0.1.3)
✓ @stratix/di-awilix (0.1.3)

Project Structure​

Structure: DDD
Layers:
✓ Domain (src/domain)
✓ Application (src/application)
✓ Infrastructure (src/infrastructure)

Statistics​

Entities: 5
Value Objects: 8
Commands: 12
Queries: 10
Repositories: 5

Options​

OptionDescription
--jsonOutput as JSON
--verboseShow detailed information

JSON Output​

stratix info --json
{
"project": {
"name": "my-app",
"version": "1.0.0",
"template": "ddd"
},
"environment": {
"node": "v20.10.0",
"packageManager": "pnpm"
},
"stratix": {
"core": "0.1.3",
"runtime": "0.1.3",
"cli": "0.1.3"
},
"extensions": [
{
"name": "@stratix/http-fastify",
"version": "0.1.3"
},
{
"name": "@stratix/postgres",
"version": "0.1.3"
}
],
"statistics": {
"entities": 5,
"valueObjects": 8,
"commands": 12,
"queries": 10,
"repositories": 5
}
}

Verbose Output​

stratix info --verbose

Shows additional information:

  • TypeScript configuration
  • ESLint configuration
  • Test configuration
  • Build configuration
  • Environment variables

Use Cases​

1. Debugging​

stratix info --verbose > debug.txt

2. CI/CD Verification​

stratix info --json | jq '.stratix.core'

3. Documentation​

stratix info > PROJECT_INFO.md

4. Version Checking​

stratix info | grep "@stratix/core"

Troubleshooting​

Command Not Found​

# Install CLI globally
npm install -g @stratix/cli

# Or use npx
npx @stratix/cli info

Incorrect Information​

# Clear cache and re-run
rm -rf node_modules/.cache
stratix info

Next Steps​