skip to content
barorin&?

Heroku CLIの基本

/ 1 min read

Table of Contents

はじめに

Heroku CLIの基本的な使い方です。

方法

Terminal window
# ログイン・ログアウト
$ heroku login
$ heroku logout
# プロジェクトのディレクトリへ移動する
$ cd project-folder
# 初期化
$ git init
$ heroku git:remote -a project-name
# デプロイ
$ git add .
$ git commit -am "comment"
$ git push heroku master
# Python の実行
$ heroku run python hoge.py
# CLI のアップデート
$ heroku update