You need to enable JavaScript to run this app.
Lake AI Service

Lake AI Service

Copy page
Download PDF
LAS CLI command reference
LAS CLI command reference
Copy page
Download PDF
LAS CLI command reference

LAS CLI is the official command-line tool for the AI Data Lake Service (LAS), providing commands for LAS invocation authentication, multimodal data processing, intelligent task orchestration, and other Key features. By integrating with AI agents, you can conveniently leverage LAS's multimodal data processing capabilities through simple task descriptions while consuming fewer tokens. This document introduces the installation and key usage instructions for LAS CLI commands.

Supported commands

Command categories

Supported commands

Subcommands

Application scenarios and capability description

Initialization and LAS service configuration

init

Not applicable

  • After installing LAS CLI, first run the init command to initialize the LAS service configuration, such as setting up authentication information. Subsequent LAS service calls via LAS CLI will use the authentication information configured here.
  • Currently, authentication for LAS service calls is supported via either an LAS API Key or the AK and SK information of your VolcanoEngine account. Authentication credentials are highly sensitive; if leaked, others may use your model quota, resulting in potential losses. Therefore, please store and initialize these credentials only in trusted environments.

config

  • list
  • model
  • list: View the complete parameter configuration results of the current LAS CLI.
  • model: Interactively configure large model services. To use intelligent task orchestration provided by LAS CLI, you must first use this parameter to configure the large model service information for intelligent task orchestration.

region

  • [region]
  • View or set the default region for LAS service calls. After installing LAS CLI, the default region is Beijing (cn-beijing). To use LAS services in other regions, use the region command to change the default region.

Multimodal data processing

operators

  • list
  • call
  • help
  • list: View the list of currently supported data processing operators and the parameter details for each operator.
  • call: Invoke data processing operators on the LAS platform to process multimodal data such as audio, video, and documents.

task

  • create
  • list
  • status
  • wait
  • kill
  • delete
  • clear
  • create: Support AI agent capabilities. By describing tasks in natural language, you can intelligently schedule multiple suitable LAS data processing operators and orchestrate multimodal data processing tasks.
  • Other subcommands: Query and manage multimodal data processing tasks.

Help

help

  • [command]
  • Display help information for each LAS CLI command.

Version

version

Not applicable

  • Query the current version number of LAS CLI.

Install LAS CLI

Environment requirements

  • Node.js >= 16.0.0 (if you choose the npm installation method)
  • LAS service has been enabledVolcanoEngine, and you have obtained the LAS API Key orVolcanoEngine the account's AK/SK information for subsequent authentication configuration when using the LAS service.

Install LAS CLI

You can choose any of the following installation methods based on your operating system and environment.

This method is recommended if Node.js and npm are already installed in your environment.

npm install -g @las-ai/cli@latest
  • After installation, you can run las-cli --version to verify the installation result. If the version number is output successfully, the installation is complete.
  • You can send the following installation commands directly to the Agent to have the Agent install LAS CLI for you, or execute the installation commands in the terminal. The following are installation examples.

tip

When installing LAS CLI, the account environment used to execute the installation command must have global installation permissions. If permissions are lacking, or if authentication for global installation commands is required, you can adjust permissions and configure the necessary authentication information based on the actual environment.

Agent configuration example

The following is an example of installing LAS CLI through natural language interaction in ArkClaw.
Image

Terminal command example

Image

Uninstall LAS CLI

  • npm installation method: npm uninstall -g @las-ai/cli
  • Binary installation method: rm -f /usr/local/bin/las-cli (or the actual path prompted during installation)

Use LAS CLI

Step 1: Initialize LAS CLI

After installing LAS CLI for the first time, you need to run the init command to initialize LAS configuration, mainly to complete the authentication configuration for invoking LAS services.

  1. Obtain authentication information for LAS services. Currently, authentication for invoking LAS services supports using the LAS API Key. You can refer to the following method to obtain LAS API Key information.
    • LAS API Key: After logging in to LAS Console , create a LAS API Key on the Resource management > API key management page and obtain the corresponding information. For details, see API key management.
  2. Open the LAS initialization configuration file ~/.las-cli/config.json, configure the authentication parameters, and then run the init command to initialize LAS CLI.

    warning

    Authentication information is highly sensitive. If leaked, it may result in your model usage being consumed by others, resulting in losses. Therefore, please store and initialize configuration in a trusted environment.

    • You can send the obtained LAS API Key information to the Agent to have the Agent complete the initialization configuration for you, or directly modify the configuration file in the terminal and run the init command to perform the initialization configuration. The following are configuration examples for both scenarios.
    • To obtain the complete init command documentation, run las-cli init --help, or refer to the init command reference section below.
