{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/vi/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Quy trình tài nguyên"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"quy-trình-tài-nguyên","__idx":0},"children":["Quy trình tài nguyên"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Trước khi ghi, lấy ID thực từ lệnh danh sách. Đặt ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ENV_ID"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PHONE_ID"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TEAM_APP_ID"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GROUP_ID"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["FILE_ID"]}," đúng loại tài nguyên. Mỗi ví dụ là một thao tác riêng, không chạy nối tiếp như một tập lệnh."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"hồ-sơ-và-nhân-trình-duyệt","__idx":1},"children":["Hồ sơ và nhân trình duyệt"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"ml-cli env find --keyword Amazon\nml-cli --timeout 30 env open --keyword Amazon --exact\nml-cli --timeout 30 env start --env-id \"$ENV_ID\" --is-headless false --cdp-evasion true\nml-cli env core-download --core 1:124 --core 2:146\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["find/open"]}," tìm theo tên, nhóm, thẻ hoặc ghi chú; chỉ mở khi có đúng một kết quả. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["env start"]}," hỗ trợ ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--encrypt-key"]}," cho hồ sơ mã hóa. Nhân ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["1"]}," là Chrome, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["2"]}," là Firefox; 1–20 mục hoặc JSON ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Cores"]},". Phiên bản chỉ minh họa."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["env create-quick"]}," thêm nhóm, proxy, thông tin xác thực, vị trí và giám sát IP. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["fingerprint-refresh"]}," hỗ trợ ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--browser-type-id"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--operator-system-id"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--ua-version"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--advanced-setting"]},"; ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["resolution-list"]}," có ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--ua"]},". ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["set-group/set-remark"]}," nhận ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--env-ids"]}," hoặc ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--unique-ids"]},". ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["app-hide-accessibility --package-name"]}," lặp được (bí danh ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--package-names"]},"). Xem ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/cli/commands"},"children":["Lệnh"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"điện-thoại-đám-mây","__idx":2},"children":["Điện thoại đám mây"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"ml-cli cloudphone find --keyword android-test\nml-cli --timeout 120 cloudphone open --keyword android-test --headless false\nml-cli --timeout 120 cloudphone power-on --id \"$PHONE_ID\" --headless true --disable-money-saving-mode false\nml-cli --timeout 30 cloudphone close --keyword android-test\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["headless=false"]}," hiện cửa sổ, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["true"]}," ẩn. Bật máy hỗ trợ ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--disable-money-saving-mode"]},". Mở theo tên/từ khóa cần đúng một kết quả. Yêu cầu thành công không chứng minh máy đã bật hoặc truyền hình đã sẵn sàng."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ứng-dụng-nhóm","__idx":3},"children":["Ứng dụng nhóm"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["team-app-list"]}," đọc thư viện nhóm; ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["app-list"]}," đọc danh mục. Dùng ID bản ghi nhóm, không dùng ID điện thoại/danh mục. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["versionCode"]}," trong danh sách là văn bản; ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--version-code"]}," và JSON ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["versionCode"]}," phải là số nguyên i64 có dấu, không phải chuỗi, số thập phân, tên hay ID phiên bản."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["team-app-list"]}," mặc định ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pageNo=1"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pageSize=10"]},"; giá trị phân trang phải trong phạm vi u32. Lấy ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PACKAGE_NAME"]}," và số nguyên ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["VERSION_CODE"]}," từ ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["app-list"]},". Cập nhật chỉ dành cho ứng dụng danh mục, chọn phiên bản khả dụng khác cùng tên gói; máy chủ kiểm tra tính khả dụng."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"ml-cli cloudphone team-app-list --app-name Facebook --page-no 1 --page-size 10\nml-cli cloudphone app-list --app-name Facebook\nml-cli --fail-on-business-error cloudphone team-app-create --package-name \"$PACKAGE_NAME\" --version-code \"$VERSION_CODE\"\nml-cli --fail-on-business-error cloudphone team-app-update-group --id \"$TEAM_APP_ID\" --is-all false --group-ids \"$GROUP_ID\"\nml-cli --fail-on-business-error cloudphone team-app-enable --id \"$TEAM_APP_ID\" --enabled false\nml-cli --fail-on-business-error cloudphone team-app-update-install-setting --id \"$TEAM_APP_ID\" --install-setting 2\nml-cli --fail-on-business-error cloudphone team-app-update-enable-root --id \"$TEAM_APP_ID\" --enable-root false\nml-cli --fail-on-business-error cloudphone team-app-update-version --id \"$TEAM_APP_ID\" --package-name \"$PACKAGE_NAME\" --version-code \"$VERSION_CODE\"\nml-cli --fail-on-business-error cloudphone team-app-update-setting --id \"$TEAM_APP_ID\" --setting-type keep-alive --enabled false\nml-cli --fail-on-business-error cloudphone team-app-operate --id \"$TEAM_APP_ID\" --operation START --only-started-by-me true\nml-cli --fail-on-business-error cloudphone team-app-delete --id \"$TEAM_APP_ID\"\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Tạo chỉ hỗ trợ ứng dụng từ danh mục, trả ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.id"]},", không tải APK tùy chỉnh. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["isAll=false"]}," cần ID nhóm không rỗng; ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["true"]}," cho phép bỏ qua/null. Chính sách ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["1"]}," ghi đè, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["2"]}," bỏ qua. Xóa bản ghi giữ ứng dụng và dữ liệu trên thiết bị."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Cấu hình nhận ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["permission/keep-alive/auto-start/hide"]}," hoặc ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PERMISSION/KEEP_ALIVE/AUTO_START/HIDE"]},". Thao tác nhận ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start/stop/restart/uninstall"]}," hoặc chữ hoa. Cờ và JSON nhận đúng các dạng này rồi gửi enum API chữ hoa. Giá trị khác bị từ chối. Bỏ qua/null ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onlyStartedByMe"]}," là false; thiếu/null ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["enabled"]}," bị từ chối."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"ml-cli --fail-on-business-error cloudphone team-app-update-setting --json-data '{\"id\":\"123456\",\"settingType\":\"KEEP_ALIVE\",\"enabled\":true}' --enabled false\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Ghi phiên bản/cấu hình trả ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data=null"]},", chỉ xác nhận lưu. Phiên bản, quyền và tự chạy áp dụng khi khởi động; giữ hoạt động/ẩn còn có thể được máy chủ gửi bất đồng bộ. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data=true"]}," hàng loạt không đảm bảo từng máy thành công. CLI không tự bật máy, ghi lại hay thăm dò. Gỡ ứng dụng có thể xóa dữ liệu thiết bị nhưng giữ cấu hình cài sẵn. Đọc lại bằng ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["team-app-list"]}," và kiểm tra thiết bị riêng."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"lưu-trữ-đám-mây","__idx":4},"children":["Lưu trữ đám mây"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"ml-cli cloud-storage info\nml-cli cloud-storage list --keyword video --page-no 1 --page-size 20\nml-cli cloud-storage presign --file-name video.mp4\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Tải lên ba bước: presign, PUT dữ liệu nhị phân tới ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["presignedUrl"]},", rồi ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["complete --id"]}," với ID nhận được. Gửi cả headers trả về. Chỉ complete sau khi PUT thành công. Nếu sandbox/mạng chặn PUT, xin quyền mạng hoặc nhờ người dùng chạy cùng lệnh tại máy. Không công khai URL tạm thời."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl -f -L -X PUT --upload-file ./video.mp4 \"$PRESIGNED_URL\"\nml-cli cloud-storage complete --id \"$UPLOAD_ID\"\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"powershell","header":{"controls":{"copy":{}}},"source":"curl.exe -f -L -X PUT --upload-file .\\video.mp4 \"$env:PRESIGNED_URL\"\nml-cli cloud-storage complete --id \"$env:UPLOAD_ID\"\n","lang":"powershell"},"children":[]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"ml-cli cloud-storage labels\nml-cli cloud-storage label-create --label-name automation --color \"#2F80ED\"\nml-cli cloud-storage label-update --label-id \"$LABEL_ID\" --label-name automation-ready --color \"#27AE60\"\nml-cli cloud-storage file-labels --file-id \"$FILE_ID\"\nml-cli cloud-storage add-labels --file-id \"$FILE_ID\" --tag-id \"$LABEL_ID\"\nml-cli cloud-storage set-labels --file-id \"$FILE_ID\" --tag-id \"$LABEL_ID\"\nml-cli cloud-storage label-delete --label-id \"$LABEL_ID\"\nml-cli cloud-storage delete --file-id \"$FILE_ID\"\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["RPA dùng ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["morelogin://cloudfile?ids=<fileId>"]},", nhiều ID phân cách bằng dấu phẩy. Giữ metadata ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["__Extra__"]},". Lập lịch và truy vấn bằng ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["schedule template-market/template-personal/list/create-once-task/cancel/subtask-list/subtask-detail/subtask-cancel"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"trình-duyệt-đám-mây","__idx":5},"children":["Trình duyệt đám mây"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"ml-cli cloud-browser list --page-no 1 --page-size 10\nml-cli --timeout 30 cloud-browser start --env-id \"$ENV_ID\"\nml-cli cloud-browser connect --env-id \"$ENV_ID\"\nml-cli cloud-browser stop --env-id \"$ENV_ID\" --force false\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Các lệnh này quản lý trình duyệt đám mây từ xa; ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["env start/open"]}," điều khiển hồ sơ cục bộ. Start/stop/connect có cờ và JSON riêng; xem trợ giúp trước khi tái dùng ID hoặc cổng."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"nhóm-thẻ-proxy-và-metadata","__idx":6},"children":["Nhóm, thẻ, proxy và metadata"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"ml-cli group list\nml-cli tag list\nml-cli proxy list\nml-cli env set-group --help\nml-cli env set-proxy --help\nml-cli env set-remark --help\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Phản hồi có thể gồm ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["groupName"]}," (null khi không nhóm), ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tagInfos"]}," (rỗng khi không thẻ), ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["envRemark"]},". ID thẻ là chuỗi. Bảng ưu tiên các trường này; JSON giữ cấu trúc lồng nhau. Cờ tạo, sửa, xóa xem trong ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/cli/commands"},"children":["Lệnh"]},"."]}]},"headings":[{"value":"Quy trình tài nguyên","id":"quy-trình-tài-nguyên","depth":1},{"value":"Hồ sơ và nhân trình duyệt","id":"hồ-sơ-và-nhân-trình-duyệt","depth":2},{"value":"Điện thoại đám mây","id":"điện-thoại-đám-mây","depth":2},{"value":"Ứng dụng nhóm","id":"ứng-dụng-nhóm","depth":2},{"value":"Lưu trữ đám mây","id":"lưu-trữ-đám-mây","depth":2},{"value":"Trình duyệt đám mây","id":"trình-duyệt-đám-mây","depth":2},{"value":"Nhóm, thẻ, proxy và metadata","id":"nhóm-thẻ-proxy-và-metadata","depth":2}],"frontmatter":{"seo":{"title":"Quy trình tài nguyên"}},"lastModified":"2026-10-20T08:43:16.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/vi/cli/workflows","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}