onflow / onflow/flow-cli

Create accounts & deployments in `flow init`

Open
#1,854 0 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 To Be Solved

flow init is an effective way to instantiate a Cadence project so that developers can begin writing Cadence with a single command. However, in order to deploy their contracts, the developer must still create accounts and configure deployments in their flow.json, which can be burdensome.

(Optional): Suggest A Solution

To reduce friciton, flow init can create accounts & configure a default deployment for the generated starter contract. flow project deploy --network=testnet (or mainnet) would then work out-of-box. This gives developers a 0-configuration path to create and deploy a contract with 2 commands.

The account creation could be parallelized for both testnet/mainnet & the total slowdown shouldn't be more than ~8s. Users who wish to opt out should have the option to do so using a flag, e.g. --skip-deployments.

(Optional): Context

Reduce developer friction deploying contracts.

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 at the flow init command entry point and inspect the existing account-creation and deployment configuration commands. Verify the generated project can run flow project deploy --network=testnet or mainnet without manual setup, while an opt-out flag such as --skip-deployments prevents that setup.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.