Agent configuration example

When configuring using the agent, it is recommended to set authentication information as environment variables, then allow the agent to retrieve environment variables for LAS CLI initialization. This avoids sending sensitive authentication information directly in plain text to the agent.
Image

Terminal command example
  1. Execute the las-cli init command in the terminal to launch the interactive interface for configuring LAS CLI initialization parameters.
  2. Follow the prompts on the interface to enter the initialization parameters, and press the Enter key to complete the configuration for each parameter.
    Image
    • For parameters that do not require configuration, simply press the Enter key to skip their configuration.
    • If there are existing previous configurations for corresponding parameters, the default value will be displayed. Press the Enter key to retain the previous configuration.
  3. Execute the las-cli config list command to view the initialization configuration results.
    Image

Step 2: Invoke LAS services for multimodal data processing

  1. Learn about the currently supported multimodal data processing operators available via LAS CLI, as well as the parameters for each operator.
Agent configuration example
  • View the list of supported operators
    Image
  • View the detailed parameter requirements for a specific operator.
    Image
Terminal command example

Execute las-cli operators list in the terminal to view the current list of supported operators, detailed parameter descriptions, and Examples for each operator.
Image

  1. Use LAS CLI to call operator services for multimodal data processing.
    The following demonstrates how to use the PDF Parse Doubao - Doubao AI PDF parsing operator to parse a sample PDF document, showing you how to perform multimodal data processing with LAS CLI.
Agent configuration example

You can send multimodal file links and task descriptions directly to the agent for processing.
Image

Terminal command example
  • You can specify operator parameter values directly when invoking an operator.
    Execute the las-cli operators call <operatorId> [--param1 value1 --param2 value2 ...] command to invoke a LAS operator.
    Image
  • You can also configure operator parameters in a JSON file and specify the parameter file when invoking the operator to set the operator parameters.
    1. For example, create a params.json file in the current directory and configure the operator parameters.

      {
        "url": "https://las-ai-cn-beijing-baseline.tos-cn-beijing.volces.com/operator_cards_serving/public/baseline/las_pdf_parse_doubao/v1/pdf-sample.pdf"
      }
      
    2. Run the following command to invoke the operator.

      las-cli operators call las_pdf_parse_doubao --params-file ./params.json
      

Step 3: Query and manage LAS data processing tasks

By using the las-cli task list command, you can view the list of executed data processing tasks. Additionally, the current invocation methods for LAS multimodal data processing operators support both sync (synchronous) and async (asynchronous) modes. For asynchronous tasks, you can also use this command to check task status.
Image

Step 4: Intelligent task orchestration

  1. LAS CLI provides native intelligent task orchestration capabilities. You can submit tasks using natural language via las-cli task create "task description", and the CLI will invoke a large model to orchestrate operators for the task.
    Image
  2. After submitting a task, use las-cli task list to view the task list and see the current status of the task:
    Image
  3. Once the task is completed, use las-cli task status task-ID to view the execution result:
    Image

Reference: LAS CLI command documentation

Invocation method description

  • General format: las-cli command

init

Command format

las-cli init

Parameter description

When executing the init command, an interactive LAS initialization parameter configuration interface will be launched. You can enter the configuration results for the following parameters in the interactive interface.

Parameter

Type

Required

Default value

Description

token

string

Yes

None

The LAS API Key, which you must obtain from the LAS console.

region

string

Yes

cn-beijing

The region selected for invoking the operator service.

modelEndpoint

string

No

None

Large model service endpoint (that is, Base_url).

modelName

string

No

None

Large model name.

modelApiKey

password string

No

None

Large model API Key.

tos

string

No

None

Optional object storage TOS address, used for uploading data files or saving results when invoking LAS operators.

region

Command format

las-cli region [region]

Parameter description

  • To reset the region for LAS services, you can set new region information.
  • If region information is not specified, the current region setting for LAS services will be returned.

Examples

  • View the current region for LAS services.

    las-cli region
    
  • Modify the current region for LAS services.

    las-cli region cn-shanghai
    

config

Command format: list

Use the list subcommand to view the current configuration results for parameters related to large models.

las-cli config list

Command format: model

Use the model subcommand to reset the large model parameters for LAS services.

las-cli config model

Parameter description

  • When setting model parameters with the model subcommand, you need to configure the following parameters.

