getstream-cli
Configure & manage Stream applications from the command line. 🚀
Last updated 21 hours ago by nparsons08 .
BSD-3-Clause · Bugs · Original npm · Tarball · package.json
$ cnpm install getstream-cli 
SYNC missed versions from official npm registry.

Stream Cli

Stream CLI

Stream's Command Line Interface (CLI) makes it easy to create and manage your Stream apps directly from the terminal. Currently, only Chat is supported; however, the ability to manage Feeds will be coming soon.

Coverage Status Version Dependency Status devDependency Status License

???? Issues

If you're experiencing problems directly related to the CLI, please add an issue on GitHub.

For other issues, submit a support ticket.

???? Changelog

As with any project, things are always changing. If you're interested in seeing what's changed in the Stream CLI, the changelog for this project can be found here.

???? Installation

The Stream CLI is easy to install and available via npm. The CLI requires Node v10.x or above.

$ yarn global add getstream-cli

OR

$ npm install -g getstream-cli

???? Getting Started

In order to initialize the CLI, it's as simple as:

Stream

Note: Your API key and secret can be found on the Stream Dashboard and is specific to your organization.

???? Syntax

Basic commands use the following syntax:

$ stream command:COMMAND --arg1 "foo" --arg2 "bar"

Whereas commands for specific products use subcommands:

$ stream command:COMMAND:SUBCOMMAND --arg1 "foo" --arg2 "bar"

???? Fun Facts

Interested in using the calling the CLI from a script? Or maybe you simply want raw response data? You can do that! Many of the commands accept a json argument as a boolean. Just pass the following along to the CLI and you'll get back a full representation of the response (in a raw data format):

$ stream command:COMMAND --arg1 "foo" --arg2 "bar" --json

Need to copy the output to your clipboard? Not a problem. Just pipe the information to pbcopy (on macOS) along with the --json flag:

$ stream debug:token --token "foo.bar.baz" --json | pbcopy

Want to call the Stream CLI using a bash command? No problem! Make sense of output using jq, a lightweight and flexible command-line JSON processor.

#! /bin/bash

run=$(stream config:get --json)

name=$(jq --raw-output '.name' <<< "${run}")
email=$(jq --raw-output '.email' <<< "${run}")
apiKey=$(jq --raw-output '.apiKey' <<< "${run}")
apiSecret=$(jq --raw-output '.apiSecret' <<< "${run}")

echo $name
echo $email
echo $apiKey
echo $apiSecret

OR

#! /bin/bash

stream chat:channel:create --channel=$(openssl rand -hex 12) --type="messaging" --name="CLI" --json | jq '.'

Note: See here for additional examples!

????‍ Usage

$ npm install -g getstream-cli
$ stream COMMAND
running command...
$ stream (-v|--version|version)
getstream-cli/0.0.55 darwin-x64 node-v13.0.1
$ stream --help [COMMAND]
USAGE
  $ stream COMMAND
...

???? Commands

Command Topics

???? Feedback

If you have any suggestions or just want to let us know what you think of the Stream CLI, please send us a message at support@getstream.io or create a GitHub Issue.

Current Tags

  • 0.0.55                                ...           latest (21 hours ago)

107 Versions

  • 0.0.55                                ...           21 hours ago
  • 0.0.54                                ...           a day ago
  • 0.0.53                                ...           7 days ago
  • 0.0.52                                ...           7 days ago
  • 0.0.50                                ...           8 days ago
  • 0.0.49                                ...           12 days ago
  • 0.0.48                                ...           19 days ago
  • 0.0.47                                ...           21 days ago
  • 0.0.46                                ...           25 days ago
  • 0.0.45                                ...           a month ago
  • 0.0.44                                ...           a month ago
  • 0.0.43                                ...           a month ago
  • 0.0.42                                ...           a month ago
  • 0.0.41                                ...           a month ago
  • 0.0.40                                ...           a month ago
  • 0.0.39                                ...           a month ago
  • 0.0.38                                ...           a month ago
  • 0.0.37                                ...           a month ago
  • 0.0.36                                ...           a month ago
  • 0.0.35                                ...           a month ago
  • 0.0.34                                ...           a month ago
  • 0.0.32                                ...           a month ago
  • 0.0.31                                ...           a month ago
  • 0.0.30                                ...           a month ago
  • 0.0.28                                ...           a month ago
  • 0.0.27                                ...           a month ago
  • 0.0.26                                ...           a month ago
  • 0.0.25                                ...           a month ago
  • 0.0.24                                ...           a month ago
  • 0.0.23                                ...           a month ago
  • 0.0.22                                ...           a month ago
  • 0.0.21                                ...           a month ago
  • 0.0.20                                ...           a month ago
  • 0.0.19                                ...           a month ago
  • 0.0.18                                ...           2 months ago
  • 0.0.17                                ...           2 months ago
  • 0.0.16                                ...           2 months ago
  • 0.0.15                                ...           2 months ago
  • 0.0.14                                ...           2 months ago
  • 0.0.13                                ...           2 months ago
  • 0.0.12                                ...           3 months ago
  • 0.0.11                                ...           3 months ago
  • 0.0.10                                ...           3 months ago
  • 0.0.9                                ...           3 months ago
  • 0.0.8                                ...           3 months ago
  • 0.0.7                                ...           4 months ago
  • 0.0.6                                ...           6 months ago
  • 0.0.5                                ...           6 months ago
  • 0.0.4                                ...           6 months ago
  • 0.0.3                                ...           7 months ago
  • 0.0.2                                ...           7 months ago
  • 0.0.1                                ...           7 months ago
  • 0.0.1-beta.58                                ...           7 months ago
  • 0.0.1-beta.57                                ...           7 months ago
  • 0.0.1-beta.56                                ...           7 months ago
  • 0.0.1-beta.55                                ...           7 months ago
  • 0.0.1-beta.54                                ...           7 months ago
  • 0.0.1-beta.53                                ...           7 months ago
  • 0.0.1-beta.52                                ...           8 months ago
  • 0.0.1-beta.51                                ...           8 months ago
  • 0.0.1-beta.50                                ...           8 months ago
  • 0.0.1-beta.49                                ...           8 months ago
  • 0.0.1-beta.48                                ...           8 months ago
  • 0.0.1-beta.47                                ...           8 months ago
  • 0.0.1-beta.46                                ...           8 months ago
  • 0.0.1-beta.45                                ...           8 months ago
  • 0.0.1-beta.44                                ...           8 months ago
  • 0.0.1-beta.43                                ...           8 months ago
  • 0.0.1-beta.42                                ...           8 months ago
  • 0.0.1-beta.41                                ...           8 months ago
  • 0.0.1-beta.40                                ...           8 months ago
  • 0.0.1-beta.39                                ...           8 months ago
  • 0.0.1-beta.38                                ...           8 months ago
  • 0.0.1-beta.37                                ...           8 months ago
  • 0.0.1-beta.36                                ...           8 months ago
  • 0.0.1-beta.35                                ...           8 months ago
  • 0.0.1-beta.34                                ...           8 months ago
  • 0.0.1-beta.33                                ...           8 months ago
  • 0.0.1-beta.32                                ...           8 months ago
  • 0.0.1-beta.31                                ...           8 months ago
  • 0.0.1-beta.30                                ...           8 months ago
  • 0.0.1-beta.29                                ...           8 months ago
  • 0.0.1-beta.28                                ...           8 months ago
  • 0.0.1-beta.27                                ...           8 months ago
  • 0.0.1-beta.26                                ...           8 months ago
  • 0.0.1-beta.25                                ...           9 months ago
  • 0.0.1-beta.24                                ...           9 months ago
  • 0.0.1-beta.23                                ...           9 months ago
  • 0.0.1-beta.22                                ...           9 months ago
  • 0.0.1-beta.21                                ...           9 months ago
  • 0.0.1-beta.20                                ...           9 months ago
  • 0.0.1-beta.19                                ...           9 months ago
  • 0.0.1-beta.18                                ...           9 months ago
  • 0.0.1-beta.17                                ...           9 months ago
  • 0.0.1-beta.16                                ...           9 months ago
  • 0.0.1-beta.15                                ...           9 months ago
  • 0.0.1-beta.14                                ...           9 months ago
  • 0.0.1-beta.11                                ...           9 months ago
  • 0.0.1-beta.10                                ...           9 months ago
  • 0.0.1-beta.9                                ...           9 months ago
  • 0.0.1-beta.8                                ...           9 months ago
  • 0.0.1-beta.7                                ...           9 months ago
  • 0.0.1-beta.6                                ...           9 months ago
  • 0.0.1-beta.5                                ...           9 months ago
  • 0.0.1-beta.4                                ...           9 months ago
  • 0.0.1-beta.1                                ...           9 months ago
  • 0.0.1-alpha                                ...           9 months ago
Downloads
Today 0
This Week 163
This Month 838
Last Day 163
Last Week 380
Last Month 1,937
Dev Dependencies (14)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |