onflow / onflow/flow-cli

Disable account creation command for mainnet

Open
#1,562 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature
Dominant language
Go
Stars
209
Forks
87
Avg merge
1d 17h
Merged PRs (30d)
3

Description

Issue Description:

Currently, the flow accounts create command is enabled for mainnet in the CLI. This command allows users to create accounts directly on the mainnet, which could lead to unintended consequences or misuse. To prevent this, the flow accounts create command should be disabled specifically for the mainnet.

Suggested Solution:

When users attempt to use flow accounts create on mainnet, it should display a message guiding them on how to create an account for mainnet using alternative methods.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the implementation and tests for the flow accounts create command. Verify how the CLI identifies mainnet, then update the behavior so that command attempts there are rejected with guidance for alternative account creation methods while other networks remain unaffected.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
blockchain, cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.