For the complete documentation index, see llms.txt. This page is also available as Markdown.

Help Commands

This guide introduces how to use Zenlayer Cloud CLI help commands to get command information.

Using Help Commands

Zenlayer Cloud CLI provides several ways to get help information for commands:

1. View Global Help

To view global help information, including all available commands and global options, run:

zeno --help

Or use the shorthand:

zeno -h

2. View Service Command Help

To view help information for a specific service command, such as the Elastic Compute service:

zeno zec --help

3. View Specific Command Help

To view detailed help information for a specific command, such as the describe-instances command:

zeno zec describe-instances --help

Help Information Structure

Help information typically contains the following sections:

1. Command Name and Description

Displays the name and brief description of the command, explaining its purpose.

2. Command Syntax

Displays the syntax format of the command, including required and optional parameters.

3. Options

Lists all options supported by the command, including:

  • Option name (e.g., --instance-id)

  • Option shorthand (e.g., -i)

  • Option type (e.g., string, boolean, etc.)

  • Option description

4. Examples

Provides usage examples for the command to help users understand how to use it.

5. Subcommand Help Output Field Descriptions

When running the help command for a subcommand (e.g., zeno zec describe-instances --help), the output contains the following fields:

NAME

Displays the name of the command.

Example:

DESCRIPTION

Provides a detailed description of the command, explaining its functionality and use cases.

Example:

SYNOPSIS

Displays the basic syntax of the command, including the command name and all options. Optional options are enclosed in brackets [].

Example:

OPTIONS

Lists all options supported by the command, each containing:

  • Option name (e.g., --instance-ids)

  • Option type (e.g., list, string, etc.)

  • Option description

Example:

OUTPUT

Lists the fields returned on successful execution, i.e. the contents of the response object in the API response (excluding requestId). Each field shows its name, type, and description. If this section is absent, the command returns only a requestId on success.

Example:

GLOBAL OPTIONS

Lists all global options, including profile, output format, query, and other common options.

Example:

Tips for Using Help Commands

1. Quick Command Overview

When you are unsure about a command's purpose or parameters, use the --help option for a quick overview.

2. Check Command Parameters

Use help commands to view all parameters supported by a command, ensuring you use the correct parameter names and formats.

3. Learn from Command Examples

Examples in the help information can help you understand how to correctly use commands, especially for complex ones.

4. Explore Command Hierarchy

Through help commands, you can explore the Zenlayer Cloud CLI command hierarchy to discover available commands and subcommands.

FAQ

Incomplete Help Information

If help information is incomplete or inaccurate, check:

  • Whether the CLI is the latest version

  • Whether the command exists

  • Whether the network connection is working

Command Does Not Exist

If running --help shows the command does not exist, check:

  • Whether the command is spelled correctly

  • Whether the service supports the command

  • Whether the CLI is the latest version

Last updated

Was this helpful?