--- title: snrd auth register description: Register a new decentralized identity using WebAuthn/Passkey authentication --- Register a new decentralized identity using WebAuthn/Passkey authentication. This command will: 1. Start a local auth server 2. Open your browser for WebAuthn credential creation 3. Create a DID document with your WebAuthn credential 4. Auto-create a DWN vault for data storage ## Usage ```shell snrd auth register [flags] ``` ## Flags ## Global Flags ## Examples ### Basic registration ```shell snrd auth register --username alice ``` ### Registration without auto vault creation ```shell snrd auth register --username alice --auto-vault=false ``` ### Registration with custom chain ID ```shell snrd auth register --username alice --chain-id sonrtest_1-1 ``` ## See Also - [snrd auth](./snrd_auth) - User authentication with Passkeys - [snrd auth login](./snrd_auth) - Login with WebAuthn authentication