{"id":18321079,"url":"https://github.com/workos/migrate-clerk-users","last_synced_at":"2025-04-24T00:48:04.607Z","repository":{"id":241594616,"uuid":"804945400","full_name":"workos/migrate-clerk-users","owner":"workos","description":"Tool for importing Clerk users into WorkOS, including setting password hashes.","archived":false,"fork":false,"pushed_at":"2025-03-28T23:36:18.000Z","size":55,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-20T09:59:13.447Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/workos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-23T15:18:32.000Z","updated_at":"2025-01-30T04:39:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"23923305-28fb-464f-85cc-2dcfbbf7348b","html_url":"https://github.com/workos/migrate-clerk-users","commit_stats":null,"previous_names":["workos/migrate-clerk-users"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Fmigrate-clerk-users","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Fmigrate-clerk-users/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Fmigrate-clerk-users/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Fmigrate-clerk-users/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/workos","download_url":"https://codeload.github.com/workos/migrate-clerk-users/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250540955,"owners_count":21447426,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T18:18:17.057Z","updated_at":"2025-04-24T00:48:04.579Z","avatar_url":"https://github.com/workos.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# migrate-clerk-users\n\nTool for importing Clerk users into WorkOS, including setting password hashes.\n\nFor more information on migrating from Clerk to WorkOS, refer to [the docs](https://workos.com/docs/migrate/clerk).\n\n## Usage\n\n```bash\nWORKOS_SECRET_KEY=sk_test_123 npx github:workos/migrate-clerk-users --help\n```\n\nExample output\n\n```\n% WORKOS_SECRET_KEY=sk_test_123 npx github:workos/migrate-clerk-users \\\n  --user-export example-input.json\nNeed to install the following packages:\n  github:workos/migrate-clerk-users\nOk to proceed? (y) y\nImporting users from example-input.json\n(1) Imported user paul@atreides.com as WorkOS User user_01HCYZ09NQHZ4X1ZRVZ3V09WWW\nMultiple email addresses found for user_2gRua7G8WRYBglzXE5sxRbIRkfJ and multi email processing is disabled, skipping.\n(2) Could not find or create user user_2gRua7G8WRYBglzXE5sxRbIRkfJ\n(3) Imported user vlad@harkonnen.com as WorkOS User user_01HCYZ09PRH8THC7ZEDYBEJ008\nDone importing. 4 of 6 user records imported.\n```\n\n## Input file format\n\nThis tool consumes the export file [obtained from Clerk support by filing a ticket](https://clerk.com/docs/deployments/exporting-users#migrating-your-users-to-a-new-system), which can include hashed passwords.\n\nNote that the script will exit with an error if any custom password hashes are present.\n\n## Users with multiple passwords\n\nClerk's export file returns all email addresses associated with the user under the `email_addresses` field. Unfortunately in the case of multiple email addresses there's no way to know which is the default without querying the Clerk API.\n\nBy passing in the `--process-multi-email true` flag to this tool, the first email address in the list will be used as the primary email address when creating the WorkOS user.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkos%2Fmigrate-clerk-users","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fworkos%2Fmigrate-clerk-users","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkos%2Fmigrate-clerk-users/lists"}