{"_id":"56d1f33a00a2a70b00b365cb","project":"5526c95cf69851170038b48f","__v":1,"user":"5526ca4cf69851170038b496","version":{"_id":"56d1f33700a2a70b00b3658e","project":"5526c95cf69851170038b48f","__v":2,"createdAt":"2016-02-27T19:04:23.946Z","releaseDate":"2016-02-27T19:04:23.946Z","categories":["56d1f33900a2a70b00b3658f","56d1f33900a2a70b00b36590","56d1f33900a2a70b00b36591","56d1f33900a2a70b00b36592","56d1f33900a2a70b00b36593","56d1f33900a2a70b00b36594","56d1f33900a2a70b00b36595","56d1f33900a2a70b00b36596","56d1f33900a2a70b00b36597","56d1f33900a2a70b00b36598","56d1f33900a2a70b00b36599","56d1f33900a2a70b00b3659a","571f9497ada30c34003b7cee"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"beta","version_clean":"2.0.0-beta","version":"2.0.0-beta"},"category":{"_id":"56d1f33900a2a70b00b3658f","version":"56d1f33700a2a70b00b3658e","__v":1,"pages":["56d1f33a00a2a70b00b365c1","56d1f33a00a2a70b00b365c2","56d1f33a00a2a70b00b365c3","56d1f33a00a2a70b00b365c4","56d1f33a00a2a70b00b365c5","56d1f33a00a2a70b00b365c6","56d1f33a00a2a70b00b365c7","56d1f33a00a2a70b00b365c8","56d1f33a00a2a70b00b365c9","56d1f33a00a2a70b00b365ca","56d1f33a00a2a70b00b365cb","56d1f33a00a2a70b00b365cc","56d1f33a00a2a70b00b365cd","56d1f33a00a2a70b00b365ce","56d1f33a00a2a70b00b365cf","56d1f33a00a2a70b00b365d0","56d1f33a00a2a70b00b365d1","56d1f33a00a2a70b00b365d2"],"project":"5526c95cf69851170038b48f","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-04-10T13:13:56.755Z","from_sync":false,"order":0,"slug":"getting-started","title":"Getting Started"},"parentDoc":null,"updates":["57062d467bc0d81900cb20e5"],"next":{"pages":[],"description":""},"createdAt":"2015-09-22T13:40:40.110Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":4,"body":"The config command gives you the ability to set and unset configuration values for the different Ionic.io services. \n\nThe values are stored in a JSON file in your projects root directory. When you manually run the *ionic config build* command, or when a number of other commands are called, a factory is generated in your *www/lib/ionic-platform-web-client/dist/ionic.io.bundle.min.js* file. \n\nWe use this factory to pull configuration values across the different service modules. You can read more about this modification in the [Modifications](doc:io-service-modules#section-modifications) section of the [Service Modules](doc:io-service-modules) docs.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Command\",\n    \"h-1\": \"Description\",\n    \"h-2\": \"Usage\",\n    \"0-0\": \"info\",\n    \"0-1\": \"Prints the current configuration\",\n    \"0-2\": \"`ionic config info`\",\n    \"2-0\": \"set\",\n    \"2-1\": \"Set a config value\",\n    \"2-2\": \"`ionic config set CONFIG_KEY VALUE`\",\n    \"3-0\": \"unset\",\n    \"3-1\": \"Remove a config value\",\n    \"3-2\": \"`ionic config unset CONFIG_KEY`\",\n    \"1-0\": \"build\",\n    \"1-1\": \"Builds or updates the `$ionicCoreSettings` factory. This is automatically done when a number of other Ionic commands are called.\",\n    \"1-2\": \"`ionic config build`\"\n  },\n  \"cols\": 3,\n  \"rows\": 4\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"body\": \"You can always find the available options by using the `ionic help config` command.\",\n  \"title\": \"Note\"\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\"\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"FAQ\"\n}\n[/block]\n## Where is the config located?\n\nThe configuration JSON is stored in the root directory of your project in the `.io-config.json` hidden file. \n\n## Can I inspect the values in my app?\n\nAbsolutely; you just need to use the `Ionic.IO.Settings` class:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"var settings = new Ionic.IO.Settings();\\nvar app_id = settings.get('app_id');\",\n      \"language\": \"javascript\"\n    }\n  ]\n}\n[/block]\n\n## What are all the possible configuration values?\n\nThere are a number of configuration options, and more will be added as we expand the platform. Refer to the documentation for the service you're working with to find what configuration options are available.\n[block:api-header]\n{\n  \"type\": \"basic\"\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Troubleshooting\"\n}\n[/block]\n## There is no value for `app_id` or `api_key`\n\nTypically, these values are provided by the `ionic upload` command. However, you can manually set them using the `set` config command. You can learn how to find your API Key [here](io-api-keys).\n\n## `ionic config` is not a command\n\nYou'll need to upgrade your CLI version to version 1.6.5 or higher.","excerpt":"Overview of the Ionic config command","slug":"io-config","type":"basic","title":"Config"}

Config

Overview of the Ionic config command

The config command gives you the ability to set and unset configuration values for the different Ionic.io services. The values are stored in a JSON file in your projects root directory. When you manually run the *ionic config build* command, or when a number of other commands are called, a factory is generated in your *www/lib/ionic-platform-web-client/dist/ionic.io.bundle.min.js* file. We use this factory to pull configuration values across the different service modules. You can read more about this modification in the [Modifications](doc:io-service-modules#section-modifications) section of the [Service Modules](doc:io-service-modules) docs. [block:api-header] { "type": "basic", "title": "" } [/block] [block:parameters] { "data": { "h-0": "Command", "h-1": "Description", "h-2": "Usage", "0-0": "info", "0-1": "Prints the current configuration", "0-2": "`ionic config info`", "2-0": "set", "2-1": "Set a config value", "2-2": "`ionic config set CONFIG_KEY VALUE`", "3-0": "unset", "3-1": "Remove a config value", "3-2": "`ionic config unset CONFIG_KEY`", "1-0": "build", "1-1": "Builds or updates the `$ionicCoreSettings` factory. This is automatically done when a number of other Ionic commands are called.", "1-2": "`ionic config build`" }, "cols": 3, "rows": 4 } [/block] [block:callout] { "type": "info", "body": "You can always find the available options by using the `ionic help config` command.", "title": "Note" } [/block] [block:api-header] { "type": "basic" } [/block] [block:api-header] { "type": "basic", "title": "FAQ" } [/block] ## Where is the config located? The configuration JSON is stored in the root directory of your project in the `.io-config.json` hidden file. ## Can I inspect the values in my app? Absolutely; you just need to use the `Ionic.IO.Settings` class: [block:code] { "codes": [ { "code": "var settings = new Ionic.IO.Settings();\nvar app_id = settings.get('app_id');", "language": "javascript" } ] } [/block] ## What are all the possible configuration values? There are a number of configuration options, and more will be added as we expand the platform. Refer to the documentation for the service you're working with to find what configuration options are available. [block:api-header] { "type": "basic" } [/block] [block:api-header] { "type": "basic", "title": "Troubleshooting" } [/block] ## There is no value for `app_id` or `api_key` Typically, these values are provided by the `ionic upload` command. However, you can manually set them using the `set` config command. You can learn how to find your API Key [here](io-api-keys). ## `ionic config` is not a command You'll need to upgrade your CLI version to version 1.6.5 or higher.