Commands Reference
Complete reference for all Stringer CLI commands
Core Commands
stringer
The main command that detects your framework and guides you through the conversion process.
The main Stringer CLI UI that shows your current commands, progress hints, and advanced navigation in one place.
What it does:
- Auto-detects your framework (Vue or Nuxt)
- Installs required i18n packages automatically
- Creates framework-specific configuration files
- Interactive workflow for convert and translate operations
Utility Commands
stringer login
Authenticate with Stringer services.
(Running stringer will also automatically log you in)
stringer -v
Check your Stringer CLI version.
stringer logout
Log out of Stringer services.
stringer help
Display help information.
URL-based i18n Routing
Enable SEO-friendly locale prefixes in your URLs (e.g., /en-us/about, /fr-fr/about).
URL-based i18n is currently available for Nuxt projects.
Quick Setup
- Enable URL-based routing during the convert flow, or run:
- What happens:
- Your
nuxt.config.tsstrategy changes fromno_prefixtoprefix - Internal links are wrapped with
localePath()automatically - A locale middleware is created for proper redirects
- Your
Enabling URL Routing
You can enable URL-based routing during the convert flow, or via the Advanced menu:
- Run
stringer - Select Advanced
- Select Enable URL-based i18n routing
Advanced CLI Menu at a Glance
The Advanced menu is the easiest way to repair routing, prefix links, or adjust URL behavior after the conversion flow.
Choose "Advanced" during any stringer run to access repair URL routing, inspect middleware, or clear caches.
If You Have Routing Issues
If pages show 404 errors or infinite redirects after enabling URL-based routing:
- Run
stringer - Select Advanced
- Select Repair URL-based i18n routing
The repair flow fixes:
- Middleware conflicts causing redirects
- Incorrect route handling logic
- i18n configuration issues
- Missing
localePath()wrappers on links
See Nuxt URL-based Routing for detailed setup.
Special Flags
--allow-legal-conversion
By default, Stringer skips files detected as legal documents (terms of service, privacy policies, etc.). To force conversion:
Use with caution. Translated legal documents may have different legal implications in different jurisdictions.
--clear-cache
Clear the local file cache and reprocess all files:
Interactive Mode
Stringer CLI runs in interactive mode by default, providing guided prompts:
Next Steps
- Frameworks — Framework-specific setup guides
- Languages — View all 47 supported languages
- Troubleshooting — Common issues and solutions
- Submit Feedback — Report issues or request features