
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
A powerful command line tool for daily development, featuring Git operations, code statistics, time management, and AI assistance
A modern CLI tool that enhances your development workflow with AI-powered features.
npm i fir-cli -g
The CLI works out of the box for basic Git operations. For AI-powered features, you'll need to configure OpenAI API access.
Create a .firrc file in your home directory:
{
"openai": {
"apiKey": "your-api-key",
"apiBaseUrl": "your-api-base-url", // Optional
"apiModel": "your-api-model" // Optional
}
}
Or use environment variables:
OPENAI_API_KEY: Your OpenAI API key (required for AI features)OPENAI_API_BASE_URL: Custom API base URL (optional)OPENAI_API_MODEL: Custom API model (optional)Initialize Git repository:
git init
Make some changes to your code
Commit with AI-generated message:
f commit
Push to remote:
f push
| Command | Alias | Description | Example |
|---|---|---|---|
| Git Commands | |||
f commit | f c, f co, f com | Commit changes with AI message | f commit |
f commit -v | f c -v, f co -v, f com -v | Commit with verbose mode | f c -v |
f push | f p, f pu | Push changes to remote | f push |
f push -v | f p -v, f pu -v | Push with verbose mode | f p -v |
f open | - | Open repository in browser | f open |
f clean | f c, f cl | Clean working directory | f clean |
f git | f g, f gi | Git operations | f git open |
| Editor Commands | |||
f code | f c, f co | Open in VS Code | f code |
f webstorm | - | Open in WebStorm | f webstorm |
| Browser Commands | |||
f chrome | f c, f ch | Open Chrome | f chrome |
f chrome <url> | f c <url>, f ch <url> | Open Chrome with URL | f chrome https://github.com |
| Network Commands | |||
f ip | f i, f ip | Show local IP addresses | f ip |
f ping | f p, f pi | Ping domain(s) | f ping github.com |
| NPM Commands | |||
f nrm | - | Run NRM package | f nrm ls |
f ncu | - | Check package updates | f ncu |
f install | f i, f in | Run or install and run a global npm package | f install nrm |
| Time Commands | |||
f time | f t, f ti | Show current time | f time |
f time --watch | f t --watch, f ti -w | Show auto-updating time | f time --watch |
| AI Commands | |||
f translate | f t, f tr | Translate text between languages | f translate "Hello" |
f debug | f d, f de | Debug code with AI assistance | f debug |
f ai | f a, f ai | Chat with AI assistant | f ai "How to use git?" |
| Other Commands | |||
f config | f c, f co | Configure CLI settings | f config set openai.apiKey "your-key" |
f help | - | Show help information | f help commit |
f statistics | f s, f st, f stats | Show code statistics | f statistics |
f statistics -d | - | Show last 24h changes | f statistics -d |
f statistics -w | - | Show last week changes | f statistics -w |
f statistics -m | - | Show last month changes | f statistics -m |
f statistics -y | - | Show last year changes | f statistics -y |
f commit or f c)Commit changes with AI-generated commit messages.
Features:
Example:
# Basic commit with AI message
f commit
# Commit with verbose mode
f c -v
# Example AI-generated message:
feat(auth): add OAuth2 authentication with Google provider
- Implement OAuth2 flow for Google authentication
- Add user profile synchronization
- Update configuration for OAuth credentials
f push or f p)Push changes to remote repository.
Features:
Example:
# Push with AI commit message
f push
# Push with verbose mode
f p -v
# Status output example:
Git Status:
----------------------------------------
Branch: feature/auth
Last Commit: a1b2c3d - feat: add login page
Changed Files:
Modified: src/auth/login.ts
Added: src/components/LoginForm.tsx
Unpushed commits:
a1b2c3d feat: add login page
b2c3d4e fix: handle auth errors
----------------------------------------
f open)Open repository in browser.
Features:
Example:
# Open current repository
f open
# Output example:
✓ Opening https://github.com/username/repo in browser
f clean)Clean working directory and remove untracked files.
Features:
Example:
# Clean working directory
f clean
# Output example:
Found changes:
Modified files:
src/components/Button.tsx
src/styles/main.css
Untracked files:
.env.local
temp/
f translate or f t)Translate code between programming languages.
Features:
Example:
# Translate current file
f translate python typescript
# Example output:
# Python input:
def calculate_total(items):
return sum(item.price for item in items)
# TypeScript output:
function calculateTotal(items: Item[]): number {
return items.reduce((sum, item) => sum + item.price, 0);
}
f debug or f d)Debug code with AI assistance.
Features:
Example:
# Debug last error
f debug
# Example output:
Error Analysis:
- TypeError: Cannot read property 'data' of undefined
- Location: src/api/users.ts:45
- Root cause: API response is undefined before access
Solution:
1. Add null check before accessing data:
```typescript
const response = await api.get('/users');
const data = response?.data ?? [];
Prevention:
## New in v1.0.13
### Multi-language Support
- 🌐 Full interface localization in English and Chinese
- 🔄 Easy language switching through config menu
- 📝 Localized command outputs and messages
- 🎯 Consistent formatting across languages
- 💡 AI responses in your preferred language
### Enhanced Output Formatting
- ⚡ Aligned and structured command outputs
- 🎨 Better visual organization of information
- 📊 Consistent spacing and indentation
- 🔍 Clear separation of different data types
- ✨ Improved readability for all commands
### Other Improvements
- 🛠️ Enhanced error handling
- ⚡ Optimized performance
- 🔄 Smoother language switching
- 📱 Better terminal UI experience
## Development
1. Clone the repository
2. Install dependencies:
```bash
npm install
npm run build
npm link
MIT
FAQs
A powerful command line tool for daily development, featuring Git operations, code statistics, time management, and AI assistance
We found that fir-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.