@mux/cli

Your friendly neighborhood Mux CLI tool!

Usage no npm install needed!

<script type="module">
  import muxCli from 'https://cdn.skypack.dev/@mux/cli';
</script>

README

mux-cli

Your friendly neighborhood Mux CLI tool

oclif Version Downloads/week License

Usage

$ npm install -g @mux/cli
$ mux COMMAND
running command...
$ mux (-v|--version|version)
@mux/cli/0.6.2 darwin-arm64 node-v16.5.0
$ mux --help [COMMAND]
USAGE
  $ mux COMMAND
...

Commands

mux assets:create INPUT

Create a new asset in Mux using a file that's already available online

USAGE
  $ mux assets:create INPUT

ARGUMENTS
  INPUT  input URL for the file you'd like to create this asset from

OPTIONS
  -p, --private  add a private playback policy to the created asset

See code: src/commands/assets/create.ts

mux assets:upload PATH

Create a new asset in Mux via a local file

USAGE
  $ mux assets:upload PATH

ARGUMENTS
  PATH  local path for the file (or folder) you'd like to upload

OPTIONS
  -c, --concurrent=concurrent  [default: 3] max number of files to upload at once
  -f, --filter=filter          regex that filters the selected destination if the provided path is a folder
  -p, --private                add a private playback policy to the created asset

See code: src/commands/assets/upload.ts

mux autocomplete [SHELL]

display autocomplete installation instructions

USAGE
  $ mux autocomplete [SHELL]

ARGUMENTS
  SHELL  shell type

OPTIONS
  -r, --refresh-cache  Refresh cache (ignores displaying instructions)

EXAMPLES
  $ mux autocomplete
  $ mux autocomplete bash
  $ mux autocomplete zsh
  $ mux autocomplete --refresh-cache

See code: @oclif/plugin-autocomplete

mux commands

list all the commands

USAGE
  $ mux commands

OPTIONS
  -h, --help              show CLI help
  -j, --json              display unfiltered api data in json format
  -x, --extended          show extra columns
  --columns=columns       only show provided columns (comma-separated)
  --csv                   output is csv format [alias: --output=csv]
  --filter=filter         filter property by partial string matching, ex: name=foo
  --hidden                show hidden commands
  --no-header             hide table header from output
  --no-truncate           do not truncate output to fit screen
  --output=csv|json|yaml  output in a more machine friendly format
  --sort=sort             property to sort by (prepend '-' for descending)

See code: @oclif/plugin-commands

mux help [COMMAND]

display help for mux

USAGE
  $ mux help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

mux init [ENVFILE]

set up a user-level config

USAGE
  $ mux init [ENVFILE]

ARGUMENTS
  ENVFILE  path to a Mux access token .env file

See code: src/commands/init.ts

mux live:complete STREAMNAME

Signal to Mux that a live stream has concluded and should be closed.

USAGE
  $ mux live:complete STREAMNAME

ARGUMENTS
  STREAMNAME  the name (coupled with --reference-type) to look up in Mux to yield this livestream

OPTIONS
  -d, --disableAfterCompletion  If set, disables the stream upon completion.
  -t, --streamId=stream-id      [default: stream-id] the type of the provided reference name

See code: src/commands/live/complete.ts

mux live:disable STREAMNAME

Disables a live stream and prevents encoders from streaming to it.

USAGE
  $ mux live:disable STREAMNAME

ARGUMENTS
  STREAMNAME  the name (coupled with --reference-type) to look up in Mux to yield this livestream

OPTIONS
  -t, --streamId=stream-id  [default: stream-id] the type of the provided reference name

See code: src/commands/live/disable.ts

mux live:enable STREAMNAME

Enables a live stream, allowing encoders to streaming to it.

USAGE
  $ mux live:enable STREAMNAME

ARGUMENTS
  STREAMNAME  the name (coupled with --reference-type) to look up in Mux to yield this livestream

OPTIONS
  -t, --streamId=stream-id  [default: stream-id] the type of the provided reference name

See code: src/commands/live/enable.ts

mux plugins

list installed plugins

USAGE
  $ mux plugins

OPTIONS
  --core  show core plugins

EXAMPLE
  $ mux plugins

See code: @oclif/plugin-plugins

mux plugins:install PLUGIN...

installs a plugin into the CLI

USAGE
  $ mux plugins:install PLUGIN...

ARGUMENTS
  PLUGIN  plugin to install

OPTIONS
  -f, --force    yarn install with force flag
  -h, --help     show CLI help
  -v, --verbose

DESCRIPTION
  Can be installed from npm or a git url.

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

  e.g. If you have a core plugin that has a 'hello' command, installing a user-installed plugin with a 'hello' command 
  will override the core plugin implementation. This is useful if a user needs to update core plugin functionality in 
  the CLI without the need to patch and update the whole CLI.

ALIASES
  $ mux plugins:add

EXAMPLES
  $ mux plugins:install myplugin 
  $ mux plugins:install https://github.com/someuser/someplugin
  $ mux plugins:install someuser/someplugin

See code: @oclif/plugin-plugins

mux plugins:link PLUGIN

links a plugin into the CLI for development

USAGE
  $ mux plugins:link PLUGIN

ARGUMENTS
  PATH  [default: .] path to plugin

OPTIONS
  -h, --help     show CLI help
  -v, --verbose

DESCRIPTION
  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.

EXAMPLE
  $ mux plugins:link myplugin

See code: @oclif/plugin-plugins

mux plugins:uninstall PLUGIN...

removes a plugin from the CLI

USAGE
  $ mux plugins:uninstall PLUGIN...

ARGUMENTS
  PLUGIN  plugin to uninstall

OPTIONS
  -h, --help     show CLI help
  -v, --verbose

ALIASES
  $ mux plugins:unlink
  $ mux plugins:remove

See code: @oclif/plugin-plugins

mux plugins:update

update installed plugins

USAGE
  $ mux plugins:update

OPTIONS
  -h, --help     show CLI help
  -v, --verbose

See code: @oclif/plugin-plugins

mux sign PLAYBACK-ID

Creates a new signed URL token for a playback ID

USAGE
  $ mux sign PLAYBACK-ID

ARGUMENTS
  PLAYBACK-ID  Playback ID to create a signed URL token for.

OPTIONS
  -e, --expiresIn=expiresIn       [default: 7d] How long the signature is valid for. If no unit is specified,
                                  milliseconds is assumed.

  -t, --type=video|thumbnail|gif  [default: video] What type of token this signature is for.

See code: src/commands/sign.ts

mux update [CHANNEL]

update the mux CLI

USAGE
  $ mux update [CHANNEL]

See code: @oclif/plugin-update