Tool for importing Clerk users into WorkOS, including setting password hashes.
For more information on migrating from Clerk to WorkOS, refer to the docs.
WORKOS_SECRET_KEY=sk_test_123 npx github:workos/migrate-clerk-users --help
Example output
% WORKOS_SECRET_KEY=sk_test_123 npx github:workos/migrate-clerk-users \
--user-export example-input.json
Need to install the following packages:
github:workos/migrate-clerk-users
Ok to proceed? (y) y
Importing users from example-input.json
(1) Imported user [email protected] as WorkOS User user_01HCYZ09NQHZ4X1ZRVZ3V09WWW
Multiple email addresses found for user_2gRua7G8WRYBglzXE5sxRbIRkfJ and multi email processing is disabled, skipping.
(2) Could not find or create user user_2gRua7G8WRYBglzXE5sxRbIRkfJ
(3) Imported user [email protected] as WorkOS User user_01HCYZ09PRH8THC7ZEDYBEJ008
Done importing. 4 of 6 user records imported.
This tool consumes the export file obtained from Clerk support by filing a ticket, which can include hashed passwords.
Note that the script will exit with an error if any custom password hashes are present.