npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@twilio-labs/plugin-alias

v1.1.0

Published

Plugin to manage alias for twilio

Downloads

7

Readme

@twilio-labs/plugin-alias

NPM

NPM Version Downloads/week License: MIT Node.js CI build-test

Access, store and use your favorite aliases for CLI commands with this plugin. It supports all the CLIs which are built over OCLIF. Supports OCLIF v1 and v2 both.

Getting Started

Install the Twilio Command Line Interface (Or use with any OCLIF CLI)

Via npm or yarn:

$ npm install -g twilio-cli
$ yarn global add twilio-cli

Via homebrew:

$ brew tap twilio/brew && brew install twilio

See the Twilio CLI documentation for more information.

Install the plugin for general use

The following step will install the plugin from NPM and is recommended if you are interested in trying out the commands in the latest release.

For Twilio CLI:

$ twilio plugins:install @twilio-labs/plugin-alias

For Other OCLIF CLI, say oclif-example:

$ oclif-example plugins:install @twilio-labs/plugin-alias

Install the plugin for local development

The following step will install the plugin from a local directory. Use this option if you are interested in modifying the plugin and testing it out from the Twilio CLI.

For Twilio CLI:

$ twilio plugins:link /path/to/plugin-alias

For Other OCLIF CLI, say oclif-example:

$ oclif-example plugins:link /path/to/plugin-alias

Prerequisites: Cloned repository locally

Setup the local alias directory

The following step will create a directory named "alias" in the local data directory of the user. Use this command before running any other alias command to setup the necessary directory structure.

For Twilio CLI:

$ twilio alias:setup

For Other OCLIF CLI, say oclif-example:

$ oclif-example alias:setup

Usage

Here we have shown the usage with Twilio CLI. If you are using some other CLI, change "twilio" with your CLI Name, say "oclif-example".

$ twilio --help alias
USAGE
  $ twilio alias
...

Commands

twilio alias:add [NAME] [COMMAND]

Create a new alias to access Twilio CLI commands

USAGE
  $ twilio alias:add [NAME] [COMMAND]

ARGUMENTS
  NAME     alias name to add
  COMMAND  command to be aliased

OPTIONS
  -f, --force  Force overwrite the alias if it already exists

See code: src/commands/alias/add.ts

twilio alias:delete [NAME]

Delete an alias

USAGE
  $ twilio alias:delete [NAME]

ARGUMENTS
  NAME  alias name to delete

See code: src/commands/alias/delete.ts

twilio alias:export [DEST]

Export the aliases

USAGE
  $ twilio alias:export [DEST]

ARGUMENTS
  DEST  path of alias file

See code: src/commands/alias/export.ts

twilio alias:import [DEST]

Import aliases from a file

USAGE
  $ twilio alias:import [DEST]

ARGUMENTS
  DEST  path of alias file

See code: src/commands/alias/import.ts

twilio alias:list

View the aliases

USAGE
  $ twilio alias:list

See code: src/commands/alias/list.ts

twilio alias:setup

Setup local directory for storing aliases

USAGE
  $ twilio alias:setup

See code: src/commands/alias/setup.ts

twilio alias:use [ALIAS]

Use an alias for a Twilio CLI command

USAGE
  $ twilio alias:use [ALIAS]

ARGUMENTS
  ALIAS  name of the alias to be used

ALIASES
  $ twilio use
  $ twilio :use

See code: src/commands/alias/use.ts

Cleanup

If you want to update or uninstall the plugin, then we recommend that before proceeding towards uninstalling please do the cleanup of local directory by the following command:

$ twilio alias:reset

To update the plugin, you can uninstall the older version and install the new version from npm.

To uninstall the plugin use the command:

For Twilio CLI:

$ twilio plugins:uninstall @twilio-labs/plugin-alias

If you have linked the plugin locally for development, you can unlink it with the command:

For Twilio CLI:

$ twilio plugins:unlink /path/to/plugin-alias

Troubleshooting

If you run into some issue while using the plugin, refer the help section by using the command with the flag --help

  $ twilio [COMMAND] --help

If facing bugs or issues, checkout the Issues to check if this issue already exists. If it does not exists, then create a new one.