# Class: Command

## vertx-shell-js/command~ Command

#### new Command()

  Source:
    - command.js, line 31

### Methods

#### cli() → {CLI}

  Source:
    - command.js, line 57

  ##### Returns:

  - the command line interface, can be null
  - Type
      CLI

#### complete(completion)

  Perform command completion, when the command is done completing it should call or )} method to signal completion is done.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `completion` | Completion | the completion object

  Source:
    - command.js, line 84

#### name() → {string}

  Source:
    - command.js, line 43

  ##### Returns:

  - the command name
  - Type
      string

#### process(process)

  Process the command, when the command is done processing it should call the CommandProcess#end method.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `process` | CommandProcess | the command process

  Source:
    - command.js, line 70