Socket
Socket
Sign inDemoInstall

bitbucket-snippet

Package Overview
Dependencies
40
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

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.


Version published
Weekly downloads
1
Maintainers
1
Install size
2.95 MB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 03 Aug 2016

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc