Skip to main content
This guide walks you through generating, inspecting, and removing a Stellar identity using the CLI.

1. Generate a New Identity

Run the following command to create a new keypair and save it under the alias named carol:
Output:
The CLI stores this identity in a TOML file.

2. Verify the Identity File

Navigate to the configuration directory and list the contents:
cookbooktest.ignore
Output:
The file carol.toml contains the seed phrase for your identity.

3. View the Seed Phrase

cookbooktest.ignore
Output:
Note: The seed phrase is sensitive information. Handle it with care and never expose it publicly.

4. Derive the Secret Key

To display the secret key for the carol identity:
Output:
Note: The secret key is sensitive information. Handle it with care and never expose it publicly.

5. Derive the Public Key

To display the corresponding public key for the carol identity:
Output:
This is the public address of your key.

6. Fund this account

Output:
You can also fund the account while creating the key by using stellar keys generate --fund.

7. Remove the Identity

When you no longer need this identity, remove it using:
Output:
At this point, the identity file carol.toml is deleted, and the alias is no longer available in the CLI.