Skip to content

[Feature] Updates CLI flags for leo build and leo run #28804

@alex-aleo

Description

@alex-aleo

🚀 Feature

Currently there are a number of flags in the Leo CLI for leo build that are either ambiguous or don't seem to serve much of a purpose.

Ambiguous:

--offline
    Enables offline mode.
--no-cache
    Don't use the dependency cache.
--no-local
    Don't use the local source code.

Do these matter for leo build?:

--private-key <PRIVATE_KEY>
    The private key to use for the deployment. Overrides the `PRIVATE_KEY` environment variable.
--network <NETWORK>
    The network to deploy to. Overrides the `NETWORK` environment variable.
--endpoint <ENDPOINT>
    The endpoint to deploy to. Overrides the `ENDPOINT` environment variable.
--devnet
    Whether the network is a devnet. If not set, defaults to the `DEVNET` environment variable.
--consensus-heights <CONSENSUS_HEIGHTS>
    Optional consensus heights to use. This should only be set if you are using a custom devnet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureA new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions