0.0.12 • Published 8 years ago

zendesk-cli v0.0.12

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

zendesk-cli

A command line interface for ZenDesk admin tasks.

Table of Contents

Install

$ npm install -g zendesk-cli

Usage

$ zd [command] [options]

Setup

Before running any commands, you'll need to set up the CLI with your ZenDesk credentials. This requires three pieces of information:

  1. Your ZenDesk username
  2. Your access token
  3. The Remote URI for the API

Once you have this information, run the following command:

$ zd init <username> <token> <remoteUri>

Commands

init

$ zd init <username> <token> <remoteUri>

See Setup for more information.

macro

$ zd macro [options]

Use this command to create, update, list, or open macros. By default, this command creates a new macro, unless you've specified -u <macro_id> (update macro), -l (list macros), or -o [macro_id] (open macro in browser).

Options:

OptionArgumentDescription
-h, --helpoutput usage information
-t, --title<title>Set title of macro
-f, --file<path>Path to comment text file
-w, --writeOpen editor to write comment content
-T, --tags<tags>Append tags (space delineated)
-i, --inactiveMake macro inactive
-p, --privateSet comment mode to private
-l, --listList all macros
-u, --update<macro_id>Update macro
-o, --open[macro_id]Open the macro in browser

add macro

$ zd add macro [options]

This command is an alias for zd macro [options]

Options:

OptionArgumentDescription
-h, --helpoutput usage information
-t, --title<title>Set title of macro
-f, --file<path>Path to comment text file
-w, --writeOpen editor to write comment content
-T, --tags<tags>Append tags (space delineated)
-i, --inactiveMake macro inactive
-p, --privateSet comment mode to private
-o, --openOpen the macro in browser after adding

update macro

$ zd update macro <macro_id> [options]

This command is an alias for zd macro -u <macro_id> [options]

Options:

OptionArgumentDescription
-h, --helpoutput usage information
-t, --title<title>Set title of macro
-f, --file<path>Path to comment text file
-w, --writeOpen editor to write comment content
-T, --tags<tags>Append tags (space delineated)
-i, --inactiveMake macro inactive
-p, --privateSet comment mode to private
-o, --openOpen the macro in browser after updating

list macros

$ zd list macros

This command is an alias for zd macro -l

Options: None

open macro

$ zd open macro <macro_id>

This command is an alias for zd macro -o <macro_id>

Options: None

License

MIT

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago