CLI Utils at BeCode. Useful for everyone at BeCode.
Last updated 9 days ago by becode-bot .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @becode/cli 
SYNC missed versions from official npm registry.

BeCode: CLI

⚙️ CLI Utils at BeCode. Useful for everyone.

npm version License: MIT GitHub Issues

BeCode CLI is a command-line based util, with useful tools to automate some of your dev tasks at BeCode.


Junior or Coach, introducing BeCode CLI: a small util tool, giving you some great commands without leaving your terminal.
For now, this tool allows you to navigate to our different GitHub repositories, generate complete docker dev environments or generate README.md files according to BeCode standards.

But remember: BeCode CLI is yours. Feel free to contribute, add new features or requests new ones.

Use cases

Generating docker environment for your projects

The BeCode CLI can generate a docker-compose.yml file to handle the dev env for your project.
Simply run becode generate env from inside a git repository and answer the questions.

You can either install predefined application environment (like Wordpress, Drupal, Ghost…), or build a custom environment, by choosing your main language, your database and tools.

The BeCode CLI will generate two files: a complete, ready-to-use docker-compose.yml file ; and a docker-readme.md file, containing all the information about docker (how to install and configure), and the containers of your app.

Generating complete README.md template files

The BeCode CLI can generate a README.md respecting our internal guidelines.

Simply run becode generate readme from inside a git repository and answer the questions.


You must have node.js installed on your machine.

Simply run the following command to install the BeCode CLI:

npm install -g @becode/cli


The command use this syntax:

becode [command] [args...]

If you need help, use the help command:

becode --help

???? Recommanded: use npx

While the command can be a bit longer, it's better to use npx instead of installing packages globally.

To do so, instead of using becode command, use npx @becode/cli:

npx @becode/cli [command] [args...]

Available commands


becode configure

Ask you some questions to setup the cli tool.
Should be run once, possibly right after installing the cli tool.


becode open [target] [...options]

Open the selected target in your default browser.

Available targets
  • central: open the Central repository
  • watch: open the Watch repository
  • promo: open the repository of your promo - you must have run the command configure once before
  • github: open your GitHub profile (or, if you haven't configured your tool, the GitHub homepage)
  • my or mybecode: open the MyBeCode platform
Available options
  • -c --choose : Choose promo in a list instead of using the configured one


becode generate [target] [...options]

Use interactive process to generate useful files for your projects.

Available targets
  • readme: generate a README.md file that conforms with the BeCode's conventions
  • ignore: generate a common .gitignore file
  • env: generate a docker compose env, after some questions
Available options
  • -o <path>, --output <path> : Generate target files at specified path (defaults to current git repo root) - not supported for the ignore target


Feel free to hack the tool, suggest any modification and/or implement it by yourself and submit a pull request !

The contribution guide is in the CONTRIBUTING.md file.

Any idea? Suggestions?

You don't want (or can't) help, but you have some ideas to improve BeCode CLI?
Please, create an issue and tell us everything.

October 2018, leny@BeCode. Licensed under the MIT License.

Current Tags

  • 0.10.3                                ...           latest (9 days ago)

21 Versions

  • 0.10.3                                ...           9 days ago
  • 0.9.0                                ...           9 months ago
  • 0.8.0                                ...           a year ago
  • 0.7.0                                ...           a year ago
  • 0.6.1                                ...           a year ago
  • 0.6.0                                ...           a year ago
  • 0.5.2                                ...           a year ago
  • 0.5.1                                ...           a year ago
  • 0.5.0                                ...           a year ago
  • 0.4.3                                ...           a year ago
  • 0.4.2                                ...           a year ago
  • 0.4.1                                ...           a year ago
  • 0.4.0                                ...           a year ago
  • 0.3.1                                ...           2 years ago
  • 0.3.0                                ...           2 years ago
  • 0.2.0                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
  • 0.1.0-rc.4                                ...           2 years ago
  • 0.1.0-rc.3                                ...           2 years ago
  • 0.1.0-rc.2                                ...           2 years ago
  • 0.1.0-rc.1                                ...           2 years ago
Maintainers (2)
Today 0
This Week 0
This Month 37
Last Day 0
Last Week 36
Last Month 0
Dependencies (21)
Dev Dependencies (10)
Dependents (0)

Copyright 2014 - 2016 © taobao.org |