whoami command displays detailed information about your development environment, including system details, installed tools, and all Refine packages in your project.
Usage
How It Works
Thewhoami command:
- Collects system information (OS, CPU)
- Checks installed development tools (Node, npm, Yarn)
- Detects available browsers (Chrome, Firefox, Safari)
- Scans for all installed
@refinedev/*packages - Displays everything in a formatted markdown output
Examples
View Environment Details
Run the command to see your development environment:Output
Copy Output for Bug Reports
Use the output when reporting issues:environment.txt to your GitHub issue.
Share Environment with Team
Share your setup with team members:Output Sections
System Information
Displays your operating system and CPU:- Debugging platform-specific issues
- Verifying system requirements
- Performance troubleshooting
Binaries
Shows installed development tools and their versions:- Verifying Node.js version compatibility
- Checking package manager versions
- Troubleshooting installation issues
Browsers
Lists available browsers and versions:- Cross-browser testing
- Debugging browser-specific issues
- Verifying browser support
Refine Packages
Shows all installed@refinedev/* packages:
- Debugging version compatibility issues
- Verifying package installations
- Reporting bugs with version information
Common Use Cases
Bug Reports
Include environment details in bug reports:Team Onboarding
New team members can share their setup:CI/CD Debugging
Add to CI pipeline for debugging:.github/workflows/test.yml
Version Verification
Quickly check installed package versions:Pre-flight Check
Before starting development, verify your environment:Troubleshooting
Node Version Mismatch
If you see an unexpected Node version:Missing Package Manager
If a package manager shows “Not Found”:Browser Not Detected
If a browser you have isn’t shown:- The command only checks Chrome, Firefox, and Safari
- Other browsers won’t appear in the output
- This doesn’t affect functionality
No Refine Packages Shown
If no packages appear under “Refine Packages”:-
Ensure you’re in a Refine project:
-
Verify packages are installed:
-
Install dependencies:
-
Run again:
Outdated Information
If information seems outdated:- Clear CLI cache (if any)
- Reinstall dependencies:
- Run again:
CI/CD Integration
GitHub Actions
Add environment info to workflow:.github/workflows/build.yml
GitLab CI
Add to your pipeline:.gitlab-ci.yml
Jenkins
Add to your Jenkinsfile:Comparison with Similar Commands
vs npm list
vs node —version
vs system commands
Best Practices
1. Include in Bug Reports
Always runwhoami when reporting bugs:
2. Verify After Setup
After setting up a new project:3. Document Team Environment
Create a baseline for your team:4. Add to Onboarding Checklist
New developers should run:5. Regular Environment Audits
Periodically check your environment:Advanced Usage
Filter Output
Show only Refine packages:Compare Environments
Compare two developers’ environments:Save to File
Save output for documentation:Format for Markdown
The output is already in markdown format, perfect for:- GitHub issues
- Documentation
- Team wikis
- README files