Clarive Commands Reference
Clarive provides a comprehensive command-line interface (CLI) through the cla command. This reference lists all available commands organized by category.
Getting Help¶
cla help # Show general help
cla help <command> # Show help for specific command
cla <command> --help # Alternative help syntax
Server Management¶
Commands for starting, stopping, and managing Clarive server processes:
cla web-start- Start the web servercla web-stop- Stop the web servercla web-restart- Restart the web servercla disp-start- Start the dispatcher servercla disp-stop- Stop the dispatcher servercla disp-restart- Restart the dispatcher servercla start- Start all Clarive servicescla stop- Stop all Clarive servicescla ps- List running Clarive processes
Configuration & Setup¶
Commands for configuring and setting up Clarive:
cla config- Show or modify configuration settingscla setup- Initialize a new Clarive configurationcla lic- License management
Database Operations¶
Commands for database management and maintenance:
cla db-dump- Create database backupcla db- Database utilities and operationscla migra- Run database migrations
Development & Testing¶
Commands for development, debugging, and testing:
cla prove- Run test suitescla repl- Start interactive REPL consolecla exec- Execute commands using Clarive binariescla critic- Run code quality checkscla lint- Check file formatting and standardscla i18n- Update internationalization files
Rules & Plugins¶
Commands for managing rules and plugins:
cla rule- Rule management operationscla plugin- Plugin management
Web Server Components¶
Commands for specific web server components:
cla nginx-start- Start Nginx servercla nginx-stop- Stop Nginx servercla nginx-restart- Restart Nginx servercla pubsub- Manage pubsub servicecla proxy- Manage proxy servicecla ws- WebSocket server management
Utilities¶
Various utility commands:
cla info- Display system informationcla version- Show Clarive versioncla passwd- User password managementcla docs- Documentation utilitiescla profile- Performance profilingcla trans- Transaction utilitiescla queue- Queue managementcla poll- Polling service managementcla keeper- Keeper service managementcla clax- ClaX agent managementcla patch- Apply patches
Common Options¶
Most commands support these common options:
-c, --config <file>- Specify configuration file--help- Show command help--verbose- Verbose output--debug <level>- Set debug level (1-5)
Environment Variables¶
CLARIVE_BASE- Clarive installation directoryCLARIVE_DEBUG- Debug level (1-5)CLARIVE_TRACE- Enable tracing (e.g.,dbfor database traces)
Examples¶
Start all services for a configuration:
cla start -c myconfig
Run tests for a specific directory:
cla prove t/baseliner/model/
Start web server with debug output:
CLARIVE_DEBUG=3 cla web-start -c myconfig
Create a database backup:
cla db-dump -c myconfig -o backup.gz --compress
See Also¶
For detailed information on specific commands, refer to their individual documentation pages or use cla help <command>.