| 
									
										
										
										
											2015-11-18 17:33:46 +02:00
										 |  |  | ..  Copyright 2014-2015 Ivan Kravets <me@ikravets.com>
 | 
					
						
							|  |  |  |     Licensed under the Apache License, Version 2.0 (the "License");
 | 
					
						
							|  |  |  |     you may not use this file except in compliance with the License.
 | 
					
						
							|  |  |  |     You may obtain a copy of the License at
 | 
					
						
							|  |  |  |        http://www.apache.org/licenses/LICENSE-2.0
 | 
					
						
							|  |  |  |     Unless required by applicable law or agreed to in writing, software
 | 
					
						
							|  |  |  |     distributed under the License is distributed on an "AS IS" BASIS,
 | 
					
						
							|  |  |  |     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					
						
							|  |  |  |     See the License for the specific language governing permissions and
 | 
					
						
							|  |  |  |     limitations under the License.
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-03-05 01:36:31 +02:00
										 |  |  | .. _envvars:
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Environment variables
 | 
					
						
							|  |  |  | =====================
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | `Environment variables <http://en.wikipedia.org/wiki/Environment_variable>`_
 | 
					
						
							|  |  |  | are a set of dynamic named values that can affect the way running processes
 | 
					
						
							|  |  |  | will behave on a computer.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | *PlatformIO* handles variables which start with ``PLATFORMIO_`` prefix. They
 | 
					
						
							|  |  |  | have the **HIGHEST PRIORITY**.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .. contents::
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | General
 | 
					
						
							|  |  |  | -------
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | PlatformIO uses *General* environment variables for the common
 | 
					
						
							|  |  |  | operations/commands.
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-14 00:14:04 +03:00
										 |  |  | .. envvar:: CI
 | 
					
						
							| 
									
										
										
										
											2015-03-05 14:48:56 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | PlatformIO handles ``CI`` variable which is setup by
 | 
					
						
							|  |  |  | `Continuous Integration <http://en.wikipedia.org/wiki/Continuous_integration>`_
 | 
					
						
							|  |  |  | (Travis, Circle and etc.) systems.
 | 
					
						
							|  |  |  | Currently, PlatformIO uses it to disable prompts.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | In other words, ``CI=true`` automatically setup
 | 
					
						
							| 
									
										
										
										
											2015-08-14 00:14:04 +03:00
										 |  |  | :envvar:`PLATFORMIO_SETTING_ENABLE_PROMPTS=false <PLATFORMIO_SETTING_ENABLE_PROMPTS>`.
 | 
					
						
							| 
									
										
										
										
											2015-03-05 01:36:31 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-14 00:14:04 +03:00
										 |  |  | .. envvar:: PLATFORMIO_HOME_DIR
 | 
					
						
							| 
									
										
										
										
											2015-03-05 01:36:31 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-05-23 19:17:07 +03:00
										 |  |  | Allows to override :ref:`projectconf` option :ref:`projectconf_pio_home_dir`.
 | 
					
						
							| 
									
										
										
										
											2015-03-05 01:36:31 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-14 00:14:04 +03:00
										 |  |  | .. envvar:: PLATFORMIO_LIB_DIR
 | 
					
						
							| 
									
										
										
										
											2015-03-05 01:36:31 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-05-23 19:17:07 +03:00
										 |  |  | Allows to override :ref:`projectconf` option :ref:`projectconf_pio_lib_dir`.
 | 
					
						
							| 
									
										
										
										
											2015-03-05 01:36:31 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-14 00:14:04 +03:00
										 |  |  | .. envvar:: PLATFORMIO_SRC_DIR
 | 
					
						
							| 
									
										
										
										
											2015-03-05 01:36:31 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-05-23 19:17:07 +03:00
										 |  |  | Allows to override :ref:`projectconf` option :ref:`projectconf_pio_src_dir`.
 | 
					
						
							| 
									
										
										
										
											2015-03-05 01:36:31 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-14 00:14:04 +03:00
										 |  |  | .. envvar:: PLATFORMIO_ENVS_DIR
 | 
					
						
							| 
									
										
										
										
											2015-03-05 01:36:31 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-05-23 19:17:07 +03:00
										 |  |  | Allows to override :ref:`projectconf` option :ref:`projectconf_pio_envs_dir`.
 | 
					
						
							| 
									
										
										
										
											2015-03-05 01:36:31 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-28 01:15:06 +02:00
										 |  |  | .. envvar:: PLATFORMIO_DATA_DIR
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Allows to override :ref:`projectconf` option :ref:`projectconf_pio_data_dir`.
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-03-05 01:36:31 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | Builder
 | 
					
						
							|  |  |  | -------
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-14 00:14:04 +03:00
										 |  |  | .. envvar:: PLATFORMIO_BUILD_FLAGS
 | 
					
						
							| 
									
										
										
										
											2015-05-23 19:17:07 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | Allows to set :ref:`projectconf` option :ref:`projectconf_build_flags`.
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-14 00:14:04 +03:00
										 |  |  | .. envvar:: PLATFORMIO_SRC_BUILD_FLAGS
 | 
					
						
							| 
									
										
										
										
											2015-03-05 01:36:31 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-06-28 20:18:16 +03:00
										 |  |  | Allows to set :ref:`projectconf` option :ref:`projectconf_src_build_flags`.
 | 
					
						
							| 
									
										
										
										
											2015-03-05 01:36:31 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-14 00:14:04 +03:00
										 |  |  | .. envvar:: PLATFORMIO_SRC_FILTER
 | 
					
						
							| 
									
										
										
										
											2015-06-22 15:06:39 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | Allows to set :ref:`projectconf` option :ref:`projectconf_src_filter`.
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-14 00:14:04 +03:00
										 |  |  | .. envvar:: PLATFORMIO_EXTRA_SCRIPT
 | 
					
						
							| 
									
										
										
										
											2015-06-19 15:29:22 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | Allows to set :ref:`projectconf` option :ref:`projectconf_extra_script`.
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-14 00:14:04 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-03-05 01:36:31 +02:00
										 |  |  | Settings
 | 
					
						
							|  |  |  | --------
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Allows to override PlatformIO settings. You can manage them via
 | 
					
						
							|  |  |  | :ref:`cmd_settings` command.
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-14 00:14:04 +03:00
										 |  |  | .. envvar:: PLATFORMIO_SETTING_AUTO_UPDATE_LIBRARIES
 | 
					
						
							| 
									
										
										
										
											2015-03-05 01:36:31 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-03-06 19:22:20 +02:00
										 |  |  | Allows to override setting :ref:`setting_auto_update_libraries`.
 | 
					
						
							| 
									
										
										
										
											2015-03-05 01:36:31 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-14 00:14:04 +03:00
										 |  |  | .. envvar:: PLATFORMIO_SETTING_AUTO_UPDATE_PLATFORMS
 | 
					
						
							| 
									
										
										
										
											2015-03-05 01:36:31 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-03-06 19:22:20 +02:00
										 |  |  | Allows to override setting :ref:`setting_auto_update_platforms`.
 | 
					
						
							| 
									
										
										
										
											2015-03-05 01:36:31 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-14 00:14:04 +03:00
										 |  |  | .. envvar:: PLATFORMIO_SETTING_CHECK_LIBRARIES_INTERVAL
 | 
					
						
							| 
									
										
										
										
											2015-03-05 01:36:31 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-03-06 19:22:20 +02:00
										 |  |  | Allows to override setting :ref:`setting_check_libraries_interval`.
 | 
					
						
							| 
									
										
										
										
											2015-03-05 01:36:31 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-14 00:14:04 +03:00
										 |  |  | .. envvar:: PLATFORMIO_SETTING_CHECK_PLATFORMIO_INTERVAL
 | 
					
						
							| 
									
										
										
										
											2015-03-05 01:36:31 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-03-06 19:22:20 +02:00
										 |  |  | Allows to override setting :ref:`setting_check_platformio_interval`.
 | 
					
						
							| 
									
										
										
										
											2015-03-05 01:36:31 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-14 00:14:04 +03:00
										 |  |  | .. envvar:: PLATFORMIO_SETTING_CHECK_PLATFORMS_INTERVAL
 | 
					
						
							| 
									
										
										
										
											2015-03-05 01:36:31 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-03-06 19:22:20 +02:00
										 |  |  | Allows to override setting :ref:`setting_check_platforms_interval`.
 | 
					
						
							| 
									
										
										
										
											2015-03-05 01:36:31 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-14 00:14:04 +03:00
										 |  |  | .. envvar:: PLATFORMIO_SETTING_ENABLE_PROMPTS
 | 
					
						
							| 
									
										
										
										
											2015-03-05 01:36:31 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-03-06 19:22:20 +02:00
										 |  |  | Allows to override setting :ref:`setting_enable_prompts`.
 | 
					
						
							| 
									
										
										
										
											2015-03-05 01:36:31 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-14 00:14:04 +03:00
										 |  |  | .. envvar:: PLATFORMIO_SETTING_ENABLE_TELEMETRY
 | 
					
						
							| 
									
										
										
										
											2015-03-05 01:36:31 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-03-06 19:22:20 +02:00
										 |  |  | Allows to override setting :ref:`setting_enable_telemetry`.
 |