Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
Temporal-Python-SDK/start-temporal-dev.sh at main · YJ-928/Temporal-Python-SDK · GitHub
Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
YJ-928
Temporal-Python-SDK
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
Temporal-Python-SDK
/
start-temporal-dev.sh
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
executable file
·
107 lines (94 loc) · 3.87 KB
main
Breadcrumbs
Temporal-Python-SDK
/
start-temporal-dev.sh
Copy path
Top
File metadata and controls
Code
Blame
executable file
·
107 lines (94 loc) · 3.87 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#!
/usr/bin/env bash
#
Start Temporal development server (local mode)
#
Automatically installs the Temporal CLI if not found.
set
-e
RED=
'
\033[0;31m
'
GREEN=
'
\033[0;32m
'
YELLOW=
'
\033[1;33m
'
BLUE=
'
\033[0;34m
'
NC=
'
\033[0m
'
#
No Color
TEMPORAL_INSTALL_DIR=
"
$HOME
/.temporalio/bin
"
#
---------------------------------------------------------------------------
#
Detect temporal: check PATH first, then the known install dir.
#
If found in the install dir but not in PATH, add it silently.
#
---------------------------------------------------------------------------
detect_temporal
() {
if
command
-v temporal
&
>
/dev/null
;
then
return
0
#
already in PATH
fi
if
[[
-x
"
$TEMPORAL_INSTALL_DIR
/temporal
"
]]
;
then
#
Installed but not in PATH — add it for this session
export
PATH=
"
$TEMPORAL_INSTALL_DIR
:
$PATH
"
echo
-e
"
${YELLOW}
Temporal found at
$TEMPORAL_INSTALL_DIR
but not in PATH.
${NC}
"
echo
-e
"
${YELLOW}
Add the following to your shell profile to make it permanent:
${NC}
"
echo
"
"
echo
"
export PATH=
\"\$
HOME/.temporalio/bin:
\$
PATH
\"
"
echo
"
"
return
0
fi
return
1
#
not found anywhere
}
#
---------------------------------------------------------------------------
#
Install via the official Temporal install script (works on Linux & macOS)
#
---------------------------------------------------------------------------
install_via_script
() {
echo
-e
"
${BLUE}
Downloading and running the official Temporal CLI install script...
${NC}
"
if
command
-v curl
&
>
/dev/null
;
then
curl -sSf https://temporal.download/cli.sh
|
sh
elif
command
-v wget
&
>
/dev/null
;
then
wget -qO- https://temporal.download/cli.sh
|
sh
else
echo
-e
"
${RED}
Neither curl nor wget is available. Please install one and retry.
${NC}
"
exit
1
fi
#
Make the freshly installed binary available in this session
export
PATH=
"
$TEMPORAL_INSTALL_DIR
:
$PATH
"
}
#
---------------------------------------------------------------------------
#
Check for Temporal CLI; install only if missing
#
---------------------------------------------------------------------------
if
detect_temporal
;
then
echo
-e
"
${GREEN}
Temporal CLI found:
$(
temporal --version
)
${NC}
"
else
echo
-e
"
${YELLOW}
Temporal CLI not found. Attempting installation...
${NC}
"
OS=
"
$(
uname -s
)
"
case
"
$OS
"
in
Darwin)
if
command
-v brew
&
>
/dev/null
;
then
echo
-e
"
${BLUE}
macOS detected — installing via Homebrew...
${NC}
"
brew install temporal
else
echo
-e
"
${YELLOW}
Homebrew not found. Falling back to the install script...
${NC}
"
install_via_script
fi
;;
Linux)
echo
-e
"
${BLUE}
Linux detected — installing via the official install script...
${NC}
"
install_via_script
;;
*
)
echo
-e
"
${RED}
Unsupported operating system:
$OS
${NC}
"
echo
"
Please install the Temporal CLI manually:
"
echo
"
https://docs.temporal.io/cli#install
"
exit
1
;;
esac
#
Final verification
if
!
detect_temporal
;
then
echo
-e
"
${RED}
Installation finished but 'temporal' could not be located.
${NC}
"
echo
"
Try opening a new terminal or sourcing your shell profile, then re-run this script.
"
exit
1
fi
echo
-e
"
${GREEN}
Temporal CLI installed successfully:
$(
temporal --version
)
${NC}
"
fi
#
---------------------------------------------------------------------------
#
Start the dev server
#
---------------------------------------------------------------------------
echo
"
"
echo
-e
"
${GREEN}
Starting Temporal development server...
${NC}
"
echo
-e
"
${BLUE}
gRPC endpoint :
${NC}
localhost:7233
"
echo
-e
"
${BLUE}
Web UI :
${NC}
http://localhost:8233
"
echo
"
"
echo
"
Press Ctrl+C to stop.
"
echo
"
"
temporal server start-dev
You can’t perform that action at this time.