CLI

The Blackfire CLI is configured by default with a .blackfire.ini file that can be found:

  • in $BLACKFIRE_HOME/.blackfire.ini if you have defined the $BLACKFIRE_HOME environment variable.
  • On Linux systems, in $XDG_CONFIG_HOME/.blackfire.ini
  • On all systems, in $HOME/.blackfire.ini
  • On Windows systems, ultimately in $HOMEDRIVE/$HOMEPATH/.blackfire.ini

Here is a typical configuration for the CLI that you can use as a template for your own:

 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
[blackfire]
;
; This is a configuration file for Blackfire.
;

;
; setting: ca-cert
; desc   : Sets the PEM encoded certificates to use
; default:
ca-cert=

;
; setting: client-id
; desc   : Sets the Client ID used for API authentication
; default:
client-id=ab6f24b1-3103-4503-9f68-93d4b3f10c7c

;
; setting: client-token
; desc   : Sets the Client Token used for API authentication
; default:
client-token=ec4f5fb9f43ec7004b44fc2f217c944c324c6225efcf144c2cee65eb5c45754c

;
; setting: endpoint
; desc   : Sets the API endpoint
; default: https://blackfire.io
endpoint=https://blackfire.io

;
; setting: http-proxy
; desc   : Sets the HTTP proxy to use
; default:
http-proxy=

;
; setting: https-proxy
; desc   : Sets the HTTPS proxy to use
; default:
https-proxy=

;
; setting: timeout
; desc   : Sets the Blackfire API connection timeout
; default: 15s
timeout=15s