Parameter

Type

Required

Default value

Description

endpoint

string

No

None

Large model service endpoint (that is, Base_url).

name

string

No

None

Large model name.

apiKey

password string

No

None

Large model API Key.

operators

Command format: list

Use the subcommand list to view the current list of supported operators, parameter descriptions for each operator, Examples, and other help content.

las-cli operators list

Command format: call

Use the subcommand call to invoke a specified operator for multimodal data processing.

las-cli operators call <operatorId> [--param1 value1 --param2 value2 ...]

The details are as follows:

  • operatorId: Replace with the operatorId of the LAS operator to be invoked.
  • Set operator parameters using --param according to the parameter requirements for operator invocation.

Supported operators and operatorId

Operator name

Operator ID

Description

Invocation mode

ASR Pro

las_asr_pro

Enhanced speech recognition, supports noise reduction, speaker identification, and more.

async

Audio Convert

las_audio_convert

Audio format conversion (wav/mp3/flac).

sync

Audio Extract & Split

las_audio_extract_and_split

Extract audio from video and split into segments.

sync

Image Resample

las_image_resample

Image resampling and scaling.

sync

PDF Parse Doubao

las_pdf_parse_doubao

Parse PDF documents using Doubao AI.

async

Video Edit

las_video_edit

AI video editing and processing.

async

Video Inpaint

las_video_inpaint

Remove objects from video (watermarks/subtitles, and so on).

async

Video Resize

las_video_resize

Adjust video resolution.

async

VLM Video

las_vlm_video

Visual language model video understanding.

sync

Description of operator invocation methods

Operators on the LAS platform support two invocation modes, and the CLI provides a unified invocation experience for both modes.

Mode

Description

sync (synchronous)

After the request is sent, the CLI immediately waits and directly returns the processing result. Suitable for tasks that require short processing time and can respond quickly.

async (asynchronous)

After the request is sent, the server immediately returns a task_id, indicating the task has been successfully submitted. The CLI will automatically poll the task by default until it is completed and output the final result. Suitable for tasks that require longer processing time.

Parameter description: ASR Pro (las_asr_pro)

Enhanced speech recognition operator, supporting audio preprocessing, noise reduction, and extended analysis features.
Invocation mode: async

Parameter

Type

Required

Default value

Description

--audio_url

string

Yes

None

