# Creating a Workflow You can create workflows in the CLI or the UI. Treasure Data™ makes moving between these two interface options smooth. Allowing you to query from either the CLI or the Treasure Data platform. Workflow names do not support spaces; Treasure Data automatically changes the spaces to underscores. ## Create a step-by-step guide: 1. Open the terminal. 2. Open your workflow directory. ```bash $ cd /users//mydirectory ``` 1. List the existing item(s) in your directory to verify the files. ```bash $ ls -la ``` 1. Create a workflow file. This file must have a .dig extension. ```bash $ cat > my_workflow.dig ``` 1. After you have created the file, type in the contents of your workflow. For example: ```yaml _export: tmp_var: hello world +echo_task1: echo>: this is test task! +echo_task2: echo>: ${tmp_var} ``` 1. Type `Ctrl + D` to stop editing. You can create this file with another command, such as `nano`, a Linux Command Line editor. 2. Create the project name and push the workflow to Treasure Data. ```bash $ td wf push my_project ``` 1. After you have created the project file in Treasure Data, your terminal displays the following: ![](/assets/image-20200128-230436.cae16de6a594d0aa137cf039b78e5fa00a7f9b652850fb074366ae76f0278e1a.2e4f387b.png)