Skip to content

Unknown command show help with 0 code return #1211

@d-enk

Description

@d-enk
tt unknown; echo $?
Utility for managing Tarantool packages and Tarantool-based applications

USAGE
  tt [flags] <command> [command flags]

COMMANDS
  aeon        Manage aeon application
  binaries    Manage installed binaries
  build       Build an application (default ".")
  cartridge   Manage cartridge application
  cat         Print into stdout the contents of .snap/.xlog FILE(s)
  cfg         Environment configuration management utility
  check       Check an application file for syntax errors
  clean       Clean instance(s) files
  cluster     Manage cluster configuration
  completion  Generate autocomplete for a specified shell. Supported shell type: bash | zsh | fish
  connect     Connect to the tarantool instance
  coredump    Perform manipulations with the tarantool coredumps
  create      Create an application from a template
  daemon      Perform manipulations with the tt daemon (experimental)
  download    Download Tarantool SDK
  enable      Create a symbolic link in 'instances_enabled' directory to a script or an application directory
  env         Add current environment binaries location to the PATH variable
  help        Help about any command
  init        Create tt environment config for application in current directory
  install     Install program
  instances   Show list of enabled applications
  kill        Kill tarantool instance(s)
  log         Get logs of instance(s)
  logrotate   Rotate logs of a started tarantool instance(s)
  modules     Manage tt cli modules
  pack        Pack application into a distributable bundle
  play        Play the contents of .snap/.xlog FILE(s) to another Tarantool instance
  replicaset  Manage replicasets
  restart     Restart tarantool instance(s)
  rocks       LuaRocks package manager
  run         Run Tarantool instance
  search      Search for available versions for the program
  start       Start tarantool instance(s)
  status      Status of the tarantool instance(s)
  stop        Stop tarantool instance(s)
  tcm         Manage tcm application
  uninstall   Uninstalls a program
  version     Show Tarantool CLI version information
 

FLAGS
  -c, --cfg string     Path to configuration file
  -h, --help           help for tt
  -I, --internal       Use internal module
  -L, --local string   Local launch
      --no-prompt      Skip cli interaction using default behavior
  -s, --self           Skip searching for other tt versions to run
  -S, --system         System launch
  -V, --verbose        Verbose output

EXAMPLES
  $ tt -L /path/to/local/dir version
  $ tt -S -I help
  $ tt completion

If tt was installed from a repository, then the basic replicaset examples were installed with it.
To start work with these examples create a symbolic link in system instances enabled directory
(requires root permissions) to enable the application:

Tarantool 2.*:
  # ln -s /etc/tarantool/instances.available/replicaset_example_tarantool_2 \
/etc/tarantool/instances.enabled/replicaset_example

Tarantool 3.*:
  # ln -s /etc/tarantool/instances.available/replicaset_example_tarantool_3 \
/etc/tarantool/instances.enabled/replicaset_example

After that tt will be able to manage the application using 'replicaset_example' name:
  # tt start replicaset_example
    • Starting an instance [replicaset_example:master]...
    • Starting an instance [replicaset_example:replica]...

Use "tt <command> --help" for more information about a command.
0

Other tools:

go unknown; echo $?
go unknown: unknown command
Run 'go help' for usage.
2
helm unknown; echo $?
Error: unknown command "unknown" for "helm"
Run 'helm --help' for usage.
1
docker unknown; echo $?
docker: unknown command: docker unknown

Run 'docker --help' for more information
1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions