dr start¶
Run the application quickstart process for the current template.
Synopsis¶
The start command (also available as quickstart) provides an automated way to initialize and launch your DataRobot application. It performs several checks and either executes a template-specific quickstart script or seamlessly launches the interactive template setup wizard.
dr start [flags]
Aliases¶
dr startdr quickstart
説明¶
The start command streamlines the process of getting your DataRobot application up and running. It automates the following workflow:
- Prerequisite checks—verifies that required tools are installed.
- Quickstart script detection—searches for template-specific quickstart scripts in
.datarobot/cli/bin/(if in a DataRobot repository). - Execution—either:
- Runs the quickstart script if found (after user confirmation, unless
--yesis specified). - Launches the interactive
dr templates setupwizard if no script is found or not in a repository.
This command is designed to work intelligently with your template's structure. Templates can optionally provide custom quickstart scripts to automate their specific initialization needs. If you're not in a DataRobot repository or no script exists, the command gracefully falls back to the standard setup wizard.
フラグ¶
-y, --yes Skip confirmation prompts and execute immediately
-h, --help Show help information
Global flags¶
All global flags are also available.
Quickstart scripts¶
位置¶
Quickstart scripts must be placed in:
.datarobot/cli/bin/
Naming convention¶
Scripts must start with quickstart (case-sensitive):
- ✅
quickstart - ✅
quickstart.sh - ✅
quickstart.py - ✅
quickstart-dev - ❌
Quickstart.sh(wrong case) - ❌
start.sh(wrong name)
If there are multiple scripts matching the pattern, the first one found in lexicographical order will be executed.
Platform-specific requirements¶
Unix/Linux/macOS:
- Script must have executable permissions (
chmod +x) - Can be any executable file (shell script, Python, compiled binary, etc.)
Windows:
- Must have executable extension:
.exe,.bat,.cmd, or.ps1
例¶
Basic usage¶
Run the quickstart process interactively:
dr start
If a quickstart script is found:
DataRobot Quickstart
✓ Starting application quickstart process...
✓ Checking template prerequisites...
✓ Locating quickstart script...
→ Executing quickstart script...
Quickstart found at: .datarobot/cli/bin/quickstart.sh. Will proceed with execution...
Press 'y' or ENTER to confirm, 'n' to cancel
If no quickstart script is found:
DataRobot Quickstart
✓ Starting application quickstart process...
✓ Checking template prerequisites...
✓ Locating quickstart script...
→ Executing quickstart script...
No quickstart script found. Will proceed with template setup...
The command will then seamlessly launch the interactive setup wizard.
Non-interactive mode¶
Skip all prompts and execute immediately:
dr start --yes
または
dr start -y
This is useful for:
- CI/CD pipelines
- Automated deployments
- Scripted workflows
Using the alias¶
dr quickstart
動作¶
State tracking¶
The dr start command automatically tracks when it runs successfully by updating a state file with:
- Timestamp of when the command last started (ISO 8601 format)
- CLI version used
This state information is stored in .datarobot/state/info.yml within the repository. State tracking is automatic and transparent. No manual intervention is required.
The state file helps other commands (like dr templates setup) know that you've already run dr start, allowing them to skip redundant setup steps.
When a quickstart script exists¶
- Script is detected in
.datarobot/cli/bin/ - User is prompted for confirmation (unless
--yesor-yis used) - If user confirms (or
--yesis specified), script executes with full terminal control - Command completes when script finishes
- State file is updated with current timestamp and CLI version
If the user declines to execute the script, the command exits gracefully and still updates the state file.
When no quickstart script exists¶
- No script is found in
.datarobot/cli/bin/(or not in a DataRobot repository) - User is notified
- User is prompted for confirmation (unless
--yesor-yis used) - If user confirms (or
--yesis specified), interactivedr templates setupwizard launches automatically - User completes template configuration through the wizard
- State file is updated with current timestamp and CLI version
If the user declines, the command exits gracefully and still updates the state file.
Prerequisites checked¶
Before proceeding, the command verifies:
- ✅ Required tools are installed (Git, etc.)
When searching for a quickstart script, the command checks:
- ✅ Current directory is within a DataRobot repository (contains
.datarobot/directory)
If the repository check fails, the command automatically launches the template setup wizard instead of exiting with an error.
Error handling¶
Not in a DataRobot repository¶
If you're not in a DataRobot repository, the command automatically launches the template setup wizard:
$ dr start
# Automatically launches: dr templates setup
No manual intervention is needed - the command handles this gracefully.
前提条件を満たしていない¶
$ dr start
Error: required tool 'git' not found
# Solution: Install the missing tool
Script execution failure¶
If a quickstart script fails, the error is displayed and the command exits. Check the script's output for details.
When to use dr start¶
✅ Good use cases¶
- First-time setup—initializing a newly cloned template or starting from scratch.
- Quick restart—restarting development after a break.
- Onboarding—helping new team members get started quickly.
- CI/CD—automating application initialization in pipelines.
- General entry point—universal command that works whether you have a template or not.
❌ When not to use¶
- Making configuration changes—use
dr dotenvto modify environment variables. - Running specific tasks—use
dr run <task>for targeted task execution.
See also¶
dr templates setup—interactive template setup wizard.dr run—execute specific application tasks.dr dotenv—manage environment configuration.- Template Structure—understanding template organization.
ヒント¶
Creating a custom quickstart script¶
- Create the directory structure:
mkdir -p .datarobot/cli/bin
- Create your script:
# Create the script
cat > .datarobot/cli/bin/quickstart.sh <<'EOF'
#!/bin/bash
echo "Starting my custom quickstart..."
dr run build
dr run dev
EOF
- Make it executable:
chmod +x .datarobot/cli/bin/quickstart.sh
- Test it:
dr start --yes
ベストプラクティス¶
- Keep scripts simple—focus on essential initialization steps.
- Provide clear output—use echo statements to show progress.
- Handle errors gracefully—use
set -ein bash scripts to exit on errors. - Check prerequisites—verify .env exists and required tools are installed.
- Make it idempotent—script should be safe to run multiple times.
- Document behavior—add comments explaining what the script does.