Coline Docs
Reference

migrations

Every coline migrations command, with its flags and the action it runs.

Imports from other products. Every coline migrations command, 19 in all.

migrations upload

Upload the ZIP exports of another product (Slack, Notion, Google Takeout, Markdown notes) to the workspace, as the Migration Center does: each in parts, up to about 625 GB. It prints their upload ids and the commands that preview and run the import from them.

coline migrations upload <export.zip…> [flags]

Built into coline. · Calls POST /api/workspaces/[workspaceSlug]/migrations/uploads/initiate, POST /api/workspaces/[workspaceSlug]/migrations/uploads/part, POST /api/workspaces/[workspaceSlug]/migrations/uploads/complete · Effect write · Can wait for your approval no

coline migrations upload slack-export.zip -w acme
coline migrations upload takeout-001.zip takeout-002.zip --json
coline migrations upload notion-export.zip --dry-run

migrations connections delete

Disconnects one of your import connections and deletes its token.

It removes or overwrites something, so it runs only with --confirm.

coline migrations connections delete [flags]

Action migrations.connections.delete · Effect destructive, runs only with --confirm · Can wait for your approval no · Scope tools.write · Workspace yes, -w

FlagWhat it does
--connection-id <id>The connection's id, from migrations.connections.list. Required.
--input <file>Read the input as JSON from a file; - reads stdin.
coline migrations connections delete -w acme --connection-id <connection-id> --confirm
coline migrations connections delete -w acme --json '{"connectionId":"<connection-id>"}' --fields id --confirm

migrations connections list

Your connections to the tools you import from, and which sign-ins Coline offers here.

It changes nothing.

coline migrations connections list [flags]

Action migrations.connections.list · Effect read, changes nothing · Can wait for your approval no · Scope tools.read · Workspace yes, -w

FlagWhat it does
--input <file>Read the input as JSON from a file; - reads stdin.
coline migrations connections list -w acme
coline migrations connections list -w acme --json '{}' --fields id

migrations gmail import

Starts importing an uploaded Gmail Takeout export into your personal workspace.

coline migrations gmail import [flags]

Action migrations.gmail.import · Effect write · Can wait for your approval no · Scope tools.write · Workspace yes, -w

FlagWhat it does
--upload-ids <list>The export ZIPs' upload ids, from uploading them to Coline. Required.
--request-id <id>A new uuid for this import. Sending the same one again returns the same import instead of starting another. One is made when left out.
--input <file>Read the input as JSON from a file; - reads stdin.
coline migrations gmail import -w acme --upload-ids "…"
coline migrations gmail import -w acme --json '{"uploadIds":"…"}' --fields id

migrations gmail preview

Reads an uploaded Gmail Takeout export and says what an import would bring in. Nothing is imported. Admins only.

It changes nothing.

coline migrations gmail preview [flags]

Action migrations.gmail.preview · Effect read, changes nothing · Can wait for your approval no · Scope tools.read · Workspace yes, -w

FlagWhat it does
--upload-ids <list>The export ZIPs' upload ids, from uploading them to Coline. Required.
--input <file>Read the input as JSON from a file; - reads stdin.
coline migrations gmail preview -w acme --upload-ids "…"
coline migrations gmail preview -w acme --json '{"uploadIds":"…"}' --fields id

migrations google-drive import

Starts importing an uploaded Google Drive export into your personal workspace. For a team workspace, import Google Workspace.

coline migrations google-drive import [flags]

Action migrations.googleDrive.import · Effect write · Can wait for your approval no · Scope tools.write · Workspace yes, -w

FlagWhat it does
--upload-ids <list>The export ZIPs' upload ids, from uploading them to Coline. Required.
--request-id <id>A new uuid for this import. Sending the same one again returns the same import instead of starting another. One is made when left out.
--input <file>Read the input as JSON from a file; - reads stdin.
coline migrations google-drive import -w acme --upload-ids "…"
coline migrations google-drive import -w acme --json '{"uploadIds":"…"}' --fields id

migrations google-drive preview

Reads an uploaded Google Drive export and says what an import would bring in. Nothing is imported. Admins only.

It changes nothing.

coline migrations google-drive preview [flags]

Action migrations.googleDrive.preview · Effect read, changes nothing · Can wait for your approval no · Scope tools.read · Workspace yes, -w

FlagWhat it does
--upload-ids <list>The export ZIPs' upload ids, from uploading them to Coline. Required.
--input <file>Read the input as JSON from a file; - reads stdin.
coline migrations google-drive preview -w acme --upload-ids "…"
coline migrations google-drive preview -w acme --json '{"uploadIds":"…"}' --fields id

