Notebook Commands
Weik.io 2026.1Manage notebooks using the CLI.
On this page
Manage notebooks for executing Python code and automation tasks.
Usage#
Terminal
weikio notebooks [NotebookId] [command] [options]Arguments:
| Name | Required | Description |
|---|---|---|
| NotebookId | No | ID of the notebook (required for some operations) |
Subcommands#
ls#
List all notebooks.
Usage:
Terminal
weikio notebooks lsExample:
Terminal
weikio notebooks lsrun#
Run a notebook.
Usage:
Terminal
weikio notebooks run <NotebookId>Arguments:
| Name | Required | Description |
|---|---|---|
| NotebookId | Yes | ID of the notebook to run |
Example:
Terminal
weikio notebooks run f47ac10b-58cc-4372-a567-0e02b2c3d479schedule#
Manage notebook schedules.
Usage:
Terminal
weikio notebooks schedule [command]schedule add
Add a schedule to a notebook.
Usage:
Terminal
weikio notebooks schedule add <NotebookId> --cron "<Expression>"Arguments:
| Name | Required | Description |
|---|---|---|
| NotebookId | Yes | ID of the notebook |
Options:
| Flag | Description |
|---|---|
--cron <expression> |
Cron expression for the schedule |
-- |
Frequency of the schedule, in place of --cron |
Example:
Terminal
weikio notebooks schedule add f47ac10b-58cc-4372-a567-0e02b2c3d479 --cron "0 0 * * *"schedule delete
Delete a notebook schedule.
Usage:
Terminal
weikio notebooks schedule delete <ScheduleId>Arguments:
| Name | Required | Description |
|---|---|---|
| ScheduleId | Yes | ID of the schedule to delete |
Example:
Terminal
weikio notebooks schedule delete 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6dendpoint#
Manage notebook endpoints.
Usage:
Terminal
weikio notebooks endpoint [command]endpoint add
Add an endpoint to a notebook.
Usage:
Terminal
weikio notebooks endpoint add <NotebookId> --route <Path> --name <Name>Arguments:
| Name | Required | Description |
|---|---|---|
| NotebookId | Yes | ID of the notebook |
Options:
| Flag | Description |
|---|---|
-- |
Path for the endpoint, required |
-- |
Name of the endpoint, required |
Example:
Terminal
weikio notebooks endpoint add f47ac10b-58cc-4372-a567-0e02b2c3d479 --route /api/my-notebook --name my-notebookendpoint delete
Delete a notebook endpoint.
Usage:
Terminal
weikio notebooks endpoint delete <EndpointId>Arguments:
| Name | Required | Description |
|---|---|---|
| EndpointId | Yes | ID of the endpoint to delete |
Example:
Terminal
weikio notebooks endpoint delete 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d