Skip to content

[Epic] tt CLI 2.0-2.2 Q2 #3850

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
20 tasks done
p7nov opened this issue Nov 14, 2023 · 2 comments
Closed
20 tasks done

[Epic] tt CLI 2.0-2.2 Q2 #3850

p7nov opened this issue Nov 14, 2023 · 2 comments
Assignees

Comments

@p7nov
Copy link
Contributor

p7nov commented Nov 14, 2023

Related dev. issue(s): GitHub link(s)

Product: tt cli
Since: tt 2.0-2.2
Audience/target: all
Root document: https://www.tarantool.io/en/doc/latest/reference/tooling/tt_cli/
SME: @ psergee

Details

Update tt CLI docs according to changes in releases 2.0.0-2.2.1. See also: Migration from older versions.

Important changes of tt 2.0

Key changes of tt 2.0 were documented in scope of #3996.

Tasks

23 sp:

@p7nov p7nov self-assigned this Nov 16, 2023
@p7nov p7nov changed the title [Epic] tt CLI 2.0 [Epic] tt CLI 2.0 and 2.1 Dec 21, 2023
@andreyaksenov
Copy link
Contributor

andreyaksenov commented Dec 26, 2023

It would be useful to have a doc page that describes scenarios for working with tt. Here are some of my thoughts on how tt commands can be divided depending on a usage scenario:

Prerequisites: install tt

1) Tips and tricks:
version
help
completion

2) Initialize the environment:
init
cfg

3) Install Tarantool:
search
install
uninstall
binaries

4) Developing the app:
create
instances
run
check
build
rocks
pack

5) Admininstration:
- (instances)
start	Start a Tarantool instance
status	Get the current status of a Tarantool instance
connect	Connect to a Tarantool instance
stop	Stop a Tarantool instance
restart	Restart a Tarantool instance
clean	Clean instance files

- (maintenance)
cat	Print the contents of .snap or .xlog files into stdout
play	Play the contents of .snap or .xlog files to another Tarantool instance

- (logs)
logrotate	Rotate instance logs

- (data)
crud	Interact with the CRUD module (Enterprise only)
export	Export data to a file (Enterprise only)
import	Import data from a file (Enterprise only)

6) Debugging:
coredump	Manipulate Tarantool core dumps

At least, we can try to group commands on this page instead of the current alphabetical list:
https://www.tarantool.io/en/doc/latest/reference/tooling/tt_cli/commands/

@andreyaksenov
Copy link
Contributor

andreyaksenov commented Dec 28, 2023

tt connect example with SSL:

% ls
client.crt      client.key
% tt connect 127.0.0.1:3301 \
           --username admin --password topsecret \
           --sslcertfile client.crt --sslkeyfile client.key
   • Connecting to the instance...
   • Connected to 127.0.0.1:3301

127.0.0.1:3301>

Without the cert and key files provided, the following error is thrown:

⨯ failed to run interactive console: failed to create new console: failed to connect: failed to dial: SSL errors: SSL routines::sslv3 alert handshake failure

Username and password can be also specified using env vars:

* TT_CLI_USERNAME - specifies a username
* TT_CLI_PASSWORD - specifies a password

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants