xCommand CLI can be configured using aDocumentation Index
Fetch the complete documentation index at: https://docs.xcommand.ai/llms.txt
Use this file to discover all available pages before exploring further.
config.json file or via command-line arguments. This allows you to persist settings like your API key, preferred server port, and execution mode.
Configuration File
By default, xCommand looks for a configuration file at:~/.xcommand/config.json
File Structure
The configuration file is a simple JSON object. Here is the default structure:Fields
| Field | Description | Default |
|---|---|---|
api_key | Your xCommand API key for authentication. | None |
server_port | The port used when running in server mode. | 8080 |
mode | The default execution mode (safe or standard). | safe |
github_token | A GitHub Personal Access Token for the GitHub Integration. | None |
gcloud_service_account | Target Google Cloud Service Account for the GCP Integration. | None |
gcloud_service_account_json_path | Path to a Service Account JSON key for the GCP Integration. | None |
aws_profile | Target AWS Profile for the AWS Integration. | None |
aws_access_key_id | AWS Access Key ID for the AWS Integration. | None |
aws_secret_access_key | AWS Secret Access Key for the AWS Integration. | None |
aws_region | AWS Region for the AWS Integration. | None |
azure_client_id | Azure Client ID for the Azure Integration. | None |
azure_client_secret | Azure Client Secret for the Azure Integration. | None |
azure_tenant_id | Azure Tenant ID for the Azure Integration. | None |
azure_subscription_id | Azure Subscription ID for the Azure Integration. | None |
do_access_token | DigitalOcean Personal Access Token for the DigitalOcean Integration. | None |
linear_token | Linear Personal API Key for the Linear Integration. | None |
notion_token | Notion Personal Access Token | None |
pagerduty_token | PagerDuty REST API Key | None |
gemini_api_key | User-provided Google Gemini API Key. When set, xCommand uses this key and skips token billing. | None |
CLI Arguments
You can override the default configuration using command-line flags.Custom Configuration Path
If you want to use a specific configuration file instead of the default one, use the--config-file flag:
Server Port Override
When starting the server, you can specify a port that takes precedence over the configuration file:Environment Variables
For automated environments or CI/CD pipelines, you can use theXCOMMAND_API_KEY environment variable to authenticate without a configuration file.