Page cover image

Basic Command

Overview

The "tw" CLI is a command-line interface that allows you to add, remove, list, and clean your address aliases.

Usage

To use the "tw" CLI, run the following command:

tw [options] [command] [alias]

Options

The following options are available:

  • -V, --version: Output the version number of the "tw" CLI.

  • -h, --help: Display help for the "tw" CLI.

Commands

The following commands are available:

  • add [options] [alias] [address]: Add an alias to your address.

  • rm [alias]: Remove an alias from your address.

  • ls|list: List existing aliases and addresses.

  • clean [options]: Clear existing aliases.

Command: add

The tw add command allows you to add an alias to your address.

tw add [options] [alias] [address]
  • alias: Give your address an alias.

  • address: Your address.

  • -f, --force: Overwrite existing alias (default: false).

  • -h, --help: Display help for the tw add command.

Command: rm

The tw rm command allows you to remove an alias from your address.

tw rm #Provide a list of aliases that the user can selectively remove from the list
tw rm home #Delete the alias with the name home
  • alias: Enter the point to be deleted.

  • -h, --help: Display help for the tw rm command.

Command: ls

The tw ls|list command allows you to list existing aliases and addresses.

tw ls|list [options]
  • -h, --help: Display help for the tw ls|list command.

Command: clean

The tw clean command allows you to clear existing aliases.

tw clean
  • -f, --force: Force empty (default: false).

  • -h, --help: Display help for the tw clean command.

最后更新于