Summary
The transactions subcommand currently does not have a shorter alias. Adding a tx alias would improve developer experience by reducing typing and aligning with common CLI patterns.
Current Behavior
Users must type the full transactions command:
flow transactions send tx.cdc
flow transactions get 07a8...b433
flow transactions build ./transaction.cdc
Proposed Behavior
Users should be able to use tx as a shorthand:
flow tx send tx.cdc
flow tx get 07a8...b433
flow tx build ./transaction.cdc
Implementation
Add an Aliases field to the command definition in internal/transactions/transactions.go:
var Cmd = &cobra.Command{
Use: "transactions",
Aliases: []string{"tx"},
Short: "Build, sign, send and retrieve transactions",
TraverseChildren: true,
GroupID: "interactions",
}
Summary
The
transactionssubcommand currently does not have a shorter alias. Adding atxalias would improve developer experience by reducing typing and aligning with common CLI patterns.Current Behavior
Users must type the full
transactionscommand:Proposed Behavior
Users should be able to use
txas a shorthand:Implementation
Add an
Aliasesfield to the command definition ininternal/transactions/transactions.go: