Bitrise Plugins :io - Command Line / Terminal interface for bitrise.io to manage your apps on bitrise.io right from your terminal / command line

cli

#1

A Terminal / Command Line interface for bitrise.io, to manage your apps on bitrise.io right from your terminal / command line.

Source code: https://github.com/bitrise-core/bitrise-plugins-io

Related #feature-request : Use bitrise-cli to build a mobile app like heroku does / A Terminal / Command Line interface for bitrise.io, to manage your apps on bitrise.io right from your terminal / command line


Use bitrise-cli to build a mobile app like heroku does / A Terminal / Command Line interface for bitrise.io, to manage your apps on bitrise.io right from your terminal / command line
Use bitrise-cli to build a mobile app like heroku does / A Terminal / Command Line interface for bitrise.io, to manage your apps on bitrise.io right from your terminal / command line
#5

The latest version on the master branch can do the following things:

$ bitrise-plugins-io --help

Bitrise IO plugin

Usage:
  bitrise-plugins-io [command]

Available Commands:
  apps        Get apps for user
  auth        Authenticate
  builds      Get builds for app
  help        Help about any command
  log         Get log of build
  version     Print version

Flags:
  -h, --help   help for bitrise-plugins-io

Use "bitrise-plugins-io [command] --help" for more information about a command.

Use bitrise-cli to build a mobile app like heroku does / A Terminal / Command Line interface for bitrise.io, to manage your apps on bitrise.io right from your terminal / command line
#6

Working on the new builds list command, using Go’s https://golang.org/pkg/text/tabwriter/ & some coloring:


#7

Yesterday I worked on the apps list command. Not sure yet whether the formatter output should use tabwriter here as well :thinking:


#8

Update: just published:

A revision of what happens if the Personal Access Token expires or is revoked. In short previously the tool just printed the fact without any further steps or help.

From now it prints the fact but also clears out the PAT stored locally, as well as prints at least some guidance what you can do to remediate the issue:

And if you’d try the command again, instead of just another “Unauthorized” message you’ll get:


#9

Working on some enhancement for the browse command as well:

It introduces two things:

  1. Print the URL before attempting to open it in a web browser, so that even if the open would fail you can find the URL in the log and copy paste it manually
  2. Introduced a new flag (--open=false) to not to open the URL in the web browser. This mode simply just prints the URL but does not attempt to open it.

--open=true:

--open=false:


#10

Working on publishing a new release of the plugin, after some readme and setup guide revisions.


#11

Version 0.0.4 was just released: https://github.com/bitrise-core/bitrise-plugins-io/releases/tag/0.0.4

Includes all the recent revisions, and can now be installed directly via the bitrise cli:

bitrise plugin install https://github.com/bitrise-core/bitrise-plugins-io.git --version=0.0.4

#12

README revisions: https://github.com/bitrise-core/bitrise-plugins-io/pull/41


#13

browse command can now open a specified build directly: https://github.com/bitrise-core/bitrise-plugins-io/pull/43


#14

Also working on artifact commands: https://github.com/bitrise-core/bitrise-plugins-io/pull/42

You can now:

  • artifact list to get a list of artifacts (for a specific build)
  • artifact show to show data of a specified artifact, including the download URL
  • and artifact download which “downloads” the artifact. It can only print for now but that can be piped into a file, as well as I’ll add an option to save into file directly once I have some time to finish it :wink:

#15

artifacts list now uses a tabbed / table based output like builds:


#16

Released v0.0.5 which includes:

  • browse command new flag: build - to open specific build (#43)
  • Artifacts commands: list, show, download - (#42)

Can be installed with:

bitrise plugin install https://github.com/bitrise-core/bitrise-plugins-io.git --version=0.0.5