migrations google-workspace connect

Connects a Google Workspace service account with domain-wide delegation, so an import can read everyone's sharing settings; Google checks it as the admin named first. The key file is secret: nobody can read it back, and only a person connects, never an agent. Admins only.

keyJson is secret: pass it with --key-json-file <path> or --key-json-stdin, in --input, or type it when asked. Never as text on the command line or in --json.

coline migrations google-workspace connect [flags]

Action migrations.googleWorkspace.connect · Effect write · Can wait for your approval no · Scope tools.write · Workspace yes, -w

FlagWhat it does
--admin-email <text>A Google Workspace admin the service account acts as. Required.
--key-json-file <path>Read keyJson, a secret, from this file. The service account's JSON key file, as downloaded. Required; asked for at a terminal when not given.
--key-json-stdinRead keyJson, a secret, from stdin.
--input <file>Read the input as JSON from a file; - reads stdin.
coline migrations google-workspace connect -w acme --admin-email "…" --key-json-file key-json.txt
printenv KEY_JSON | coline migrations google-workspace connect -w acme --json '{"adminEmail":"…"}' --key-json-stdin --fields id

migrations google-workspace import

Starts importing an uploaded Google Workspace export into a team workspace, matching its people to members. Admins only.

Set userMappings with --json '{…}' or --input.

coline migrations google-workspace import [flags]

Action migrations.googleWorkspace.import · Effect write · Can wait for your approval no · Scope tools.write · Workspace yes, -w

FlagWhat it does
--upload-ids <list>The export ZIPs' upload ids, from uploading them to Coline. Required.
--request-id <id>A new uuid for this import. Sending the same one again returns the same import instead of starting another. One is made when left out.
--connection-id <id>A Google service account connection, to bring each file's sharing too.
--input <file>Read the input as JSON from a file; - reads stdin.
coline migrations google-workspace import -w acme --upload-ids "…"
coline migrations google-workspace import -w acme --json '{"uploadIds":"…"}' --fields id

migrations google-workspace preview

Reads an uploaded Google Workspace export and says what an import would bring in, with its people to match to members. Nothing is imported. Admins only.

It changes nothing.

coline migrations google-workspace preview [flags]

Action migrations.googleWorkspace.preview · Effect read, changes nothing · Can wait for your approval no · Scope tools.read · Workspace yes, -w

FlagWhat it does
--upload-ids <list>The export ZIPs' upload ids, from uploading them to Coline. Required.
--input <file>Read the input as JSON from a file; - reads stdin.
coline migrations google-workspace preview -w acme --upload-ids "…"
coline migrations google-workspace preview -w acme --json '{"uploadIds":"…"}' --fields id

migrations list

The workspace's imports from other tools, newest first, and how each is going. A guest sees only the imports they started. It never restarts a stopped import; migrations.resume does.

It changes nothing.

coline migrations list [flags]

Action migrations.list · Effect read, changes nothing · Can wait for your approval no · Scope workspace.read · Workspace yes, -w

FlagWhat it does
--input <file>Read the input as JSON from a file; - reads stdin.
coline migrations list -w acme
coline migrations list -w acme --json '{}' --fields id

migrations notion connect

Connects Notion for imports with the Internal Integration Secret of an integration you made in Notion; Notion checks it first. The token is secret: nobody can read it back, and only a person connects, never an agent.

token is secret: pass it with --token-file <path> or --token-stdin, in --input, or type it when asked. Never as text on the command line or in --json.

coline migrations notion connect [flags]

Action migrations.notion.connect · Effect write · Can wait for your approval no · Scope tools.write · Workspace yes, -w

FlagWhat it does
--token-file <path>Read token, a secret, from this file. The integration's Internal Integration Secret. Required; asked for at a terminal when not given.
--token-stdinRead token, a secret, from stdin.
--input <file>Read the input as JSON from a file; - reads stdin.
coline migrations notion connect -w acme --token-file token.txt
printenv TOKEN | coline migrations notion connect -w acme --json '{}' --token-stdin --fields id

migrations notion import

Starts importing an uploaded Notion export, choosing who sees each top-level section. Admins only.

Set visibility, userMappings with --json '{…}' or --input.

coline migrations notion import [flags]

Action migrations.notion.import · Effect write · Can wait for your approval no · Scope tools.write · Workspace yes, -w

