# 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 58

##### 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 88

#### 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 72

##### Returns:

the process

Type
  Process

#### name() → {string}

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

##### Returns:

- the command name
- Type
    string