Audio URL (http/https or tos://bucket/key).

--audio_format

string

Yes

None

Audio format, supports raw/wav/mp3/ogg.

--language

string

No

None

Language code (zh/en/ja/de and more).

--resource

string

No

bigasr

Resource pool (bigasr/seedasr).

--uid

string

No

None

User ID.

--model_name

string

No

bigmodel

Model name.

--model_version

string

No

None

Model version.

--enable_itn

boolean

No

None

Enable inverse text normalization (ITN).

--enable_punc

boolean

No

false

Enable punctuation.

--enable_ddc

boolean

No

false

Enable DDC.

--enable_speaker_info

boolean

No

false

Enable speaker information.

--enable_channel_split

boolean

No

false

Enable channel separation.

--show_utterances

boolean

No

false

Show utterance-level results.

--show_speech_rate

boolean

No

false

Show speech rate information.

--show_volume

boolean

No

false

Show volume information.

--enable_lid

boolean

No

false

Enable language detection

--enable_emotion_detection

boolean

No

false

Enable emotion detection

--enable_gender_detection

boolean

No

false

Enable gender detection

--vad_segment

boolean

No

false

Use VAD segmentation

--end_window_size

number

No

None

End window size (milliseconds)

--enable_denoise

boolean

No

false

Enable noise reduction

--enable_multi_language

boolean

No

None

Enable multilingual recognition

--sensitive_words_filter

string

No

None

Sensitive word filtering

--corpus_context

string

No

None

Corpus context

Examples:

las-cli operators call las_asr_pro \
  --audio_url "https://example.com/audio.wav" \
  --audio_format wav \
  --enable_punc true \
  --enable_speaker_info true \
  --language zh

Parameter description: Audio Convert (las_audio_convert)

Convert audio files between different formats.
Invocation mode: sync

Parameter

Type

Required

Default value

Description

--input_path

string

Yes

None

Input audio TOS path

--output_path

string

Yes

None

Output TOS path

--output_format

string

No

wav

Output format (wav/mp3/flac)

--extra_params

array

No

None

Additional FFmpeg parameters

Examples:

las-cli operators call las_audio_convert \
  --input_path "tos://bucket/input.mp3" \
  --output_path "tos://bucket/output.wav" \
  --output_format wav

Parameter description: Audio Extract & Split (las_audio_extract_and_split)

Extract audio from video and split it into segments based on the specified duration.
Invocation mode: sync

Parameter

Type

Required

Default value

Description

--input_path

string

Yes

None

Input TOS path

--output_path_template

string

Yes

None

Output TOS path template

--split_duration

number

No

30.0

Split duration (seconds)

--output_format

string

No

wav

Output format (wav/mp3/flac)

--timeout

number

No

None

FFmpeg timeout (seconds)

--extra_params

array

No

None

Additional FFmpeg parameters

Examples:

las-cli operators call las_audio_extract_and_split \
  --input_path "tos://bucket/video.mp4" \
  --output_path_template "tos://bucket/output/segment_%03d.wav" \
  --split_duration 60 \
  --output_format wav

Parameter description: Image Resample (las_image_resample)

Resample and scale images.
Invocation mode: sync

Parameter

Type

Required

Default value

Description

--image

string

Yes

None

Input image URL or TOS path

--tos_dir

string

Yes

None

Output TOS directory

--target_size

array

No

[200, 200]

Target size [width, height]

--target_dpi

array

No

None

Target DPI [x, y]

--method

string

No

lanczos

Interpolation method (nearest/bilinear/bicubic/lanczos)

--image_suffix

string

No

.jpg

Output format (.jpg/.png)

--image_name

string

No

None

Output file name (without suffix)

Examples:

las-cli operators call las_image_resample \
  --image "https://example.com/photo.jpg" \
  --tos_dir "tos://bucket/output/" \
  --target_size "[800, 600]" \
  --method lanczos

Parameter description: PDF Parse Doubao (las_pdf_parse_doubao)

Use Doubao AI to parse PDF documents, supporting both standard and detailed parsing modes.
Invocation mode: async

Parameter

Type

Required

Default value

Description

--url

string

Yes

None

PDF file URL

--parse_mode

string

No

normal

Parse mode (normal/detail)

--start_page

number

No

1

Start page number

--num_pages

number

No

None

Number of pages to parse

Examples:

las-cli operators call las_pdf_parse_doubao \
  --url "https://example.com/document.pdf" \
  --parse_mode detail \
  --start_page 1 \
  --num_pages 10

Parameter description: Video Edit (las_video_edit)

Edit and process videos using AI.
Invocation mode: async

Parameter

Type

Required

Default value

Description

--video_url

string

Yes

None

Video URL (http/https or tos://)

--output_tos_path

string

Yes

None

Output TOS path prefix

--task_name

string

No

None

Built-in scenario name

--task_description

string

No

None

Natural language task description

--reference_images

array

No

None

Reference images

--reference_target

string

No

None

Reference target name

--segment_duration

number

No

None

Segment duration (seconds)

--mode

string

No

None

Processing mode (simple/detail)

--min_segment_duration

number

No

None

Minimum segment duration (seconds)

--output_format

string

No

None

Output format (mp4/mkv)

Examples:

las-cli operators call las_video_edit \
  --video_url "https://example.com/video.mp4" \
  --output_tos_path "tos://bucket/output/edited" \
  --task_description "将视频剪辑为精彩片段" \
  --mode simple

Parameter description: Video Inpaint (las_video_inpaint)

Intelligently remove objects such as watermarks and subtitles from videos.
Invocation mode: async

Parameter

Type

Required

Default value

Description

--video_url

string

Yes

None

Video URL (http/https or tos://)

--output_tos_path

string

Yes

None

Output TOS path prefix

--targets

array

No

None

Target types (watermark/subtitle/scrolling_subtitle)

--return_subtitle_bbox

boolean

No

None

Return subtitle bounding box

--detection_precise_mode

boolean

No

None

Detection precise mode

--inpainting_backend

string

No

None

Inpainting backend (pixel_replace/pixel_generate)

--max_process_frames

number

No

None

Maximum number of frames to process

--subtitle_mask_precise

boolean

No

None

Subtitle mask precise mode

--fixed_bboxes

array

No

None

Fixed bounding box

Examples:

las-cli operators call las_video_inpaint \
  --video_url "https://example.com/video.mp4" \
  --output_tos_path "tos://bucket/output/inpainted" \
  --targets '["watermark", "subtitle"]' \
  --detection_precise_mode true

Parameter description: Video Resize (las_video_resize)

Adjust video resolution and encoding parameters.
Invocation mode: async

Parameter

Type

Required

Default value

Description

--video_path

string

Yes

None

Input video TOS path

--output_tos_dir

string

Yes

None

Output TOS directory

--output_file_name

string

Yes

None

Output file name

--min_width

number

Yes

None

Minimum width (pixels)

--max_width

number

Yes

None

Maximum width (pixels)

--min_height

number

Yes

None

Minimum height (pixels)

--max_height

number

Yes

None

Maximum height (pixels)

--force_original_aspect_ratio_type

string

No

None

Aspect ratio policy (disable/increase/decrease)

--force_divisible_by

number

No

None

Pixel alignment step

--cq

number

No

None

NVENC CQ value (0-51)

--rc

string

No

None

NVENC RC mode (constqp/vbr/cbr)

Examples:

las-cli operators call las_video_resize \
  --video_path "tos://bucket/input.mp4" \
  --output_tos_dir "tos://bucket/output/" \
  --output_file_name "resized.mp4" \
  --min_width 1280 --max_width 1920 \
  --min_height 720 --max_height 1080

Parameter description: VLM Video (las_vlm_video)

Use a visual language model to understand and analyze video content.
Invocation mode: sync

Parameter

Type

Required

Default value

Description

--video_url

string

Yes

No

Video URL (http/https or tos://bucket/key)

--text

string

Yes

No

Video understanding prompt (natural language description)

--model_name

string

No

No

Doubao model name

--min_resolution_height

number

No

No

Minimum vertical resolution

--compress_fps

number

No

No

Compression frame rate

--max_tokens

number

No

No

Maximum output token count

--max_completion_tokens

number

No

No

Maximum completion token count

--temperature

number

No

No

Sampling temperature (0~2)

--top_p

number

No

No

Top-p sampling (0~1)

--stop

array

No

No

Stop string

Examples:

las-cli operators call las_vlm_video \
  --video_url "https://example.com/video.mp4" \
  --text "请描述这个视频的内容" \
  --temperature 0.7

task

Command format: create

Use the task create "<description>" command to create an intelligent orchestration task with a natural language description. The CLI will invoke a pre-configured large model, decompose your text description into a series of specific operator invocation steps, and execute them automatically.

# Example: Let AI help you analyze video and extract audio
las-cli task create "请分析这个视频 tos://bucket/video.mp4,告诉我里面有什么内容,并把音频提取出来"

warning

Before using this feature, you must first properly configure the large model service via las-cli init or las-cli config model.

Command format: list

The task list command is used to view all locally recorded task history. This includes intelligent orchestration tasks generated by task create and asynchronous tasks produced by asynchronous operator invocation.

las-cli task list

Command format: status

task status <task_id> command is used to query the current status and result of a specified task. The CLI first searches the local orchestration task history. If the task is not found, it queries the LAS server as a normal asynchronous task.

las-cli task status task-1678886400000-abcd

Command format: wait

task wait <task_id> command blocks the current terminal until the specified asynchronous task is completed. This is very useful in scenarios where a script needs to wait for the result of a preceding task.

# Wait for an ASR task to complete and save its result to the result.json file
las-cli task wait <asr-task-id> --operator las_asr_pro --out result.json

Command format: kill

task kill <task_id> command sends a request to the LAS server to terminate a running asynchronous task.

las-cli task kill <your-task-id>

Command format: delete

task delete <task_id> is used to delete a specified task entry from the local task history, while task clear clears all local task history. This only affects local records and does not affect tasks already existing on the server.

# Delete a single local record
las-cli task delete task-1678886400000-abcd

# Clear all local records
las-cli task clear

help

Command format

las-cli help [command]

Examples

# View help information for the config command
las-cli help config

# View help information for the operators call command
las-cli help operators call

Reference: FAQ

Q: What should I do when using LAS CLI for the first time?
A: It is strongly recommended to run las-cli init directly. This interactive command guides you through all necessary configurations, including authentication credentials and default region, and is the fastest way to get started.
Q: I installed it on Windows. Why does running las-cli prompt that the command cannot be found?
A: If you installed via a PowerShell script, the script automatically updates the system PATH environment variable. However, you need to restart your terminal (such as PowerShell, CMD, or Windows Terminal) for the new environment variable to take effect.
Q: How do I set a global region to avoid specifying the --region parameter every time?
A: You can set a global default region using the las-cli region <region_name> command. For example, after running las-cli region cn-shanghai, all subsequent operator invocations will default to the Shanghai region unless you explicitly override it with --region.

Last updated: 2026.05.18 20:21:11