FlagWhat it does
--upload-ids <list>The export ZIPs' upload ids, from uploading them to Coline. Required.
--request-id <id>A new uuid for this import. Sending the same one again returns the same import instead of starting another. One is made when left out.
--connection-id <id>A Notion connection, to also bring formulas, relations, people and comments.
--input <file>Read the input as JSON from a file; - reads stdin.
coline migrations notion import -w acme --upload-ids "…"
coline migrations notion import -w acme --json '{"uploadIds":"…"}' --fields id

migrations notion preview

Reads an uploaded Notion export and says what an import would bring in: its people, top-level sections and counts. Nothing is imported. Admins only.

It changes nothing.

coline migrations notion preview [flags]

Action migrations.notion.preview · Effect read, changes nothing · Can wait for your approval no · Scope tools.read · Workspace yes, -w

FlagWhat it does
--upload-ids <list>The export ZIPs' upload ids, from uploading them to Coline. Required.
--connection-id <id>A Notion connection, to also bring formulas, relations, people and comments.
--input <file>Read the input as JSON from a file; - reads stdin.
coline migrations notion preview -w acme --upload-ids "…"
coline migrations notion preview -w acme --json '{"uploadIds":"…"}' --fields id

migrations resume

Restarts a stopped import from where it left off. Its admin or the person who started it.

coline migrations resume [flags]

Action migrations.resume · Effect write · Can wait for your approval no · Scope tools.write · Workspace yes, -w

FlagWhat it does
--job-id <id>The import's id, from migrations.list. Required.
--input <file>Read the input as JSON from a file; - reads stdin.
coline migrations resume -w acme --job-id <job-id>
coline migrations resume -w acme --json '{"jobId":"<job-id>"}' --fields id

migrations slack import

Starts importing an uploaded Slack export into a team workspace as channels, matching its people to members. Admins only.

Set userMappings with --json '{…}' or --input.

coline migrations slack import [flags]

Action migrations.slack.import · Effect write · Can wait for your approval no · Scope tools.write · Workspace yes, -w

FlagWhat it does
--upload-ids <list>The export ZIPs' upload ids, from uploading them to Coline. Required.
--request-id <id>A new uuid for this import. Sending the same one again returns the same import instead of starting another. One is made when left out.
--plan <text>The Slack plan the export came from. Default free_pro. One of free_pro, business_plus, enterprise.
--input <file>Read the input as JSON from a file; - reads stdin.
coline migrations slack import -w acme --upload-ids "…"
coline migrations slack import -w acme --json '{"uploadIds":"…"}' --fields id

migrations slack preview

Reads an uploaded Slack export and says what an import would bring in, with its people to match to members. Nothing is imported. Admins only.

It changes nothing.

coline migrations slack preview [flags]

Action migrations.slack.preview · Effect read, changes nothing · Can wait for your approval no · Scope tools.read · Workspace yes, -w

FlagWhat it does
--upload-ids <list>The export ZIPs' upload ids, from uploading them to Coline. Required.
--input <file>Read the input as JSON from a file; - reads stdin.
coline migrations slack preview -w acme --upload-ids "…"
coline migrations slack preview -w acme --json '{"uploadIds":"…"}' --fields id

migrations slack-connection import

Starts importing Slack conversations through your Slack connection into a team workspace. No export needed.

Set userMappings with --json '{…}' or --input.

coline migrations slack-connection import [flags]

Action migrations.slackConnection.import · Effect write · Can wait for your approval no · Scope tools.write · Workspace yes, -w

FlagWhat it does
--connection-id <id>Your Slack connection's id, from migrations.connections.list. Required.
--request-id <id>A new uuid for this import. Sending the same one again returns the same import instead of starting another. One is made when left out.
--scope <text>mine: your own conversations (default); all: every public channel too, for an admin. One of mine, all.
--input <file>Read the input as JSON from a file; - reads stdin.
coline migrations slack-connection import -w acme --connection-id <connection-id>
coline migrations slack-connection import -w acme --json '{"connectionId":"<connection-id>"}' --fields id

migrations slack-connection preview

Lists what can be imported through your Slack connection: your own conversations, or every public channel for an admin. Nothing is saved.

It changes nothing.

coline migrations slack-connection preview [flags]

Action migrations.slackConnection.preview · Effect read, changes nothing · Can wait for your approval no · Scope tools.read · Workspace yes, -w

FlagWhat it does
--connection-id <id>Your Slack connection's id, from migrations.connections.list. Required.
--scope <text>mine: your own conversations (default); all: every public channel too, for an admin. One of mine, all.
--input <file>Read the input as JSON from a file; - reads stdin.
coline migrations slack-connection preview -w acme --connection-id <connection-id>
coline migrations slack-connection preview -w acme --json '{"connectionId":"<connection-id>"}' --fields id

On this page