Files
cheatsheet-tldr/tldr/odpscmd-resource
2025-12-22 00:22:43 +00:00

35 lines
727 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# odpscmd resource
> Manage resources in ODPS (Open Data Processing Service).
> See also: `odps`.
> More information: <https://www.alibabacloud.com/help/en/maxcompute/user-guide/maxcompute-client>.
- [Interactive] Show resources in the current project:
`list resources;`
- [Interactive] Add file resource:
`add file {{filename}} as {{alias}};`
- [Interactive] Add archive resource:
`add archive {{archive.tar.gz}} as {{alias}};`
- [Interactive] Add `.jar` resource:
`add jar {{package.jar}};`
- [Interactive] Add `.py` resource:
`add py {{script.py}};`
- [Interactive] Delete resource:
`drop resource {{resource_name}};`