Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

backend.ai-cli

Unified command-line interface for Backend.AI

How to adopt in CLI-enabled Backend.AI packages

An example setup.cfg in Backend.AI Manager:

[options.entry_points]
backendai_cli_v10 =
    mgr = ai.backend.manager.cli.__main__:main
    mgr.start-server = ai.backend.gateway.server:main

Define your package entry points that returns a Click command group using a prefix, and add additional entry points that returns a Click command using a prefix followed by a dot and sub-command name for shortcut access, under the backendai_cli_v10 entry point group.

Then add backend.ai-cli to the install_requires list.

You can do the same in setup.py as well.

Shell Tab Completion

The CLI provides built-in shell tab completion support for bash, zsh, and fish shells.

Quick Setup

# Show completion setup instructions
backend.ai completion --show

# Install completion automatically
backend.ai completion --shell bash  # Install to ~/.bashrc
backend.ai completion --shell zsh   # Install to ~/.zshrc
backend.ai completion --shell fish  # Install to fish completions

Manual Setup

If you prefer manual setup, you can add completion to your shell configuration:

Bash (~/.bashrc):

eval "$(_BACKEND_AI_COMPLETE=bash_source backend.ai)"

Zsh (~/.zshrc):

eval "$(_BACKEND_AI_COMPLETE=zsh_source backend.ai)"

Fish (~/.config/fish/config.fish):

backend.ai completion --shell fish | source

Features

Tab completion supports:

  • Commands: All available commands and subcommands
  • Options: Short and long flags with descriptions
  • Arguments: Context-aware argument completion where applicable
  • Help: Descriptions for commands and options

Examples

backend.ai <TAB>              # Show all available commands
backend.ai session <TAB>      # Show session subcommands
backend.ai session create <TAB>  # Show creation options
backend.ai --<TAB>            # Show global options

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

backend_ai_cli-26.8.0rc1.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

backend_ai_cli-26.8.0rc1-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file backend_ai_cli-26.8.0rc1.tar.gz.

File metadata

  • Download URL: backend_ai_cli-26.8.0rc1.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for backend_ai_cli-26.8.0rc1.tar.gz
Algorithm Hash digest
SHA256 344752d50d319729f6ee323d7f571b41da1b6c18dbb7a4739bbe8eee2cce6013
MD5 9b6176e5ed6c82b5a36fcaf0ad1d1f52
BLAKE2b-256 0099a2fbb2be2746d9f1472d082cfdc1b53f7377a5db5c806b6617f4f994ddae

See more details on using hashes here.

File details

Details for the file backend_ai_cli-26.8.0rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for backend_ai_cli-26.8.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 0617381707d5917f67ce0acc9ff1446fc85704c64b26c549957e67a4883707b7
MD5 e9b165b72b7be69ae7a9ab1a497b95e3
BLAKE2b-256 f74d66d559e900d0077ce8442ebb51073dd35a25692407c41fe7573eb98d2efc

See more details on using hashes here.

Release history Release notifications | RSS feed

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page