code (version 0.3.23)

sifflet code workspace

Manages workspaces.

sifflet code workspace init

Description

Creates a new Workspace YAML file locally.

sifflet code workspace init --file <file_name> --name <workspace_name>

Options

--file (string)

Path of the Workspace YAML file

--name (string)

Name of the new workspace

sifflet code workspace list

Description

List all workspaces.

sifflet code workspace list

Options

sifflet code workspace plan

Description

Show the plan for applying the specified workspace (dry-run mode)

sifflet code workspace plan --file <file_name>

Options

--file (string)

Path of the Workspace YAML file to deploy

--quiet (flag)

Print only changes with errors and the summary

sifflet code workspace apply

Description

Show the plan for applying the specified workspace and ask for user confirmation. If "yes", apply the specified workspace.

sifflet code workspace apply --file <file_name>

Options

--file (string)

Path of the Workspace YAML file to deploy

--auto-approve (flag)

Skip plan and confirmation, and apply directly

--keep-untracked-resources (flag)

Keep resources that are not tracked by the workspace anymore instead of deleting them

--fail-on-error (flag)

Fail the entire update if any error is detected

--quiet (flag)

Print only changes with errors and the summary

📘

Untracking monitors

By default, if a monitor becomes untracked (i.e., it has been removed from the YAML files), it will be deleted from Sifflet. You can choose to keep it in Sifflet by using the --keep-untracked-resources flag.

sifflet code workspace delete

Description

Deletes a workspace and its resources.

Via the file definition of the workspace:

sifflet code workspace delete --file <file_name>

or via the ID of the workspace:

sifflet code workspace delete --id <id>

Options

--id (string)

ID of the workspace to delete

--file (string)

Path of the Workspace YAML file to delete

--keep-resources (flag)

Keep workspace's resources instead of deleting them

--auto-approve (flag)

Skip plan and confirmation, and apply directly

--quiet (flag)

Print only changes with errors and the summary


sifflet code monitor

Manages monitors.

sifflet code monitor init

Description

Creates a new Monitor YAML file locally.

sifflet code monitor init --file <file_name> --name <monitor_name>

Options

--file (string)

Path of the Monitor YAML file

--name (string)

Name of the new monitor