Skip to content

Rawi (راوي) Documentation | Command Line Options

Rawi CLI supports global and command-specific options to override default configuration, profile, or environment variable settings for a single command. You can specify which profile to use, set output verbosity, and more.

Most options are simple flags or key-value pairs. For options that take arguments, use a space or equals sign (=) between the option and its value. If the value contains spaces, wrap it in quotes.

Examples:

  1. Use a specific profile:

    Terminal window
    rawi ask "What is TypeScript?" --profile work

These options can be used with any Rawi command:

OptionDescription
--helpShow help for the command
--versionShow version information
--profileUse a specific configuration profile
--verboseShow detailed status and debug information

Example:

Terminal window
rawi --version
rawi ask --help
rawi configure --profile work

Each command supports its own set of options. For example:

OptionAliasDescription
--profile <profile>-pProfile to use for AI configuration
--session <id>Continue an existing chat session
--new-sessionStart a new chat session
--act <template>Use an act template by ID
--list-actsList all available act templates
--showShow act template details (with —act)
--verboseShow detailed status and debug information
OptionDescription
--profile <profile>Configuration profile name
--provider <provider>AI provider (openai, anthropic, etc.)
--model <model>AI model name
--api-key <apiKey>API key for the provider
--base-url <baseURL>Custom base URL
--temperature <value>Temperature value (0-2)
--max-tokens <number>Maximum tokens
--language <language>Language (english, arabic)
--showShow current configuration
--listList all profiles
--list-providersList all available AI providers
--list-models <provider>List models for specific provider
--delete <profile>Delete a configuration profile
OptionAliasDescription
--profile <profile>-pProfile to show history for
--limit <number>-lNumber of sessions to show
--search <query>-sSearch messages containing text
--provider <provider>Filter by AI provider
--model <model>Filter by AI model
--from <date>Show sessions from date (YYYY-MM-DD)
--to <date>Show sessions to date (YYYY-MM-DD)
  • Command line options override environment variables and profile settings.
  • Environment variables override profile settings.
  • Profile settings are used if not overridden.
  • Switch profiles for a single command:
    Terminal window
    rawi ask "Review this code" --profile work
  • Change output verbosity:
    Terminal window
    rawi ask "Debug this" --verbose
  • Chain commands and use pipes:
    Terminal window
    cat README.md | rawi ask "Summarize this documentation"

Tip: Use rawi <command> --help to see all options for any command.