Giter Club home page Giter Club logo

bbcli's Introduction

BB CLI

BB CLI is a command-line interface tool for interacting with Bitbucket. It provides a set of commands for performing operations such as creating projects, creating repositories, adding users to repositories, and more.

Requirements

  • Python 3.10 or above
  • Make installed
  • Poetry (Python dependency management tool)

Setting Up the Environment

  1. If you are using Debian/Ubuntu based OS, run the installer . install.sh and jump to step 7.

  2. Make sure you have Python 3.12 installed. You can check your Python version by running python --version in your terminal.

  3. Install Poetry by following the instructions on the official Poetry website.

  4. Navigate to the project directory and install the project dependencies with Poetry:

poetry install
  1. Set alias for the python execution in linux with: alias bbcli="python main.py"

  2. Configure the file config.yaml with your CLIENT_ID and CLIENT_SECRET from Bitbucket OAuth Consumer

Commands

Here are the available commands in BB CLI using with the created alias:

create-project: Creates a new project.

bbcli create-project -n project_name -w workspace

create-repository: Creates a new repository.

bbcli create-repository -p project -r repo_name -w workspace

add-user: Adds a user to a repository.

bbcli add-user -r repository -e user_email -w workspace

remove-user: Removes a user from a repository. (Necessary user and app password crendentials)

bbcli remove-user -r repository -u user_name -w workspace -a admin_username -p password

allow-users-merge: Allow all users merge directly in a given branch

bbcli allow-users-merge -r firstjohn -w johnatas-upwork -b main

Please replace the arguments with your actual values. For example, replace project_name with the name of your project.

Other commans

bash make tests - For running all unit tests

bash make lint - For lint all project

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the terms of the MIT license.

bbcli's People

Contributors

johnatasr avatar

Stargazers

 avatar

Watchers

 avatar

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.