🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

bitbucket-snippet

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitbucket-snippet

A command-line tool for creating snippets via the Bitbucket REST API.

0.0.6
latest
Source
npm
Version published
Maintainers
1
Created
Source

Bitbucket Snippet

CLI tool for publishing a local file as a Bitbucket Snippet.

You may enjoy this article on how this tool was built.

Usage

 snippet [options] <file>

 Options:

    -h, --help                 output usage information
    -u, --username <username>  the user to authenticate as
    -p, --password <password>  the user's password
    -b, --browser              open the snippet in the system browser

Installation

  • Install Node.js and npm
  • Run npm install -g bitbucket-snippet
  • Run snippet --help or snippet some_file to upload it to Bitbucket.

Credential management

The first time you upload a file you will be prompted for your Bitbucket username and password. These will be used to retrieve an OAuth refresh token which is stored in ~/.bitbucket-snippet and used for subsequent requests. Treat this token carefully as it can be used to read and write snippets on your behalf.

Keywords

bitbucket

FAQs

Package last updated on 03 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts