# Class: Command

## vertx-shell-js/command~ Command

#### new Command()

Source:
  - vertx-shell-js/command.js, line 32

### Methods

#### cli() → {CLI}

Source:
  - vertx-shell-js/command.js, line 56

##### 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:
  - vertx-shell-js/command.js, line 86

#### createProcess(args) → {Process}

Create a new process with the passed arguments.

##### Parameters:

Name | Type | Description
--- | --- | ---
`args` | Array.<CliToken> | the process arguments

Source:
  - vertx-shell-js/command.js, line 70

##### Returns:

the process

Type
  Process

#### name() → {string}

Source:
  - vertx-shell-js/command.js, line 43

##### Returns:

the command name

Type
  string