{"_id":"588f722bbcace50f0052ba02","project":"565f5fa26bafd40d0030a064","category":{"_id":"588f722bbcace50f0052b9e7","version":"588f722bbcace50f0052b9e1","project":"565f5fa26bafd40d0030a064","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-12-17T21:29:23.551Z","from_sync":false,"order":5,"slug":"server-installation-configuration","title":"Self Hosting"},"parentDoc":null,"__v":0,"version":{"_id":"588f722bbcace50f0052b9e1","project":"565f5fa26bafd40d0030a064","__v":1,"createdAt":"2017-01-30T17:04:43.410Z","releaseDate":"2017-01-30T17:04:43.410Z","categories":["588f722bbcace50f0052b9e2","588f722bbcace50f0052b9e3","588f722bbcace50f0052b9e4","588f722bbcace50f0052b9e5","588f722bbcace50f0052b9e6","588f722bbcace50f0052b9e7"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"5.3.0","version":"5.3.0"},"user":"565f3941ea46251700972783","updates":["57e5471b685f7c19007fba39","57eaed78c878550e00b3c45f"],"next":{"pages":[],"description":""},"createdAt":"2015-12-21T20:16:24.924Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":6,"body":"[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Server versus Development Mode\",\n  \"body\": \"Managing accounts and users only matters when you run nanoscale.io in server mode. By default, nanoscale.io starts in dev mode with a developer account already pre-seeded. When running in dev mode no login credentials are required to access the Admin Dashboard.\"\n}\n[/block]\nIf you are looking to create and manage accounts and users outside of the self service registration system build into the product, you can use the following commands.\n\n## List Commands\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"./gateway help\\n2016/02/11 17:42:57.314954 [system] Config file 'gateway.conf' does not exist and will not be used.\\n2016/02/11 17:42:57.315100 [system] Running Gateway v4.1.0 (ga7ba217)\\n2016/02/11 17:42:57.315106 [system] Connecting to database\\n2016/02/11 17:42:57.315416 [system] Starting gateway in developer mode\\n2016/02/11 17:42:57.315439 [system] Checking developer version license constraints\\naccounts\\naccounts:create\\naccounts:update\\naccounts:destroy\\nusers\\nusers:create\\nusers:update\\nusers:destroy\\n\",\n      \"language\": \"shell\",\n      \"name\": \"List commands\"\n    }\n  ]\n}\n[/block]\n## List Accounts\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"./gateway accounts\\n2016/02/11 17:35:38.269104 [system] Config file 'gateway.conf' does not exist and will not be used.\\n2016/02/11 17:35:38.269254 [system] Running Gateway v4.1.0 (ga7ba217)\\n2016/02/11 17:35:38.269260 [system] Connecting to database\\n2016/02/11 17:35:38.269593 [system] Starting gateway in developer mode\\n2016/02/11 17:35:38.269616 [system] Checking developer version license constraints\\n=== Accounts\\n\",\n      \"language\": \"shell\",\n      \"name\": \"List accounts\"\n    }\n  ]\n}\n[/block]\n## Create Account\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"./gateway accounts:create\\n2016/02/11 17:45:26.640494 [system] Config file 'gateway.conf' does not exist and will not be used.\\n2016/02/11 17:45:26.640626 [system] Running Gateway v4.1.0 (ga7ba217)\\n2016/02/11 17:45:26.640632 [system] Connecting to database\\n2016/02/11 17:45:26.640889 [system] Starting gateway in developer mode\\n2016/02/11 17:45:26.640901 [system] Checking developer version license constraints\\naccounts:create name:\\\"<name>\\\"\\n\\n./gateway accounts:create name:\\\"HowTo\\\"\\n2016/02/11 17:45:52.123515 [system] Config file 'gateway.conf' does not exist and will not be used.\\n2016/02/11 17:45:52.123702 [system] Running Gateway v4.1.0 (ga7ba217)\\n2016/02/11 17:45:52.123707 [system] Connecting to database\\n2016/02/11 17:45:52.124015 [system] Starting gateway in developer mode\\n2016/02/11 17:45:52.124029 [system] Checking developer version license constraints\\nCreate account 1 HowTo\\n\",\n      \"language\": \"shell\",\n      \"name\": \"Create account\"\n    }\n  ]\n}\n[/block]\n## Update Account\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"./gateway accounts:update\\n2016/02/11 17:58:52.736046 [system] Config file 'gateway.conf' does not exist and will not be used.\\n2016/02/11 17:58:52.736171 [system] Running Gateway v4.1.0 (ga7ba217)\\n2016/02/11 17:58:52.736176 [system] Connecting to database\\n2016/02/11 17:58:52.736485 [system] Starting gateway in developer mode\\n2016/02/11 17:58:52.736501 [system] Checking developer version license constraints\\naccounts:update <id> [name:\\\"<name>\\\"]\\n\\n./gateway accounts:update 1 name:\\\"HowTo2\\\"\\n2016/02/11 17:59:43.677368 [system] Config file 'gateway.conf' does not exist and will not be used.\\n2016/02/11 17:59:43.677505 [system] Running Gateway v4.1.0 (ga7ba217)\\n2016/02/11 17:59:43.677511 [system] Connecting to database\\n2016/02/11 17:59:43.677898 [system] Starting gateway in developer mode\\n2016/02/11 17:59:43.677911 [system] Checking developer version license constraints\\nUpdated account 1 HowTo2\\n\",\n      \"language\": \"shell\",\n      \"name\": \"Update account\"\n    }\n  ]\n}\n[/block]\n## List Users\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"./gateway users\\n2016/02/11 17:46:45.876592 [system] Config file 'gateway.conf' does not exist and will not be used.\\n2016/02/11 17:46:45.876728 [system] Running Gateway v4.1.0 (ga7ba217)\\n2016/02/11 17:46:45.876734 [system] Connecting to database\\n2016/02/11 17:46:45.877029 [system] Starting gateway in developer mode\\n2016/02/11 17:46:45.877045 [system] Checking developer version license constraints\\nusers <account-id>\\n\\n./gateway users 1\\n2016/02/11 17:47:09.194014 [system] Config file 'gateway.conf' does not exist and will not be used.\\n2016/02/11 17:47:09.194186 [system] Running Gateway v4.1.0 (ga7ba217)\\n2016/02/11 17:47:09.194194 [system] Connecting to database\\n2016/02/11 17:47:09.194529 [system] Starting gateway in developer mode\\n2016/02/11 17:47:09.194543 [system] Checking developer version license constraints\\n=== Users for Account 1 HowTo\\n\",\n      \"language\": \"shell\",\n      \"name\": \"List users\"\n    }\n  ]\n}\n[/block]\n## Create User\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"./gateway users:create\\n2016/02/11 17:47:38.984183 [system] Config file 'gateway.conf' does not exist and will not be used.\\n2016/02/11 17:47:38.984322 [system] Running Gateway v4.1.0 (ga7ba217)\\n2016/02/11 17:47:38.984328 [system] Connecting to database\\n2016/02/11 17:47:38.984654 [system] Starting gateway in developer mode\\n2016/02/11 17:47:38.984668 [system] Checking developer version license constraints\\nusers:create <account-id> name:\\\"<name>\\\" email:<email> password:<password> admin:<true/false> confirmed:<true/false>\\n\\n./gateway users:create 1 name:\\\"How To\\\" email:\\\"howto:::at:::nanoscale.io\\\" password:\\\"password\\\" admin:true confirmed:true\\n2016/02/11 17:48:54.395102 [system] Config file 'gateway.conf' does not exist and will not be used.\\n2016/02/11 17:48:54.395264 [system] Running Gateway v4.1.0 (ga7ba217)\\n2016/02/11 17:48:54.395270 [system] Connecting to database\\n2016/02/11 17:48:54.395644 [system] Starting gateway in developer mode\\n2016/02/11 17:48:54.395656 [system] Checking developer version license constraints\\nCreated user 1 howto@nanoscale.io for account 1 HowTo\\n\",\n      \"language\": \"shell\",\n      \"name\": \"Create user\"\n    }\n  ]\n}\n[/block]\n## Update User\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"./gateway users:update\\n2016/02/11 18:00:25.463729 [system] Config file 'gateway.conf' does not exist and will not be used.\\n2016/02/11 18:00:25.463870 [system] Running Gateway v4.1.0 (ga7ba217)\\n2016/02/11 18:00:25.463876 [system] Connecting to database\\n2016/02/11 18:00:25.464208 [system] Starting gateway in developer mode\\n2016/02/11 18:00:25.464223 [system] Checking developer version license constraints\\nusers:update <id> [name:\\\"<name>\\\"] [email:<email>] [password:<password>] [admin:<true/false>] [confirmed:<true/false>]\\n\\n./gateway users:update 1 name:\\\"Renamed How To\\\"\\n2016/02/11 18:01:17.742940 [system] Config file 'gateway.conf' does not exist and will not be used.\\n2016/02/11 18:01:17.743140 [system] Running Gateway v4.1.0 (ga7ba217)\\n2016/02/11 18:01:17.743146 [system] Connecting to database\\n2016/02/11 18:01:17.743436 [system] Starting gateway in developer mode\\n2016/02/11 18:01:17.743452 [system] Checking developer version license constraints\\nUpdated user 1 howto@nanoscale.io for account 1 HowTo2\\n\",\n      \"language\": \"shell\",\n      \"name\": \"Update user\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"seed-account-and-user-info","type":"basic","title":"Manage Account and User Info"}

Manage Account and User Info


[block:callout] { "type": "info", "title": "Server versus Development Mode", "body": "Managing accounts and users only matters when you run nanoscale.io in server mode. By default, nanoscale.io starts in dev mode with a developer account already pre-seeded. When running in dev mode no login credentials are required to access the Admin Dashboard." } [/block] If you are looking to create and manage accounts and users outside of the self service registration system build into the product, you can use the following commands. ## List Commands [block:code] { "codes": [ { "code": "./gateway help\n2016/02/11 17:42:57.314954 [system] Config file 'gateway.conf' does not exist and will not be used.\n2016/02/11 17:42:57.315100 [system] Running Gateway v4.1.0 (ga7ba217)\n2016/02/11 17:42:57.315106 [system] Connecting to database\n2016/02/11 17:42:57.315416 [system] Starting gateway in developer mode\n2016/02/11 17:42:57.315439 [system] Checking developer version license constraints\naccounts\naccounts:create\naccounts:update\naccounts:destroy\nusers\nusers:create\nusers:update\nusers:destroy\n", "language": "shell", "name": "List commands" } ] } [/block] ## List Accounts [block:code] { "codes": [ { "code": "./gateway accounts\n2016/02/11 17:35:38.269104 [system] Config file 'gateway.conf' does not exist and will not be used.\n2016/02/11 17:35:38.269254 [system] Running Gateway v4.1.0 (ga7ba217)\n2016/02/11 17:35:38.269260 [system] Connecting to database\n2016/02/11 17:35:38.269593 [system] Starting gateway in developer mode\n2016/02/11 17:35:38.269616 [system] Checking developer version license constraints\n=== Accounts\n", "language": "shell", "name": "List accounts" } ] } [/block] ## Create Account [block:code] { "codes": [ { "code": "./gateway accounts:create\n2016/02/11 17:45:26.640494 [system] Config file 'gateway.conf' does not exist and will not be used.\n2016/02/11 17:45:26.640626 [system] Running Gateway v4.1.0 (ga7ba217)\n2016/02/11 17:45:26.640632 [system] Connecting to database\n2016/02/11 17:45:26.640889 [system] Starting gateway in developer mode\n2016/02/11 17:45:26.640901 [system] Checking developer version license constraints\naccounts:create name:\"<name>\"\n\n./gateway accounts:create name:\"HowTo\"\n2016/02/11 17:45:52.123515 [system] Config file 'gateway.conf' does not exist and will not be used.\n2016/02/11 17:45:52.123702 [system] Running Gateway v4.1.0 (ga7ba217)\n2016/02/11 17:45:52.123707 [system] Connecting to database\n2016/02/11 17:45:52.124015 [system] Starting gateway in developer mode\n2016/02/11 17:45:52.124029 [system] Checking developer version license constraints\nCreate account 1 HowTo\n", "language": "shell", "name": "Create account" } ] } [/block] ## Update Account [block:code] { "codes": [ { "code": "./gateway accounts:update\n2016/02/11 17:58:52.736046 [system] Config file 'gateway.conf' does not exist and will not be used.\n2016/02/11 17:58:52.736171 [system] Running Gateway v4.1.0 (ga7ba217)\n2016/02/11 17:58:52.736176 [system] Connecting to database\n2016/02/11 17:58:52.736485 [system] Starting gateway in developer mode\n2016/02/11 17:58:52.736501 [system] Checking developer version license constraints\naccounts:update <id> [name:\"<name>\"]\n\n./gateway accounts:update 1 name:\"HowTo2\"\n2016/02/11 17:59:43.677368 [system] Config file 'gateway.conf' does not exist and will not be used.\n2016/02/11 17:59:43.677505 [system] Running Gateway v4.1.0 (ga7ba217)\n2016/02/11 17:59:43.677511 [system] Connecting to database\n2016/02/11 17:59:43.677898 [system] Starting gateway in developer mode\n2016/02/11 17:59:43.677911 [system] Checking developer version license constraints\nUpdated account 1 HowTo2\n", "language": "shell", "name": "Update account" } ] } [/block] ## List Users [block:code] { "codes": [ { "code": "./gateway users\n2016/02/11 17:46:45.876592 [system] Config file 'gateway.conf' does not exist and will not be used.\n2016/02/11 17:46:45.876728 [system] Running Gateway v4.1.0 (ga7ba217)\n2016/02/11 17:46:45.876734 [system] Connecting to database\n2016/02/11 17:46:45.877029 [system] Starting gateway in developer mode\n2016/02/11 17:46:45.877045 [system] Checking developer version license constraints\nusers <account-id>\n\n./gateway users 1\n2016/02/11 17:47:09.194014 [system] Config file 'gateway.conf' does not exist and will not be used.\n2016/02/11 17:47:09.194186 [system] Running Gateway v4.1.0 (ga7ba217)\n2016/02/11 17:47:09.194194 [system] Connecting to database\n2016/02/11 17:47:09.194529 [system] Starting gateway in developer mode\n2016/02/11 17:47:09.194543 [system] Checking developer version license constraints\n=== Users for Account 1 HowTo\n", "language": "shell", "name": "List users" } ] } [/block] ## Create User [block:code] { "codes": [ { "code": "./gateway users:create\n2016/02/11 17:47:38.984183 [system] Config file 'gateway.conf' does not exist and will not be used.\n2016/02/11 17:47:38.984322 [system] Running Gateway v4.1.0 (ga7ba217)\n2016/02/11 17:47:38.984328 [system] Connecting to database\n2016/02/11 17:47:38.984654 [system] Starting gateway in developer mode\n2016/02/11 17:47:38.984668 [system] Checking developer version license constraints\nusers:create <account-id> name:\"<name>\" email:<email> password:<password> admin:<true/false> confirmed:<true/false>\n\n./gateway users:create 1 name:\"How To\" email:\"howto@nanoscale.io\" password:\"password\" admin:true confirmed:true\n2016/02/11 17:48:54.395102 [system] Config file 'gateway.conf' does not exist and will not be used.\n2016/02/11 17:48:54.395264 [system] Running Gateway v4.1.0 (ga7ba217)\n2016/02/11 17:48:54.395270 [system] Connecting to database\n2016/02/11 17:48:54.395644 [system] Starting gateway in developer mode\n2016/02/11 17:48:54.395656 [system] Checking developer version license constraints\nCreated user 1 howto@nanoscale.io for account 1 HowTo\n", "language": "shell", "name": "Create user" } ] } [/block] ## Update User [block:code] { "codes": [ { "code": "./gateway users:update\n2016/02/11 18:00:25.463729 [system] Config file 'gateway.conf' does not exist and will not be used.\n2016/02/11 18:00:25.463870 [system] Running Gateway v4.1.0 (ga7ba217)\n2016/02/11 18:00:25.463876 [system] Connecting to database\n2016/02/11 18:00:25.464208 [system] Starting gateway in developer mode\n2016/02/11 18:00:25.464223 [system] Checking developer version license constraints\nusers:update <id> [name:\"<name>\"] [email:<email>] [password:<password>] [admin:<true/false>] [confirmed:<true/false>]\n\n./gateway users:update 1 name:\"Renamed How To\"\n2016/02/11 18:01:17.742940 [system] Config file 'gateway.conf' does not exist and will not be used.\n2016/02/11 18:01:17.743140 [system] Running Gateway v4.1.0 (ga7ba217)\n2016/02/11 18:01:17.743146 [system] Connecting to database\n2016/02/11 18:01:17.743436 [system] Starting gateway in developer mode\n2016/02/11 18:01:17.743452 [system] Checking developer version license constraints\nUpdated user 1 howto@nanoscale.io for account 1 HowTo2\n", "language": "shell", "name": "Update user" } ] } [/block]