6 Commits

Author SHA1 Message Date
Andrei Strongin c5e968b652 Fix test 2026-05-21 16:15:58 +04:00
Andrei Strongin f50dfefb12 Add 'backup' and 'create-from-backup' methods into CLI for Project entity (#10618) 2026-05-20 14:45:37 +03:00
Maxim Zhiltsov 920100ef15 Exporting with server filename in sdk/cli (#9732) 2025-08-27 19:45:17 +03:00
Boris Sekachev 5a99e73efd Drop years from license headers associated to CVAT.ai Corporation (#8968) 2025-01-21 09:31:41 +02:00
Roman Donchenko 73458b3f38 CLI: make the output of create commands machine-readable (#8833)
The underlying SDK functions already emit human-friendly log messages
with the ID of the created resource. Instead of printing largely the
same message twice, we can just print the ID. That way, the CLI can be
more easily integrated into other software.
2024-12-17 14:49:39 +02:00
Roman Donchenko 3f44834251 Make the CLI hierarchical (#8787)
Currently, the CLI has one level of subcommands, and all subcommands
work on tasks. This leaves no room for subcommands that work on other
CVAT resources.

This change redesigns the CLI interface by adding another level of
subcommand hierarchy. Instead of running `cvat-cli <action>`, the user
will now run `cvat-cli <resource> <action>`. Previously available
commands are left available as deprecated aliases.

As a proof of concept, this PR adds some basic project actions.

I have also used this opportunity to correct some of the task action
names, specifically `export`, `import`, `dump` and `upload`. These names
don't correspond to either SDK function names, API endpoints, or UI
labels corresponding to these actions. In the new subcommand hierarchy,
I renamed those commands to `backup`, `create-from-backup`,
`export-dataset` and `import-dataset`, which are more consistent with
how other CVAT components call these actions.

I rewrote the introduction and usage sections of the cli README and
reference in order to reduce clutter and remove the need to
resynchronize the help output after every interface change.
2024-12-11 15:20:47 +02:00