npm package: @myask-io/cli
Description: MyAsk CLI allows users to interact with the MyAsk API directly from their local command line massively streamlining programmer workflow
Author: Andrew Chaney
Latest version: 0.0.4

MyAsk CLI
=================

MyAsk CLI allows users to interact with the MyAsk API directly from their local command line massively streamlining programmer workflow

![MyAsk Logo](MyAsk-social-logo.png)


[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
[![Version](https://img.shields.io/npm/v/claire.svg)](https://npmjs.org/package/claire)
[![Downloads/week](https://img.shields.io/npm/dw/claire.svg)](https://npmjs.org/package/claire)


<!-- toc -->
* [Usage](#usage)
* [Commands](#commands)
<!-- tocstop -->
# Usage
<!-- usage -->
```sh-session
$ npm install -g @myask-io/cli
$ myask-js COMMAND
running command...
$ myask-js (--version)
@myask-io/cli/0.0.4 darwin-arm64 node-v22.14.0
$ myask-js --help [COMMAND]
USAGE
  $ myask-js COMMAND
...
```
<!-- usagestop -->
# Commands
<!-- commands -->
* [`myask-js api:invitation:create [EMAIL]`](#myask-js-apiinvitationcreate-email)
* [`myask-js api:invitation:list`](#myask-js-apiinvitationlist)
* [`myask-js api:project:create`](#myask-js-apiprojectcreate)
* [`myask-js api:project:delete [PROJECTID]`](#myask-js-apiprojectdelete-projectid)
* [`myask-js api:project:set`](#myask-js-apiprojectset)
* [`myask-js api:project:show [PROJECTID]`](#myask-js-apiprojectshow-projectid)
* [`myask-js api:project:update`](#myask-js-apiprojectupdate)
* [`myask-js api:question:delete [QUESTIONID]`](#myask-js-apiquestiondelete-questionid)
* [`myask-js api:question:show [QUESTIONID]`](#myask-js-apiquestionshow-questionid)
* [`myask-js config`](#myask-js-config)
* [`myask-js help [COMMAND]`](#myask-js-help-command)
* [`myask-js info`](#myask-js-info)
* [`myask-js init`](#myask-js-init)
* [`myask-js plugins`](#myask-js-plugins)
* [`myask-js plugins:add PLUGIN`](#myask-js-pluginsadd-plugin)
* [`myask-js plugins:inspect PLUGIN...`](#myask-js-pluginsinspect-plugin)
* [`myask-js plugins:install PLUGIN`](#myask-js-pluginsinstall-plugin)
* [`myask-js plugins:link PATH`](#myask-js-pluginslink-path)
* [`myask-js plugins:remove [PLUGIN]`](#myask-js-pluginsremove-plugin)
* [`myask-js plugins:reset`](#myask-js-pluginsreset)
* [`myask-js plugins:uninstall [PLUGIN]`](#myask-js-pluginsuninstall-plugin)
* [`myask-js plugins:unlink [PLUGIN]`](#myask-js-pluginsunlink-plugin)
* [`myask-js plugins:update`](#myask-js-pluginsupdate)
* [`myask-js prompt [PROMPT]`](#myask-js-prompt-prompt)

## `myask-js api:invitation:create [EMAIL]`

Send MyAsk invitation to a new user.

```
USAGE
  $ myask-js api:invitation:create [EMAIL]

ARGUMENTS
  EMAIL  Email of the user to invite to MyAsk

DESCRIPTION
  Send MyAsk invitation to a new user.
```

_See code: [src/commands/api/invitation/create.ts](https://github.com/MyAsk-IO/cli/blob/v0.0.4/src/commands/api/invitation/create.ts)_

## `myask-js api:invitation:list`

Show sent MyAsk invitations.

```
USAGE
  $ myask-js api:invitation:list

DESCRIPTION
  Show sent MyAsk invitations.
```

_See code: [src/commands/api/invitation/list.ts](https://github.com/MyAsk-IO/cli/blob/v0.0.4/src/commands/api/invitation/list.ts)_

## `myask-js api:project:create`

Create new project in MyAsk API

```
USAGE
  $ myask-js api:project:create [--name <value>] [--description <value>]

FLAGS
  --description=<value>  Project description
  --name=<value>         Project name

DESCRIPTION
  Create new project in MyAsk API
```

_See code: [src/commands/api/project/create.ts](https://github.com/MyAsk-IO/cli/blob/v0.0.4/src/commands/api/project/create.ts)_

## `myask-js api:project:delete [PROJECTID]`

Delete MyAsk project

```
USAGE
  $ myask-js api:project:delete [PROJECTID] [--list] [-p <value>]

ARGUMENTS
  PROJECTID  ID of project to delete

FLAGS
  -p, --projectId=<value>  ID of project to delete
      --list               List projects and select to delete

DESCRIPTION
  Delete MyAsk project
```

_See code: [src/commands/api/project/delete.ts](https://github.com/MyAsk-IO/cli/blob/v0.0.4/src/commands/api/project/delete.ts)_

## `myask-js api:project:set`

List users projects and set active project in MyAsk config.

```
USAGE
  $ myask-js api:project:set

DESCRIPTION
  List users projects and set active project in MyAsk config.
```

_See code: [src/commands/api/project/set.ts](https://github.com/MyAsk-IO/cli/blob/v0.0.4/src/commands/api/project/set.ts)_

## `myask-js api:project:show [PROJECTID]`

Show information for MyAsk project

```
USAGE
  $ myask-js api:project:show [PROJECTID] [--list] [-p <value>]

ARGUMENTS
  PROJECTID  ID of project to display

FLAGS
  -p, --projectId=<value>  ID of project to display
      --list               List projects and select to view

DESCRIPTION
  Show information for MyAsk project
```

_See code: [src/commands/api/project/show.ts](https://github.com/MyAsk-IO/cli/blob/v0.0.4/src/commands/api/project/show.ts)_

## `myask-js api:project:update`

Update project information in MyAsk API

```
USAGE
  $ myask-js api:project:update

DESCRIPTION
  Update project information in MyAsk API
```

_See code: [src/commands/api/project/update.ts](https://github.com/MyAsk-IO/cli/blob/v0.0.4/src/commands/api/project/update.ts)_

## `myask-js api:question:delete [QUESTIONID]`

Delete MyAsk question

```
USAGE
  $ myask-js api:question:delete [QUESTIONID] [--list] [-p <value>]

ARGUMENTS
  QUESTIONID  ID of question to delete

FLAGS
  -p, --questionId=<value>  ID of question to delete
      --list                List questions and select to delete

DESCRIPTION
  Delete MyAsk question
```

_See code: [src/commands/api/question/delete.ts](https://github.com/MyAsk-IO/cli/blob/v0.0.4/src/commands/api/question/delete.ts)_

## `myask-js api:question:show [QUESTIONID]`

Show details for MyAsk question

```
USAGE
  $ myask-js api:question:show [QUESTIONID] [--list] [-q <value>] [-s]

ARGUMENTS
  QUESTIONID  ID of question to display

FLAGS
  -q, --questionId=<value>  ID of question to display
  -s, --skipResponse        Do not include question response in output
      --list                List questions and select to view

DESCRIPTION
  Show details for MyAsk question
```

_See code: [src/commands/api/question/show.ts](https://github.com/MyAsk-IO/cli/blob/v0.0.4/src/commands/api/question/show.ts)_

## `myask-js config`

View current or set new MyAsk configuration values.

```
USAGE
  $ myask-js config [-h <value>] [-t <value>]

FLAGS
  -h, --host=<value>   Set API base URL
  -t, --token=<value>  Set MyAsk API key

DESCRIPTION
  View current or set new MyAsk configuration values.
```

_See code: [src/commands/config.ts](https://github.com/MyAsk-IO/cli/blob/v0.0.4/src/commands/config.ts)_

## `myask-js help [COMMAND]`

Display help for myask-js.

```
USAGE
  $ myask-js help [COMMAND...] [-n]

ARGUMENTS
  COMMAND...  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for myask-js.
```

_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.25/src/commands/help.ts)_

## `myask-js info`

Display current project and configuration information.

```
USAGE
  $ myask-js info

DESCRIPTION
  Display current project and configuration information.
```

_See code: [src/commands/info.ts](https://github.com/MyAsk-IO/cli/blob/v0.0.4/src/commands/info.ts)_

## `myask-js init`

Initialize MyAsk CLI.

```
USAGE
  $ myask-js init

DESCRIPTION
  Initialize MyAsk CLI.
```

_See code: [src/commands/init.ts](https://github.com/MyAsk-IO/cli/blob/v0.0.4/src/commands/init.ts)_

## `myask-js plugins`

List installed plugins.

```
USAGE
  $ myask-js plugins [--json] [--core]

FLAGS
  --core  Show core plugins.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  List installed plugins.

EXAMPLES
  $ myask-js plugins
```

_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.31/src/commands/plugins/index.ts)_

## `myask-js plugins:add PLUGIN`

Installs a plugin into myask-js.

```
USAGE
  $ myask-js plugins:add PLUGIN... [--json] [-f] [-h] [-s | -v]

ARGUMENTS
  PLUGIN...  Plugin to install.

FLAGS
  -f, --force    Force npm to fetch remote resources even if a local copy exists on disk.
  -h, --help     Show CLI help.
  -s, --silent   Silences npm output.
  -v, --verbose  Show verbose npm output.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Installs a plugin into myask-js.

  Uses npm to install plugins.

  Installation of a user-installed plugin will override a core plugin.

  Use the MYASK_JS_NPM_LOG_LEVEL environment variable to set the npm loglevel.
  Use the MYASK_JS_NPM_REGISTRY environment variable to set the npm registry.

ALIASES
  $ myask-js plugins:add

EXAMPLES
  Install a plugin from npm registry.

    $ myask-js plugins:add myplugin

  Install a plugin from a github url.

    $ myask-js plugins:add https://github.com/someuser/someplugin

  Install a plugin from a github slug.

    $ myask-js plugins:add someuser/someplugin
```

## `myask-js plugins:inspect PLUGIN...`

Displays installation properties of a plugin.

```
USAGE
  $ myask-js plugins:inspect PLUGIN...

ARGUMENTS
  PLUGIN...  [default: .] Plugin to inspect.

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Displays installation properties of a plugin.

EXAMPLES
  $ myask-js plugins:inspect myplugin
```

_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.31/src/commands/plugins/inspect.ts)_

## `myask-js plugins:install PLUGIN`

Installs a plugin into myask-js.

```
USAGE
  $ myask-js plugins:install PLUGIN... [--json] [-f] [-h] [-s | -v]

ARGUMENTS
  PLUGIN...  Plugin to install.

FLAGS
  -f, --force    Force npm to fetch remote resources even if a local copy exists on disk.
  -h, --help     Show CLI help.
  -s, --silent   Silences npm output.
  -v, --verbose  Show verbose npm output.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Installs a plugin into myask-js.

  Uses npm to install plugins.

  Installation of a user-installed plugin will override a core plugin.

  Use the MYASK_JS_NPM_LOG_LEVEL environment variable to set the npm loglevel.
  Use the MYASK_JS_NPM_REGISTRY environment variable to set the npm registry.

ALIASES
  $ myask-js plugins:add

EXAMPLES
  Install a plugin from npm registry.

    $ myask-js plugins:install myplugin

  Install a plugin from a github url.

    $ myask-js plugins:install https://github.com/someuser/someplugin

  Install a plugin from a github slug.

    $ myask-js plugins:install someuser/someplugin
```

_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.31/src/commands/plugins/install.ts)_

## `myask-js plugins:link PATH`

Links a plugin into the CLI for development.

```
USAGE
  $ myask-js plugins:link PATH [-h] [--install] [-v]

ARGUMENTS
  PATH  [default: .] path to plugin

FLAGS
  -h, --help          Show CLI help.
  -v, --verbose
      --[no-]install  Install dependencies after linking the plugin.

DESCRIPTION
  Links a plugin into the CLI for development.

  Installation of a linked plugin will override a user-installed or core plugin.

  e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
  command will override the user-installed or core plugin implementation. This is useful for development work.


EXAMPLES
  $ myask-js plugins:link myplugin
```

_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.31/src/commands/plugins/link.ts)_

## `myask-js plugins:remove [PLUGIN]`

Removes a plugin from the CLI.

```
USAGE
  $ myask-js plugins:remove [PLUGIN...] [-h] [-v]

ARGUMENTS
  PLUGIN...  plugin to uninstall

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Removes a plugin from the CLI.

ALIASES
  $ myask-js plugins:unlink
  $ myask-js plugins:remove

EXAMPLES
  $ myask-js plugins:remove myplugin
```

## `myask-js plugins:reset`

Remove all user-installed and linked plugins.

```
USAGE
  $ myask-js plugins:reset [--hard] [--reinstall]

FLAGS
  --hard       Delete node_modules and package manager related files in addition to uninstalling plugins.
  --reinstall  Reinstall all plugins after uninstalling.
```

_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.31/src/commands/plugins/reset.ts)_

## `myask-js plugins:uninstall [PLUGIN]`

Removes a plugin from the CLI.

```
USAGE
  $ myask-js plugins:uninstall [PLUGIN...] [-h] [-v]

ARGUMENTS
  PLUGIN...  plugin to uninstall

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Removes a plugin from the CLI.

ALIASES
  $ myask-js plugins:unlink
  $ myask-js plugins:remove

EXAMPLES
  $ myask-js plugins:uninstall myplugin
```

_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.31/src/commands/plugins/uninstall.ts)_

## `myask-js plugins:unlink [PLUGIN]`

Removes a plugin from the CLI.

```
USAGE
  $ myask-js plugins:unlink [PLUGIN...] [-h] [-v]

ARGUMENTS
  PLUGIN...  plugin to uninstall

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Removes a plugin from the CLI.

ALIASES
  $ myask-js plugins:unlink
  $ myask-js plugins:remove

EXAMPLES
  $ myask-js plugins:unlink myplugin
```

## `myask-js plugins:update`

Update installed plugins.

```
USAGE
  $ myask-js plugins:update [-h] [-v]

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Update installed plugins.
```

_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.31/src/commands/plugins/update.ts)_

## `myask-js prompt [PROMPT]`

Send a prompt to MyAsk API and retrieve a response.

```
USAGE
  $ myask-js prompt [PROMPT] [-p <value>] [-F <value>...] [-c <value>...]

ARGUMENTS
  PROMPT  Prompt to send

FLAGS
  -F, --inputFile=<value>...   Path to source file(s). (multiple)
  -c, --contextIds=<value>...  Comma-separated list of context question IDs
  -p, --prompt=<value>         Prompt to send

DESCRIPTION
  Send a prompt to MyAsk API and retrieve a response.

EXAMPLES
  $ myask-js prompt -p "How do I add ActiveAdmin to a Rails 7 app?"

  $ myask-js prompt -p "Refactor this file" -F path/to/src/file.ts

  $ myask-js prompt -F path/to/input.txt

  $ myask-js prompt -p "Help me combine these files:" -F path/to/file1.ts -F path/to/file2.ts

  $ myask-js prompt -p "Analyze this code" -c 123,456,789
```

_See code: [src/commands/prompt.ts](https://github.com/MyAsk-IO/cli/blob/v0.0.4/src/commands/prompt.ts)_
<!-- commandsstop -->