'How to get the seed phrase of near sub accounts?

I am creating a subaccount using command: near create-account 123.xyz.testnet --masterAccount xyz.testnet

But it only generates the public key and private key, how to get the seed phrase of the account so that I can login with near web wallet.

Near web wallet doesn't seem to support sub-accounts, as "." is not allowed.



Solution 1:[1]

There seems to be no such feature in the current near-cli implementation. See this feature request: https://github.com/near/near-cli/issues/716

Solution 2:[2]

You could login with your subaccount private key: https://wallet.testnet.near.org/auto-import-secret-key#123.xyz.testnet/YOUR_PRIVATE_KEY

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Vlad Frolov
Solution 2 Konstantin Litvin