Command-line Interface

daeploy

Command-line tool for Daeploy. Initialize a new project, deploy services, list them and kill them in a convenient package.

daeploy [OPTIONS] COMMAND [ARGS]...

Options

--version

Show version of the SDK and the Manager

--install-completion <install_completion>

Install completion for the specified shell.

Options

bash | zsh | fish | powershell | pwsh

--show-completion <show_completion>

Show completion for the specified shell, to copy it or customize the installation.

Options

bash | zsh | fish | powershell | pwsh

assign

Change main version of a service.

daeploy assign [OPTIONS] NAME VERSION

Options

--yes

Give confirmation to assign service. Skips prompt, use with caution.

Default

False

Arguments

NAME

Required argument

VERSION

Required argument

deploy

Deploy a new service.

daeploy deploy [OPTIONS] NAME VERSION SOURCE

Options

-p, --port <port>

Internal port for the service.

Default

8000

-e, --environment <envvars>

Set an environment variable in the service as NAME=VALUE

--build-image <build_image>

S2I build image to use when building the service image

-i, --image

Deploy service from an docker image.

Default

False

-I, --image-local

Deploy service from a local docker image (requires docker installation).

Default

False

-g, --git

Deploy service from a git repository URL.

Default

False

Arguments

NAME

Required argument

VERSION

Required argument

SOURCE

Required argument

init

Generates skeleton code for a new Daeploy project.

daeploy init [OPTIONS] [PATH]

Options

-n, --name <project_name>

Name of the project to skip prompt.

Arguments

PATH

Optional argument

kill

Kill one or multiple services by name and version.

daeploy kill [OPTIONS] [NAME] [VERSION]

Options

-a, --all

Kill all services

Default

False

--yes

Give confirmation to kill services. Skips prompt, use with caution.

Default

False

-i, --keep-image

Keep the image(s) of the killed service(s). Might result in dangling images.

Default

False

Arguments

NAME

Optional argument

VERSION

Optional argument

login

Log in to the specified host.

daeploy login [OPTIONS]

Options

-h, --host <host>

Host address to log in to.

-u, --username <username>

Username

-p, --password <password>

Password. Use with caution because input will be saved in terminal history.

-t, --token <_token>

Log in to a manager using a token instead of username and password.

logout

Log out from a host

daeploy logout [OPTIONS] [HOST]

Arguments

HOST

Optional argument

logs

Shows the logs for a service.

daeploy logs [OPTIONS] NAME [VERSION]

Options

-n, --tail <tail>

Output specified number of lines at the end of logs.Use “all” to get all logs.

Default

50

-f, --follow

If the logs should be followed

Default

False

-d, --date <date>

Show logs since given datetime.

Arguments

NAME

Required argument

VERSION

Optional argument

ls

List running services, filtered by name and version.

daeploy ls [OPTIONS] [NAME] [VERSION]

Arguments

NAME

Optional argument

VERSION

Optional argument

test

Test a service before deployment.

daeploy test [OPTIONS] [SERVICE_PATH]

Arguments

SERVICE_PATH

Optional argument

token

Generate a new authentication token.

daeploy token [OPTIONS] [LIFETIME]

Arguments

LIFETIME

Optional argument

user

Collection of user management commands

daeploy user [OPTIONS] COMMAND [ARGS]...

add

Add a new user to the active host

daeploy user add [OPTIONS] USERNAME

Options

-p, --password <password>

Give password in command instead of in prompt. Warning: Insecure

Arguments

USERNAME

Required argument

ls

List all users for the active host

daeploy user ls [OPTIONS]

rm

Delete a user from the active host

daeploy user rm [OPTIONS] USERNAME

Options

--yes

Give confirmation to delete user. Skips prompt, use with caution.

Default

False

Arguments

USERNAME

Required argument

update

Change the password of a user on the active host

daeploy user update [OPTIONS] USERNAME

Options

-p, --password <password>

Give password in command instead of in prompt. Warning: Insecure

Arguments

USERNAME

Required argument