Skip to content

Airbotics/example-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

743df39 · Aug 21, 2023

History

2 Commits
Aug 18, 2023
Aug 18, 2023
Aug 18, 2023
Aug 21, 2023
Aug 18, 2023
Aug 18, 2023
Aug 18, 2023

Repository files navigation

Example CLI

This repo contains the source code for the Build a custom CLI guide in the Airbotics documentation.

Prerequisites

  1. Node.js installed.
  2. An Airbotics account with:
    • At least 1 robot created.
    • At least 1 API key created.
  3. Set the AIR_API_KEY with a valid API key.

Installation

npm i
npm run build
npm link
export API_KEY="<your_api_key>"

Usage

acme [COMMAND]

Implemented commands

# Print a list of robots with:
acme robots list

# Configure logs for a robot with:
acme robots config-logs --enabled=true --robot_id=dev_bot_1

# Print a list of airbotics commands:
acme commands list 

Uninstall

npm unlink -g

About

An example project showing how to build a custom CLI on top of the Airbotics API.

Topics

Resources

License

Stars

Watchers

Forks