GithubHelp home page GithubHelp logo

tapehq / tape-cli Goto Github PK

View Code? Open in Web Editor NEW
85.0 3.0 3.0 526 KB

CLI tool to collaborate better during mobile development, for iOS & tvOS simulators and Android emulators and devices. Share screenshots, screen recordings as video or GIFs. Use with https://tape.sh or bring your own bucket!

Home Page: https://tape.sh

License: MIT License

JavaScript 0.20% Batchfile 0.05% TypeScript 99.75%
ios android simulator emulator recording recorder screenshot screen-capture screenrecord screen-recorder

tape-cli's Introduction

tape-cli

Collaborate better during mobile development, for iOS & tvOS simulators and Android emulators and devices. Share screenshots, screen recordings as video or GIFs. Use with https://www.tape.sh/ or bring your own bucket!


oclif Version Downloads/week License

Tape



Installation

brew install edamameldn/tap/tape-cli

or

npm install -g tape-cli

Usage

$ npm install -g tape-cli
$ tape COMMAND
running command...
$ tape (-v|--version|version)
tape-cli/0.14.0 darwin-x64 node-v14.0.0
$ tape --help [COMMAND]
USAGE
  $ tape COMMAND
...

Commands

tape config [NAME]

Configuration

USAGE
  $ tape config [NAME]

OPTIONS
  -h, --help   show CLI help
  -s, --setup
  --check
  --login

EXAMPLE
  $ tape config

See code: src/commands/config.ts

tape devices

List devices

USAGE
  $ tape devices

OPTIONS
  -c, --clear
  -h, --help   show CLI help

ALIASES
  $ tape device
  $ tape emu
  $ tape sims

EXAMPLE
  $ tape devices

See code: src/commands/devices.ts

tape frame [INPUTFILE]

Wrap an existing screenshot or video in a device frame (if available) and upload to Tape.sh

USAGE
  $ tape frame [INPUTFILE]

OPTIONS
  -d, --debug
  -h, --help                                                      show CLI help
  -l, --local=~/Documents
  --format=md|href|html|url
  --frame Select which frame to use, if there are multiple=frame
  --hq
  --nocopy Disable copying to clipboard
  --noframe Disable device frames
  --selectframe Select which frame to use, if there are multiple

ALIASES
  $ tape frame
  $ tape wrap
  $ tape upload

See code: src/commands/frame.ts

tape gif

Record iOS simulators and Android devices/emulators and output a gif file

USAGE
  $ tape gif

OPTIONS
  -d, --debug
  -h, --help                                                      show CLI help
  -l, --local=~/Documents
  --format=md|href|html|url
  --frame Select which frame to use, if there are multiple=frame
  --hq
  --nocopy Disable copying to clipboard
  --noframe Disable device frames
  --selectframe Select which frame to use, if there are multiple

ALIASES
  $ tape gif
  $ tape g

EXAMPLE
  $ tape gif [--local $OUTPUTPATH]
  ๐ŸŽฌ Recording started. Press SPACE to save or ESC to abort.

See code: src/commands/gif.ts

tape help [COMMAND]

display help for tape

USAGE
  $ tape help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

tape image

Take screenshots of iOS/Android devices/simulators

USAGE
  $ tape image

OPTIONS
  -d, --debug
  -h, --help                                                      show CLI help
  -l, --local=~/Documents
  --format=md|href|html|url
  --frame Select which frame to use, if there are multiple=frame
  --nocopy Disable copying to clipboard
  --noframe Disable device frames
  --selectframe Select which frame to use, if there are multiple

ALIASES
  $ tape i
  $ tape screenshot
  $ tape img

EXAMPLE
  $ tape image
  ๐ŸŽ‰ Screenshot uploaded. Copied URL to clipboard ๐Ÿ”– ! -> 
    https://example.com/image.png

See code: src/commands/image.ts

tape login

Log in to Tape.sh

USAGE
  $ tape login

ALIASES
  $ tape auth
  $ tape authorize

EXAMPLE
  $ tape login

See code: src/commands/login.ts

tape upgrade

Opens a direct link to upgrade your Tape.sh plan

USAGE
  $ tape upgrade

OPTIONS
  -h, --help      show CLI help
  -p, --plan=Pro  Plan name to upgrade to

See code: src/commands/upgrade.ts

tape video

Record iOS/Android devices/simulators

USAGE
  $ tape video

OPTIONS
  -d, --debug
  -g, --gif
  -h, --help                                                      show CLI help
  -l, --local=~/Documents
  --format=md|href|html|url
  --frame Select which frame to use, if there are multiple=frame
  --hq
  --nocopy Disable copying to clipboard
  --noframe Disable device frames
  --selectframe Select which frame to use, if there are multiple

ALIASES
  $ tape video
  $ tape vid
  $ tape m

EXAMPLE
  $ tape video [--hq | --gif | --local $OUTPUTPATH]
  ๐ŸŽฌ Recording started. Press SPACE to save or ESC to abort.

See code: src/commands/video.ts

License

MIT License, read more here

by edamame studio

tape-cli's People

Contributors

dac09 avatar dependabot[bot] avatar ingmaras avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tape-cli's Issues

[Android] Gracefully handle unauthorized devices

FailError: Failure: 'device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.'
    at ~/Git/edamame/tape-cli/node_modules/adbkit/lib/adb/parser.js:183:29

Large file uploads fail

 ๐Ÿ“ผ Processing your tape... done
 ๐Ÿšด๐Ÿฝโ€โ™€๏ธ Making your gif...... โœ”๏ธ
Original file size: 4.53 MB
๐Ÿ“ผ  Tape output file size: 17 MB
๐Ÿ”— Uploading file...... ๐Ÿ˜จ Upload failed.
 โ€บ   Error: Request body larger than maxBodyLength limit

[Windows] - Tape videos from Android slowed down

This seems to be related to the way Android sims process the recorded video. On mac, we need to slow it down - because the raw output is quite fast.

Checklist to understand the issue better:

  • Does window record emulator at normal speed?
  • Does linux record emulator at normal speed?

If the double speed issue is mac only, we should apply the ffmpeg filter only on mac

Local mode enhancements

Enhancements:

  • specify a default local folder (perhaps through the new tape config)
  • specify filename for recording

[Windows] - tape gif doesn't work

Error:

๐Ÿ“ผ Processing your tape... done
   Error: Command failed: C:\Users\IK\.tape\bin\ffmpeg -loglevel warning -nostats -hide_banner -i
   C:\Users\IK\AppData\Local\Temp/BagwormMuscleboundOgivePeon-raw.mp4 -filter_complex
   'fps=24,scale=iw*0.5:-1:flags=lanczos,split [o1] [o2];[o1] palettegen [p]; [o2] fifo [o3];[o3] [p]
   paletteuse=dither=bayer:bayer_scale=5:diff_mode=rectangle'
   C:\Users\IK\AppData\Local\Temp/BagwormMuscleboundOgivePeon.gif
   [AVFilterGraph @ 000001e046766ec0] No such filter: 'fps=24,scale=iw*0.5:-1:flags=lanczos,split'
   Error initializing complex filters.
   Invalid argument

   Code: 1


  • os: win32
  • arch: x64

EXDEV: cross-device link not permitted

hello, I've been trying to record a vid on my pc and I am gettingt the following error:

Error:

tape gif --local=./ --format=md
๐Ÿ“ฑ Device: [android] herolte (samsung, SM-G930F, heroltexx, universal8890) - SDK 26 (ad0617020ca188820a)
Recording started in /tmp/LocativeDupGranulateInhalation-raw.mp4.

File saved and ready to upload!
๐Ÿ“ผ Processing your tape... done
๐Ÿšด๐Ÿฝโ€โ™€๏ธ Making your gif...... โœ”๏ธ
โ€บ   Error: EXDEV: cross-device link not permitted, rename 
โ€บ   '/tmp/LocativeDupGranulateInhalation.gif' -> 
โ€บ   'LocativeDupGranulateInhalation.gif'


from what I've seen this error happens when trying to rename across partitions.
in my case /tmp and my project dir are on two different disks (hope it helps)


  • os: linux / DISTRIB_DESCRIPTION="Ubuntu 18.04.5 LTS"
  • arch: x64

thanks! dan

[Windows] Esc key doesn't work

When recording a Tape, pressing the escape key does nothing on Windows. The only way to terminate the recording of a tape is by pressing Ctrl+C twice and then hitting 'Y' when 'Terminate batch job' appears

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.