-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
95 lines (77 loc) · 2.39 KB
/
config.example.yaml
File metadata and controls
95 lines (77 loc) · 2.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# frappecli Configuration Example
# Copy this file to ~/.config/frappecli/config.yaml and update with your settings
# Sites configuration
# Define multiple Frappe sites with their credentials
sites:
# Production site
production:
url: https://erp.company.com
# Use environment variables for sensitive data
api_key: ${FRAPPE_PROD_API_KEY}
api_secret: ${FRAPPE_PROD_API_SECRET}
# Staging site
staging:
url: https://staging.company.com
api_key: ${FRAPPE_STAGING_API_KEY}
api_secret: ${FRAPPE_STAGING_API_SECRET}
# Local development (example with direct values - NOT RECOMMENDED for production)
local:
url: http://localhost:8000
api_key: your_api_key_here
api_secret: your_api_secret_here
# Default site to use when --site flag is not specified
default_site: production
# Upload defaults
upload:
# Default privacy setting (true = private, false = public)
# SECURITY: Keep this as true - files are private by default
default_private: true
# Default folder for uploads when not specified
default_folder: "Home"
# Automatically optimize images on upload
auto_optimize_images: false
# Output preferences
output:
# Default output format: "table" or "json"
format: "table"
# Table output settings
table:
max_width: 120
show_lines: true
# JSON output settings
json:
indent: 2
sort_keys: false
# HTTP client settings
http:
# Request timeout in seconds
timeout: 30
# Number of retries for failed requests
max_retries: 3
# Retry delay (exponential backoff)
retry_delay: 1.0
# Verify SSL certificates (set to false only for testing!)
verify_ssl: true
# Logging (optional)
logging:
# Log level: DEBUG, INFO, WARNING, ERROR, CRITICAL
level: INFO
# Log file path (optional, logs to console if not set)
# file: ~/.config/frappecli/frappecli.log
# How to set environment variables:
#
# On Linux/macOS (add to ~/.bashrc or ~/.zshrc):
# export FRAPPE_PROD_API_KEY="your-api-key"
# export FRAPPE_PROD_API_SECRET="your-api-secret"
#
# On Windows (PowerShell):
# $env:FRAPPE_PROD_API_KEY="your-api-key"
# $env:FRAPPE_PROD_API_SECRET="your-api-secret"
#
# Or use a .env file with python-dotenv (future feature)
# Generating API Keys in Frappe:
# 1. Login to your Frappe site
# 2. Go to User → Your User → API Access
# 3. Click "Generate Keys"
# 4. Copy the API Key and API Secret
# 5. Store them securely in environment variables