Prism
v0.3.0
v0.3.0
  • 👋Welcome to Prism!
  • Getting Started
    • Installation
    • Creating your first project
    • Why Prism?
  • Fundamentals
    • PrismProject API
      • PrismProject().run
      • PrismProject().graph
    • Tasks
    • Targets
      • Multiple targets
    • CurrentRun API
      • CurrentRun.ref()
      • CurrentRun.conn()
      • CurrentRun.ctx()
  • Connectors
    • Overview
    • BigQueryConnector
    • PostgresConnector
    • RedshiftConnector
    • SnowflakeConnector
    • TrinoConnector
    • PrestoConnector
  • CLI
    • Command Line Interface
    • graph
    • init
    • run
  • Advanced features
    • Concurrency
    • Logging
    • Callbacks
    • Retries
    • Skipping tasks
  • API Reference
    • prism.task.PrismTask
    • @task(...)
    • @target(...)
    • @target_iterator(...)
    • prism.target.PrismTarget
  • Use Cases
    • Analytics on top of dbt
    • Machine Learning
  • Wiki
    • DAGs
Powered by GitBook
On this page
  • Usage
  • Example
  1. CLI

graph

Usage

prism graph is used to render your project as a series of nodes and edges (i.e., a graph) and launch an interactive UI for visualizing this graph.

Usage: prism graph [OPTIONS]                                                                                       
                                                                                                                    
 Launch the Prism Visualizer UI to view your project as a graph. This is the CLI equivalent of calling              
 PrismProject.graph(...) in your Python script.                                                                     
                                                                                                                    
╭─ Options ────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│    --project-id           TEXT                                 Project ID.                                       │
│    --project-name         TEXT                                 Project name.                                     │
│    --project-version      TEXT                                 Project version.                                  │
│ *  --tasks-dir            TEXT                                 Directory containing tasks. Default is the        │
│                                                                "tasks" folder in the current directory.          │
│                                                                [required]                                        │
│    --port             -p  INTEGER                              Port used by the webserver for launching the UI.  │
│                                                                Default is 8000.                                  │
│    --open-window                                               Open the visualizer UI in a new window in your    │
│                                                                default web browswer.                             │
│    --hot-reload                                                Update the project's graph after each local       │
│                                                                change                                            │
│    --log-level        -l  [info|warning|error|debug|critical]  Set the log level                                 │
│    --help                                                      Show this message and exit.                       │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Example

Here's what an example project looks like:

PreviousCommand Line InterfaceNextinit

Last updated 1 year ago

The CLI arguments are largely the same as the arguments used to instantiate the and call the method. However, note that the CLI command ignores connectors, callbacks, concurrency, and package_lookups. These inputs do not affect the graph command's behavior.

PrismProject
PrismProject.graph()